Question: Description: ----------- Generate a C program that will read a set of integer values from a file and determine the largest of the values, the
Description:
-----------
Generate a C program that will read a set of integer values from a file and determine the largest of the values, the average of the values, and the standard deviation of the values in the file.
Two file names will be passed as command-line arguments, the first will be the input file name, the second the output file name. Each data file will contain an unknown number of integer values to process. Read the data values, compute the statistics, write the results to the output file. {Note: There is a formula for the standard deviation that does not require the mean to be applied to each data value, use that formula so that you can make a single pass through the data, and then compute the overall summary statistics after that single pass.}
Output:
------
High: 9
Average: 6.6
S.D.: 2.073644
Formula:

\f
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
