Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program to calculate the mean, variance, and standard deviation of the f

ID: 3620481 • 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 ) are defined as:

M=1+2+3+....+n/n

V=(1-M)^2+(2-M)^2+(3-M)^2+....+(n-M)^2/n

S=root v











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 M , V , and S , with appropriate labels, for a set containing the first 12500 positive integers; note that all three values ( M , V , and S ) are real numbers.




Explanation / Answer

please rate - thanks
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote