[solved] – Question 85622
Create a calendar program that allows the user to enter a day, month and year in three separate variables. Then ask the user to select from a menu of choices using this formatting:
Please enter a date
Day:
Month:
Year:
Menu:
1) Calculate the number of days in the given month.
2) Calculate the number of days left in the given year.
It must include the following functions:
leap_year: Takes the year as a parameter and returns a 1 if a year is a leap year (Links to an external site.)Links to an external site.and 0 if it is not. This information will only be used by other functions.
number_of_days: This subprogram will accept the date as parameters and return how many days are in the given month (Links to an external site.)Links to an external site..
days_left: This will accept the date as parameters and then calculate the number of days left in the year. This should not include the date the user entered in the count.
Expert Answer
OR

