Question: USE JAVA. 1. Fix the errors. // Warning! This code contains ERRORS! switch (score) { case (score > 90): grade = 'A'; break; case(score >
USE JAVA. 1. Fix the errors.
// Warning! This code contains ERRORS!
switch (score) {
case (score > 90):
grade = 'A';
break;
case(score > 80):
grade = 'b';
break;
case(score > 70):
grade = 'C';
break;
case (score > 60):
grade = 'D';
break;
default:
grade = 'F';
}
2. Using the following chart, write an if-else-if statement that assigns .10, .15, or .20 to commission, depending on the value in sales.
| Sales | Commision Rate |
| Up to $10,000 | 10% |
| $10,000 to $15,000 | 15% |
| Over $15,000 | 20% |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
