Question: Mean and Standard Deviation (Java) Write a program that prompts the user for 10 floating point values. The program should invoke two methods to calculate

Mean and Standard Deviation (Java)

Write a program that prompts the user for 10 floating point values. The program should invoke two methods to calculate the mean and standard deviation of the numbers. You can use the formula below to calculate the mean and standard deviations.

You will need:

A scanner object to read the 10 values

An array to store the ten values

Two methods that do the following:

Accepts an array and returns the mean

Accepts an array and returns the standard deviation

Comments where necessary

A sample of the output is shown below:

Enter ten numbers: 1.9 2.5 3.7 2 1 6 3 4 5 2 The mean is 3.1100000000000003 The standard deviation is 1.5573838462127583

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!