Question: Program #3 (16 points): Design and implement a Java program (name it MinMaxAvg) to determine the highest grade, lowest grade, and the average of all

 Program #3 (16 points): Design and implement a Java program (name

Program #3 (16 points): Design and implement a Java program (name it MinMaxAvg) to determine the highest grade, lowest grade, and the average of all grades in a 4x4 2D-array (representing 4 students' grades on 4 tests). The main method populates the array (name it Grades) with random grades between 0 and 100 and then displays the grades as shown below. Then the main method calls another method (name it minMaxAvg) that takes array Grades as a parameter and displays the highest grade, lowest grade, and average grade for the entire class as shown below. Design the main method such that it allows the user to re-run the program with different grades (as in previous assignments, using a sentinel loop). Document your code, and organize and space the outputs properly using escape characters as shown in the following sample outputs: Grades: 38 44 22 91 81 60 780 9 49 98 63 71 33 9349 Highest grade: 99 Lowest grade: 22 Class average: 65.13 Grades: 60 88 98 100 87 75 68 93 95 86 98 73 56 73 8871 Highest grade: 100 Lowest grade: 56 Class average: 81.82

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!