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

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.