Question: Create a Java file named UserSelections.java, apply switch statements and carry out the following operations. Suppose you are allowed to choose from the integer grades

Create a Java file named UserSelections.java, apply switch statements and carry out

the following operations. Suppose you are allowed to choose from the integer grades 1, 2, 3, 4,

5, where 1 fail, 2 -weak fail, 3 weak pass, 4 pass, 5 strong pass. For each choice, print

out the message as The user attained fail if grade is 1 or The user attained strong pass if

grade is 5. Make sure you also code a default case that outputs Please select an integer from 1,

2, 3, 4, or 5.

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!