Question: Write a C++ program that asks the user to enter a year and a month (month should be 1-12, input validation for the month) and

Write a C++ program that asks the user to enter a year and a month (month should be 1-12, input validation for the month) and pass then to a function to find out how many days in that month. All output should be in the main function.

The function prototype likes below:

int daysOfMonth(int, int);

Use only cout, cin. Don t use printf and scanner.

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!