In this exercise, you will experiment with the switch statement.
a. Follow the instructions for starting C++ and viewing the Advanced19.cpp file, which is contained in either the Cpp7\Chap06\Advanced19 Project folder or the Cpp7\ Chap06 folder. (Depending on your C++ development tool, you may need to open this exercise’s project/solution file first.) If necessary, delete the two forward slashes that appear before the system("pause"); statement, and then save the program. Run the program. When you are prompted to enter a grade, type d and press Enter. What, if anything, did the switch statement display on the screen? Stop the program.
b. Enter a break; statement in the case 'd': clause. Save and then run the program. When you are prompted to enter a grade, type d and press Enter. What, if anything, did the switch statement display on the screen? Stop the program.
c. Remove the break; statement from the case 'd': clause. Also remove the break; statement from the case 'f': clause. Save and then run the program. When you are prompted to enter a grade, type d and press Enter. What, if anything, did the switch statement display on the screen? Stop the program.
d. Put the break; statement back in the case 'f': clause, and then save and run the program. When you are prompted to enter a grade, type d and press Enter. Stop the program.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.