Question: Using C++ (microsoft visual studios 2013) create a program that displays the number of days in a month. Use a 12 element one dimensional array

Using C++ (microsoft visual studios 2013) create a program that displays the number of days in a month. Use a 12 element one dimensional array to store the number of days in each month(use 28 for the number of days in febuary). Code the program so that it displays the number of days in the month corresponding to the number entered by the user. For example when the user enters the number 1 the program displays "There are 31 days in the month of January". The program should display an error message if the user enters an invalid number. Put a loop in the program so that the user can input multiple months. Use a sentinel of -1 to exit the program.

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!