Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

1. Maintain my own perspective and my opinions

Answered: 1 week ago

Question

What are the different structures of the market? Differentiate them

Answered: 1 week ago