Question: java 1. Write a program that can calculate several statistical measures of data. The program collects N integers from the user (N is a positive
1. Write a program that can calculate several statistical measures of data. The program collects N integers from the user (N is a positive integer entered by the user). Then, the program prompts the user for an option: 1-to find the minimum, 2-to find the maximum, 3- to find the mean, 4- to find the standard deviation. In addition to the main method, your program must contain four methods with the following headers: public static int min(intl] A) public int max(int[] A) public double mean(intlI A) public double std(int!l A, double mean) Use the following formulas to calculate the mean and the standard deviation i-1 RE(x,-mean)2 standard deviation- N 2 i-1 The following is a sample run. The bold letters are printed by the program. The non-bold letters are entered by the user. Please enter N: 5 Please enter the 5 integers: -3 4 Please enter an option: 4 The standard deviation is 3.9293765408777
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
