Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 outputStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started