Create a program that displays the number of days in a


Program: 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 February). 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.

I'm not sure how to solve the question. Can anyone help me?

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Create a program that displays the number of days in a
Reference No:- TGS0991626

Expected delivery within 24 Hours