Question: Please help with java code. Ignore the complete the program section at the top. Thats only what the public class should be called. There is
Lab 03: Practice on Methods Assigned on 01/19 21:22 Due on 01 29 23 27 Max poists 10 Complete the program, MethodLab.java, then implement the following methods: public static int max(intlI arr) this method returns the largest value in arr public static int range(intlI arr) this method returns the range of the array, a range is defined as the difference between the largest and smallest value in the array public static int aboveBenchmarck(int benchmark, intll arr) public static int range(intll arr) this method returns the range of the array, a range is defined as the difference between the largest and smallest value in the array public static int aboveBenchmarck(int benchmark, intll arr) this method returns the number of values in the arr that are equals to or greater than the benchmark value. Once completed, please test your methods as follows: 1. Define a 30 elements int array 2. Assign random numbers in the range of [50, 100], to each element of the int arr 3. Call each method and print the values returned by each method call. For the aboveBenchmarck method, use 80 as benchmark value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
