View the step-by-step solution to:

# FOR JAVA! 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,...

FOR JAVA!
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.

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

### -

Educational Resources
• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents