The program is not work right yet. remember how you done my other program? The program support to allows users to enter the month, day, and year; then return and display the date. And after that the program must be return the number of days of that actual month exp: May, the number of days in May is 30. Then it will calculate and display the passed days of the year from the date entered, the number of days remaining in the year, and finally ask the user to add the fix number of days to calculate and display the actual date after the days are added.
The screen should run like this:
Set the month..... (allows user to enter the month exp. 3)
Set the day.......... (allows user to enter the day exp. 18)
Set the year......... (allows user to enter the year exp. 2011)
You has entered 3-18 2011.
The number of days in March is 31.
The number of days passed in the year entered is 77
The number remaining in the year is 288
Add a number of days to calculate for new date......... (allows user to enter days,exp. 25)
The date after added 25 days is 4-12 2011.
That is how the program support to run. Please, fix your program to met the requirement of my program, because this is how your program displayed when I run it:
Is leap year: 1
Days in month = 31
Month = 3
Press any key to continue . . .
then when I press a key the program is closed.