Problem

(Statistics: compute deviation) Programming Exercise computes the standard deviation of nu...

(Statistics: compute deviation) Programming Exercise computes the standard deviation of numbers. This exercise uses a different but equivalent formula to compute the standard deviation of n numbers.

To compute deviation with this formula, you have to store the individual numbers using an array, so that they can be used after the mean is obtained.

Your program should contain the following functions:

// Compute the mean of an array of double values double mean(const double x[], int size)// Compute the deviation of double valuesdouble deviation(const double x[], int size)

Write a test program that prompts the user to enter 10 numbers and displays the mean and deviation, as shown in the following sample run:

Programming Exercise (Statistics: compute mean and standard deviation) In business applications, you are often asked to compute the mean and standard deviation of data. The mean is simply the average of the numbers. The standard deviation is a statistic that tells you how tightly all the various data are clustered around the mean in a set of data. For example, what is the average age of the students in a class? How close are the ages? If all the students are the same age, the deviation is 0.

Write a program that prompts the user to enter 10 numbers, and displays the mean and standard deviations of these numbers using the following formula:

Here is a sample run:

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT