Question: create an JAVA application that should first prompt the user for his name and then prompt for three scores: total lab, total homework and final

create an JAVA application that should first prompt the user for his name and then prompt for three scores: total lab, total homework and final exm. All the scores must be in 0 to 100 range. If the user provides an invalid input, the program should display an error message and halt executing. Once all the three scores are entered, the program should calculate the final score based on the table above and then determine the letter grade assigned to the final score.

Lab is 20% Homework is 30% Final exm is 50%

The score to letter grade conversion table is as follows: Final Score Letter Grade 90 - 100 is A / 80 - 89 is B / 70 - 79 is C / 60 - 69 is D / Below 60 is F

The following formula can be used to calculate the final score: =20/100+ 30/100+ m 50/100

use the JOptionPane class for input/output. Additionally, if you use System.exit as shown in the textbook, it may only be used as the absolute last line in the program. You may not use System.exit, or any variant that exits the program in the middle of the program. The program should be designed to only exit once the algorithm has finished.

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!