Question: Write a complete C ++ program that prompts the user to enter a number between 1 -12, representing a month of the year and a

 Write a complete C ++ program that prompts the user to

Write a complete C ++ program that prompts the user to enter a number between 1 -12, representing a month of the year and a year. The program must display the number of days that month has. Use the following criteria to determine leap years: 1. If the year is divisible by 100, it is leap only if it is divisible by 400. 2. If the year is not divisible by 100, it is leap if and only if it is divisible by 4

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!