Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Java Class called ArrayStats with methods as described double getMax (double[] data); returns the largest number in the array double getMin (double] data);
Write a Java Class called "ArrayStats" with methods as described double getMax (double[] data); returns the largest number in the array double getMin (double] 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 - so, if I pass in the array {2,7, 3, 5, 9, 0} with lim=5 I will get the array {false, true, false, false, true, false 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) - so, if I pass in the array 10.1, 0.3, 0.2, 0.5, 0.2, 0.1) I will get the array 10.1, 0.2, 0.33, 0.3, 0.266, 0.1)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started