Write a program to calculate the mean, variance, and standard deviation of the f
ID: 3628986 • Letter: W
Question
Write a program to calculate the mean, variance, and standard deviation of the first n positive integer numbers. The mean (M), variance (V), and standard deviation(S) of a set of n values (1 ,2 ,3 ,.... ,n)max are defined as: M=1+2+3+....+n/n n max = 20 v=(1-M)2 +(2-M)2 +(3-M)2+ +(n-M)2/n s = The only input Into the program is the size of the set (n). Values of n should be positive integers and the program should reject negative values. The program should also allow the user to test for as many sets as desired before termination. Print the values of n, M, V, and S, with appropriate labels, for a set containing the first 20 positive integers; note that at three values (M, V, and S) are real numbers. Submit the source code, with output properly formatted and heading as shown above, and of course, the FLOW CHART !!!Explanation / Answer
Dear Friend here is the program u want PLEASE RATE #include #include using namespace std; int main() { int n; double m=0,v=0,s; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.