Question: Write a program named GradeStats.java then implement the following method: public static int[] gradeStats(int[] arr) It accepts int array representing test grades for CISY432 then

![static int[] gradeStats(int[] arr) It accepts int array representing test grades for](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f516b864d21_16766f516b7e9610.jpg)
Write a program named GradeStats.java then implement the following method: public static int[] gradeStats(int[] arr) It accepts int array representing test grades for CISY432 then calculates and returns the following grade statictics: highest, lowest, average, number of grades that are greater than or equal to 70, the number of grades that are less than 70 It returns these five numbers as an int array, and the 1st element is for highest, 2nd for lowest, 3rd for average 4th element for number of grades that are greater than or equal to 70 5th for the number of grades that are less than 70 For example, int[] arr={100, 90, 100, 50, 90}; calling gradeStats(arr) should return: {100, 50, 86, 4, 1} because the highest grade is 100, lowest one is 50, average is 86, 4 grades are greater than or equal to 70 1 grade is less than 70 You may use the following code to test your implementation: int[] arr={100, 90, 100, 50, 90}; int[] res=gradeStats(arr); System.out.println(java.util.Arrays.toString(res)); If you implement correctly, the output should look like: [100, 50, 86, 4, 1] Once completed, run Grader.class to grade your test
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
