68 719
Assignments Done
Successfully Done
In January 2019

Answer to Question #70240 in Java | JSP | JSF for Christopher

Question #70240
Create a program that input a grade from the user. The grade input from the user will be an integer. Once the
input is stored, use an if-else-if block of code to determine the letter grade of the inputted integer grade. Do
not use if statements by itself or another strategy to solve this problem. You will print and “Error” for inputs
greater than 100. You will also print an “Error” for inputs less than 0. Both errors must be handled together
by a compound conditional statement that is joined by a short circuit &&. The error should not be a print
statement. It should use a String variable that is assigned the value of ERROR. You must a Char variable for
each letter grade. You must use a System.out.println for printing the error. You must a System.out.printf for
printing the letter grade.
You will run the program three times. Each time you run the program you will enter three different inputs.
1. 140
2. -42
3. 85
Expert's answer
Dear Christopher , your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions