3. Convert the following if–else structure into an equivalent switch–case structure. #include using namespace std; int main() { char grade; grade = ‘E’; if (grade == ‘A’) cout else if (( grade ==...




3. Convert the following if–else structure into an equivalent switch–case structure.


#include using namespace std; int main()


{


char grade; grade = ‘E’;


if (grade == ‘A’)


cout <“>


else if (( grade == ‘B’) || (grade == ‘C’))




cout \n”;


else if ((grade == ‘D’) || (grade == ‘E’)) cout \n”;


else


cout <“>


}


















May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here