Question: Write this program in JAVA method. Given three students in a class, enter grade from 0 to 100 for each student to perform calculation based

Write this program in JAVA method. Given three students in a class, enter grade from 0 to 100 for each student to perform calculation based on those grades. Students name are not needed.

In the main method use JOptionpane.showInputDialog to input the grade for each students.

create 3 methods: average(), max(), min()

The average method takes 3 method grades as parametes, to calculate average of those grades, and return value as type int

The max method takes 3 grades as parameter, to finds the maximum grade out of the grades, and return value as type int

The min method takes 3 grades as parameter, to finds the minimum grade out of the grades, and return value as type int

At last Create another method showOutput() that will take the proper parameter in order to display message box include 1) number of students, 2) the average 3) the max, 4) the min.

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!