Question: Program I'm using is IntelliJ Write a Java Class called ArrayStats with methods as described double getMax(double] data)- returns the largest number in the array

Program I'm using is IntelliJ
 Program I'm using is IntelliJ Write a Java Class called "ArrayStats"

Write a Java Class called "ArrayStats" with methods as described double getMax(double] data)- returns the largest number in the array double getMin(doublel] data);- returns the smallest number in the array double getAvg (double] data)-returns the average of the numbers in the array double getMode (double] data)returns the most common number in the array boolean[] thresh(double] data, double lim); - returns an array of booleans, where each is true if the corresponding number in the input array is above the limie, false if the corresponding number is equal or below the limit - 2 so, if I pass in the array {2, 7, 3, 5, 9, 0} with lim=5 I will get the array ffalse, true, false, false, true, false) 3 double] smooth(double] data);-returns an array in which each number is the average of the corresponding number in the input array and the ones on each side of it (the first and last numbers are unchanged) 9 so, if I pass in the array 0.1, 0.3, 0.2, 0.5, 0.2, 0.1) I will get the array (0.1, 0.2, 0.33, 0.3,0.266, 0.1)

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!