Question: C++ please 1t Task: Create a program that uses a switch statement and case statements to calculate the number of days in any given month

C++ please  C++ please 1t Task: Create a program that uses a switch
statement and case statements to calculate the number of days in any

1t Task: Create a program that uses a switch statement and case statements to calculate the number of days in any given month based upon a user's input. February is a unique month. Prompt the user again to input the year if the user wants the number of days for February. Hint**. You will need to solve for leap year. Have the user input information. Make sure the program can deal with any integer input. If a number entered does not correspond to a month of the year print "Invalid Month." Attach a snipping photo of source code and output Sample: Please enter Month 1-12 31 days in January Please enter Month 1 -12 You selected February, Please enter year: 2017 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 Databases Questions!