Question: C + + : This program will use statistics ( I ' ll describe how to calculate them ) . Write a program that prompts

C++: This program will use statistics (I'll describe how to calculate them). Write a program that prompts for response times from a web site in milliseconds. It should keep asking for values until the user enters a -1 to stop.
The program should print the average time (mean), the minimum time, the maximum time, and the standard deviation.
To compute the average (mean):
1. Compute the sum of all the values.
2. Divide the sum by the number of values.
To compute the standard deviation:
1. Calculate the difference from the mean of each number and square it.
2. Compute the mean of the squared values.
3. Take the square root of the mean.
Example Output:
Enter a number: 100
Enter a number: 200
Enter a number: 1000
Enter a number: 300
Enter a number: -1
Numbers: 100,200,1000,300
The average is: 400.
The minimum is: 300.
The standard deviation is: 400.25.
Use loops and arrays to perform input and mathematical operations. Use functions to compute means, the maximum value, the minimum value, and the standard deviation. Be sure to keep the input separate from the computing and 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!