Week 3: Wednesday ----------------- Q1. (50) Write a program using the function getchar() that inputs the longitude for a place and outputs the time difference from the zero meridian using putchar(). The coordinates will be input in the following format: ggdmm' where gg stands for the degree, d is for the direction (E or W), and mm is for minutes. For example, the longitude of Kolkata will be input as 88E20'. The time difference is calculated on the basis of the fact that 15 degrees of longitude differ by 1 hour time. 1 degree of longitude is equivalent to 60' (minutes in longitude). If longitude is in E, time difference should be positive, if it is W, it should be negative. You are not allowed to use scanf or printf. You can use ascii code information to convert characters to integers. Example: If input is 67W30' output is -4:30 If input is 17E0' output is 1:08 Q2. (50) Input 10 numbers and output the number of closest to the average. If two numbers are equally close, output the larger one. Example: Input 1 2 3 4 5 6 7 8 9 10 will have output 6.