Question: 5. Write, compile, and test a C++ program that uses a switch structure where the user is prompted to enter a number (1-12) corresponding to

5. Write, compile, and test a C++ program that uses a switch structure where the user is prompted to enter a number (1-12) corresponding to a month and the program should display the name of the month. For example, if the user enters 3, the program should output March. An error message should be displayed for an invalid input.

Turn in a printout of the program and printouts of the results testing 3 of the months and one invalid input.

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!