Question: Task In applications, you are often asked to compute the mean and standard deviation of data. The mean is simply the average of the numbers.

Task In applications, you are often asked to compute the mean and standard deviation of data. The mean is simply the average of the numbers. The standard deviation is a statistic that tells you how tightly all the various data are clustered around the mean in a set of data. For example, what is the average age of the students in a class? How close are the ages? If all the students are the same age, the deviation is 0. In this task use the following formula to compute the standard deviation of n numbers. EF=2(Xi mean) mean = i=1 n deviation = n-1 To compute the standard deviation with this formula, you must store the individual numbers using an array, so they can be used after the mean is obtained. Your program should contain the following methods: /** Compute the deviation of double values */ public static double deviation(double[] x) /** Compute the mean of an array of double values */ public static double mean(double[] x) Write a test program that prompts the user to enter 10 numbers and displays the mean and standard deviation, as presented in the following sample run: Enter 10 numbers: 1.9 2.5 3.7 216 3452 The mean is 3.11 The standard deviation is 1.55738
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
