- 1
Anyone to help out on this codes?
Write a program that will calculate and print the sum, mean, variance, and standard deviation of 7 numbers. The numbers must be input as data. This input data must also be printed by the program. If your seven numbers input have been named A, B, C, D, E, F, G, then the variance may be computed as: variance = [(A-mean)2 + (B-mean)2 + ... + (G-mean)2 ]/6 and the standard deviation is the square root of the variance. (Hint: If you can't figure out how to get the square root in C++ leave it out at
1 ответ
0
Hi,
I don't see what's your issue here, beside the fact that in the variance you should divide by 7, not 6.