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 is :
X= ( x1 + x2 + x3 + x4 + x5 ) / 5
and the standard deviation is:
sqrt( ((x1-x)^2 + (x2-x)^2 + (x3-x)^2 + (x4-x)^2 + (x5-x)^2)) / 5)
Your program must contain at least the following methods: A method that calculates and returns the mean and a method that calculates the standard deviation.
Also format the output to 2 decimal places.
Recently Asked Questions
- Question 11. Stanley and Stella are married and will file a joint return. They have four children who are all qualifying children for purposes of the child tax
- Of the four schools of thought on business's ethical behavior, which is the most common position held by U.S. businesses today? Schools of thought ( Inherence,
- What is the concept of time value of money? Why is understanding the concept of time value of money important?