Question: Mean and standard deviation. Write a program that reads a set of floating-point data values. Choose an appropriate mechanism for prompting for the end of
Mean and standard deviation. Write a program that reads a set of floating-point data values. Choose an appropriate mechanism for prompting for the end of the data set. When all values have been read, print out the count of the values, the average, and the standard deviation. The average of a data set {x1, . . ., xn} is x = ∑xi n, where ∑xi = x1 +…+ xn is the sum of the input values. The standard deviation is

However, this formula is not suitable for the task. By the time the program has computed x, the individual xi are long gone. Until you know how to save these values, use the numerically less stable formula 
You can compute this quantity by keeping track of the count, the sum, and the sum of squares as you process the input values.
Elx - x) n- 1
Step by Step Solution
3.54 Rating (171 Votes )
There are 3 Steps involved in it
ns I rvided full Jv de fr imlementing the given rblem with mments t eh line fr understnding th... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
2106_61d6ac3463398_872240.pdf
180 KBs PDF File
2106_61d6ac3463398_872240.docx
120 KBs Word File
