Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

LOQ 16-8: Does psychotherapy work? How can we know?

Answered: 1 week ago

Question

Define Conventional Marketing.

Answered: 1 week ago

Question

Define Synchro Marketing.

Answered: 1 week ago

Question

Define marketing concepts.

Answered: 1 week ago

Question

1 what does yellow colour on the map represent?

Answered: 1 week ago