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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started