Develop a program to perform some statistical analysis for a well-formed input stream. The input consists of three lines read from the terminal. You will read all three lines before printing your output. For the first line, output the median of the numbers entered. For the second line, you will output the average of the numbers entered. Finally, you will output the sum of the third line of numbers. There are 5 numbers per line, and you can assume that numbers on the first line are sorted.
or
Write a program that reads ten numbers from the user. After reading all ten numbers, compute the sum of the odd-positioned numbers, multiply all of the even-positioned numbers together, and add these two numbers together. That is, you should add the first, third, fifth, seventh, and ninth numbers. You will then multiply the second, fourth, sixth, eighth, and tenth numbers. The sum of these two numbers is your final result.