Anyone to help out on this codes? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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

13th Oct 2018, 2:51 PM
Abraham Shilikomwenyo
Abraham Shilikomwenyo - avatar
1 Answer
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.
18th Nov 2018, 10:44 PM
jcl
jcl - avatar