Answer to Question #70240 in Java | JSP | JSF for Christopher
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.
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!