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

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

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

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!