Question: Write a program that computes and prints the mean and standard deviation of a list of integers x1 through xn. Assume that there will be

Write a program that computes and prints the mean and standard deviation of a list of integers x1 through xn. Assume that there will be no more that 50 input values and the maximal possible value is 100. Compute both the mean and standard deviation as floating point values, using the following formulas:

Write a program that computes and prints the mean and standard deviation

Create a driver class, which randomly generates values that are less than or equal to the maximal value 100. Template files are given here:

of a list of integers x1 through xn. Assume that there will

n ; Xi i=1 mean n n [(Xi mean) i=1 sd = n ************ //***************** // Statistics.java //= ***** public class Statistics { public static double mean(int[] numbers, int count){ //your code here. } public static double standardDeviation(int[] numbers, int count) { //your code here. } } ***** **** *************** //************************************* // StatisticsDriver.java //****** ***** import java.util.Random; public class StatisticsDriver private static final int MAX_COUNT = 50, MAX_VALUE = 100; // // Demonstrates the mean and standard deviation methods. //- public static void main(String args[]){ //your code here. } }

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!