Question: This question will be manually graded; it will show as a 0 / 9 in your score until it is graded. Convert the following nested

This question will be manually graded; it will show as a 0/9 in your score until it is graded.
Convert the following nested if-else statement into a switch case statement. No need to write the complete program.
if ( choice ==1){
cout << "You selected 1."<< endl;
} else if ( choice ==2|| choice ==3){
cout << "You selected 1."<< endl;
} else if ( choice ==4){
cout << "You selected 4."<< endl;
} else {
cout << "Please select again." << endl;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!