Question: c++ lamguage and switch implementation - Write a program to output the number of days in a month. - Prompt the user to enter an
- Write a program to output the number of days in a month. - Prompt the user to enter an integer value between 1 and 12 (inclusive), corresponding to the months of the year (where January is 1 ). - Output the number of days in the specified month. - Output an error message if input value is not within the specified range. - Use a switch statement. - Combine cases where possible. 1. Develop an algorithm to solve the problem. 2. Using the algorithm, write the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
