Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C + + : This program will use statistics ( I ' ll describe how to calculate them ) . Write a program that prompts
C: This program will use statistics Ill 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 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:
Compute the sum of all the values.
Divide the sum by the number of values.
To compute the standard deviation:
Calculate the difference from the mean of each number and square it
Compute the mean of the squared values.
Take the square root of the mean.
Example Output:
Enter a number:
Enter a number:
Enter a number:
Enter a number:
Enter a number:
Numbers:
The average is:
The minimum is:
The standard deviation is:
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
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