Write a program that prompts the user for a month and year, then displays a representation of the month on the screen.
Now calculate the integer values:
Recall: The integer x is evenly divisible by y if
Monthly Calendar Program
Which month (1=January, 2=February, ...)> 10
Which year> 1998
October 1998
Su Mo Tu We Th Fr Sa
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Some specifications of functions to use in your program:
void print_monthname(int month, int year) /* Displays the name of the given month m on a line by itself. month - month number (1 - January, ..., 12 - December)*/ int month_length(int month, int year) /* Computes the number of days in the given month. The year is required to determine if February has 28 or 29 days. month - month we are interested in; year - year we are interested in returns - the number of days in the given month */ int is_leap_year(int year) /* Determines if the given year is a leap year; year - the year we are interested in returns - 1 if the year is a leap year; 0 if the year is not a leap year */ int first_day(int month, int year); /* month - the month we would like to see; year - the year we are interested in returns - the day of the week on which the first day of the given month falls within the given year. */ int print_month(int month, int year, int day) /* Displays the days of the given month in the usual calendar form. month - the month we would like to see; year - the year we are interested in; day - the starting day of the month returns - the starting day of the next month. If this month ends on day 3 then next month should start on day 4.