Question: The program should do the following tasks. The program should initialize an entire array of double values that are arbitrarily selected. The array should

The program should do the following tasks. The program should initialize an entire array of double values that are arbitrarily selected. The array should have at least ten values in it. (For a challenge, have the values obtained from a data file, or entered via the keyboard by the user.) The program should determine and output the maximum and minimum values in the array. It should do this by calling methods that are defined within the .java file. One method should determine and return the minimum value in the array, and the other one should determine and return the maximum value of the array. Each function should take in an array of double values as a parameter, and return a double value equaling either the maximum or the minimum value. The program should also determine the difference between the minimum to the maximum value and output the difference. A method should be made to take in an array of double values as a parameter, and return a double value equaling the maximum-minimum value difference. The program should also determine and output the mean average of the values in the array. A method should be made to take in an array of double values as a parameter, and return a double value equaling the mean average. The formula for the mean average is below t1+t2+t3+th
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
