Week 1: Monday -------------- Q1. (40) Write a program that will input a character. If the character is in lower case, i.e., between 'a' to 'z', it will output the corresponding upper case character. If it is in upper case, it will output the corresponding lower case. If it is not a letter, e.g., '1', it will output the character as it is. Q2. (60) Input 4 numbers a, b, c, d as double. Find their arithmetic mean (AM), geometric mean (GM) and harmonic mean (HM). Print the mean that is neither the largest nor the smallest (i.e., the middle value). For the above program, you will require to use square roots. Insert the following line together with the rest of the program as shown below. #include #include int main() { ... ... } Now you can calculate square root as follows: double x = 1234321; double result = sqrt(x); You have to compile your program using gcc -lm For example, if your file is x.c, you have to run gcc -lm x.c and then run a.out