Home / Expert Answers / Computer Science / write-a-program-that-takes-as-input-five-numbers-and-outputs-the-mean-average-and-standard-dev-pa432

(Solved): Write a program that takes, as input, five numbers and outputs the mean (average) and standard dev ...



Write a program that takes, as input, five numbers and outputs the mean
(average) and standard deviation of the numbers. If t

Write a program that takes, as input, five numbers and outputs the mean (average) and standard deviation of the numbers. If the numbers are x1, X2, X3, 84, and X5, then the mean is: x = (x1+ X2+ X3+ X4+x5)/5 and the standard deviation is: S (((x2-x)2 + (x2-x)2 + (x3-x)2 + (x4-x)2 + (x5-x)2)/5) Your program must contain at least the following functions: a function that calculates and returns the mean and a function that calculates the standard deviation. Format your output with setprecision (2) to ensure the proper number of decimals for testing.


We have an Answer from Expert

View Expert Answer

Expert Answer


//C++ #include #include #include using namespace std; double fun_mean(double x1,double x2,double x3,d
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe