Question: NB. Progrm in JAVA Write a program named GradeStats.java then implement the following method: public static int[] gradeStats(int[] arr) It accepts int array representing test
NB. Progrm in JAVA
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
