Rewrite the following lines of code using switch int score c

Rewrite the following lines of code using switch int score; cout

Solution

int score;

cout<<ënter the score\";<<endl

cin>>score;

switch(score):

case if(score>=85):

cout<<\"Grade A\";

break;

case if(score>=75):

cout<<\"Grade B\";

break;

case if(score>=60):

cout<<\"Grade C\";

break;

case if (score>=40):

cout<<\"Grade D\";

break;

default:

cout<<:fail the exam;

break;

 Rewrite the following lines of code using switch int score; cout Solutionint score; cout<<ënter the score\

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site