I am really confused by this problem. PLEASE HELP
Write a program that reads a set of floating point data values from the input. When the user indicates the end of the input, print out the count if the values, the average, and the standard deviation. The average of a data set is x1,......,xn is
t = Σxi/n
where Σx1 = x1+...+xn is the sum of the input values. The standard deviation is:
s=Math.sqrt(Σxi^2 - (1/n)*(Σxi)^2/n-1)
my professor asks me to Create a method in the class Mymath to print out the count of values, the average, and the standard deviation. Use the numerically less stable formula to find the standard deviation.
and this is what the output should be:
1
2
3
4
5
6
-1
Count of values: 6
Average: 3.50
Standard Deviation: 1.87