Week 3: Friday -------------- Q1. (50) Write a program using the function getchar() that inputs a real number, adds 5 to it and prints it using putchar(). You are not allowed to use scanf or printf. You can use ascii code information to convert characters to integers. Example: If input is -23.45 output is -18.45 Q2. (50) Input 10 numbers and output their variance. The variance is calculated as sum(|x_i - average|^2)/n for n numbers x_0, ..., x_{n-1}. Example: If input is 1 2 3, output is 0.67.