Question: 10. Write a program that reads a date from the user in numeric form. For example, June 1, 2019 would be entered as the three

10. Write a program that reads a date from the user in numeric form. For example, June 1, 2019 would be entered as the three integers 6 1 2019. Your program must then determine if the date is a valid date. Use the following information to determine if the date is valid: January, March, May, July, August, October, and December all have 31 days. April, June, September, and November all have 30 days. February has 28 days in a non-leap year and 29 days in a leap year. The program should output whether it is a valid date or invalid date

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!