Question: C++ Please 1. Write a function names DaysOfMonth with two parameters, which are the month and year, to display the number of days. (Finding the

C++ Please C++ Please 1. Write a function names DaysOfMonth with two parameters, which

1. Write a function names DaysOfMonth with two parameters, which are the month and year, to display the number of days. (Finding the number of days in a month) 2. Write the second function named Input to prompt the user to enter the year and monith declared in the main function in this order, and call function Input and DaysOfMonth to display the number of days in the month. main int month, year, Inpufyear month) Days OfMonth year, month), 2 Example 1 input 22000 Example 1 outputFebruary 2000 has 29 days Example 2 Input 3 2005 Example 2 output March 2005 has 31 days Hint the number of days in February for the different years may be different, which depends on whether it is a leap year or plan year. A year is a leap year if either (1) or (2) holds (1) it is divisible by 400 (2)it as divisible by 4 but not divisible by 100)

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!