Question: Write Java code that accepts an integer number between 0 and 100 that corresponds to a course grade. Your program should do these: -If the

Write Java code that accepts an integer number between 0 and 100 that corresponds to a course grade.

Your program should do these:Write Java code that accepts an integer number between 0 and 100

-If the integer n is greater than 0, assign positive to a String called type. If it's anything else, print out a message saying the number is invalid.

-If the integer n is larger than or equal to 50, assign "passed" to a String called status and then print it out.

-If the integer n is less than 50, assign "try again!" to a String called status and then print it out.

-If the integer n is greater than 90, increase a double called pay by 3%.

Write Java code that accepts an integer number between 0 and 100 that corresponds to a course grade. Your program should have the following requirements: If the integer n is greater than 0, assign "positive" to a String called type . If it's anything else, print out a message saying the number is invalid. If the integer n is larger than or equal to 50, assign "passed" to a String called status and then print it out. If the integer n is less than 50, assign "try again!" to a String called status and then print it out. If the integer n is greater than 90, increase a double called pay by 3%

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!