Question: 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

 Write a program that prompts the user for 10 floating point

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. mean = sigma^n_i = 1 x_i = x_1 + x_2 + ... + x_n deviation = Squareroot sigma^n_i = 1 (x_i - mean)^2 - 1 You will need: 1. A scanner object to read the 10 values 2. An array to store the ten values 3. Two methods that do the following: 1. Accepts an array and returns the mean 2. Accepts an array and returns the standard deviation 4. 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!