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:
-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
Get step-by-step solutions from verified subject matter experts
