Question: Write a program that prompts the user to enter the first letter of a month ( in small letters ) . Then using the switch

Write a program that prompts the user to enter the first letter of a month (in small letters). Then using the switch statement, print the number of days in that month. (Note that in some cases, when two different months start with the same letter, you will have to ask a second question). Assume the year is not a leap year (i.e. February only has 28 days).

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 Programming Questions!