Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

6. Explain the power of labels.

Answered: 1 week ago

Question

5. Give examples of variations in contextual rules.

Answered: 1 week ago

Question

f. What stereotypes were reinforced in the commercials?

Answered: 1 week ago