Question: Code in C++. Write a program that reads a set of 10 whole numbers from the user into an array. Once read in, it calculates

 Code in C++. Write a program that reads a set of10 whole numbers from the user into an array. Once read in, Code in C++.

Write a program that reads a set of 10 whole numbers from the user into an array. Once read in, it calculates the mean and the standard deviation of the numbers then displays the results to the console. 1. Find the mean (the simple average of the numbers) . Then, for each number, subtract the mean and square the result. 3. Then, work out the mean of those squared differences. 4. Take the square root of that, and we're done! This program should prompt the user like below. Expect the user to enter 10 numbers. Then on one line, print the average and the standard deviation. Example on next page. $ ./a.out Enter the number for index 0: 10 Enter the number for index 1: 20 Enter the number for index 2: 30 Enter the number for index 3: 40 Enter the number for index 4: 50 Enter the number for index 5: 60 Enter the number for index 6: 70 Enter the number for index 7: 80 Enter the number for index 8: 90 Enter the number for index 9: 100 results, 55, 28.7228 Last line is the output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!