Menu

Find Errors Following Code Warning Code Contains Errors Switch Score Case Score 90 Grade B Q43892363

Find the errors in thefollowing code:

/ / Warning! This codecontains 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 Javaformat

Expert Answer


Answer to Find the errors in the following code: / / Warning! This code contains ERRORS! switch (score) { case (score > 90): grade…

OR