captainsparrow
IS-IT--Management
I need help in writing a program. I have to write a complete C++ program that asks the user to enter a date in the month/day/year format, such as 4/25/2001. Check to ensure that the date is valid. If the date is valid, convert it to the day number in the year. For example, January 31 is the thirty-first day of the year, and February 1 is the thirty-second day of the year. Recall that a year is a leap year if it is evenly divisible by 4 – except in century years, which are leap years only if they are divisible by 400.