Question: Write a Java program that will prompt a user to enter a name. Next, it will prompt the user to enter an integer between 0

Write a Java program that will prompt a user to enter a name. Next, it will prompt the user to enter an integer between 0 and 100 for the score received in an exam. If the score is 90 or higher, display a message like, Congratulations, Lynn. Your grade is A. If the score is 80 or higher but lower than 90, display a message like, Good job, Lynn. Your grade is B. If the score is 70 or higher but lower than 80, display a message like, Not bad, Lynn. Your grade is C. Otherwise, display a message like, Lynn, you can do better.

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 Programming Questions!