1. Engineering
  2. Computer Science
  3. i am taking a beginners java class we have learned...

Question: i am taking a beginners java class we have learned...

Question details

I am taking a beginners Java class. We have learned how to use if-else statements, but they want us to use a switch statement for this exercise. I followed the pseudocode template, but I have been running into issues trying to get the source code to compile. Some issues have been getting the program to read different data types and the syntax inside the block statements.

Create a program that uses a switch statement to print out a message that reflects the student's test grade.

For a grade of 100 or higher, the message is ("Awesome!")
For a grade of 90 to 99, the message is ("Great job!")

(etc.)

Sample output:

You entered: 100
Awesome!

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution