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

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, x4, and x5, then the mean and the standard deviation are calculated as following:
M=x1+x2+x3+x4+x55
=
1
+
2
+
3
+
4
+
5
5
sta_dev=(x1M)2+(x2M)2+(x3M)2+(x4M)2+(x5M)25
_
=
1
2
+
2
2
+
3
2
+
4
2
+
5
2
5
Where Mis the mean and sta_dev is standard deviation
Your program must contain at least the following method: A method that calculates and returns the mean and a method that calculates the standard deviation.
Make sure to take advantage of the mean method when calculating the standard deviation.

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!