By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,962 Members | 2,545 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,962 IT Pros & Developers. It's quick & easy.

calculating and printing the sum,mean,variance and standard deviation of 7 numbers.

P: 2
Write a C++ 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 be printed by the program. If your seven numbers input has 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.
4 Weeks Ago #1
Share this Question
Share on Google+
1 Reply

P: 117
Have a look at the posting guidelines and mention what you have done so far for this.
4 Weeks Ago #2

Post your reply

Sign in to post your reply or Sign up for a free account.