Question: Find the errors in the following code: / / Warning! This code contains ERRORS! switch (score) { case (score > 90): grade = 'A'; break;
Find the errors in the following code:
/ / 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'; }
*Submit in Java format
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
