Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 exam. 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.

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+ 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

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