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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started