Write a program that takes its input from a file of numbers of type double. The program outputs, both to the screen and to a file on a disk, the following information regarding the numbers in the input file: average, standard deviation, and the median. The median is the number that has the same number of data elements greater than the number as there are less than the number. The median is the middle element of sorted numbers of the file if there are an odd number of elements; or the average of the two middle elements if the file has an even number of elements. The standard deviation of a list of numbers n1, n2, n3 and so forth is defined as:
Std. dev = Square root of [(n1 - a)^2 + (n2 - a)^2 + ... + (nk - a)^2] / (k - 1)
Where a is an average of k numbers from the input file.
The program displays the average, standard deviation, and the median on the screen. In addition, your program will also print the results into a file on the hard disk