Question: Part 1 : For any year > = 2 0 0 0 and a given month ( 1 - 1 2 ) , print the

Part 1: For any year >=2000 and a given month (1-12), print the Monthly Calendar (
Rqmts:
- Ask the user to type in year (>=20000) and mm (1-12). Your program should print out that month calendar.
Given Conditions:
(1) Jan. 1,2000 falls on Saturday
(2) month_names are "January", "February", "March", "April", "May", "June", "July", "August", "September", "October","November", "December"
(3) week_days are "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
(4) month_days are 31,28,31,30,31,30,31,31,30,31,30,31
(5) for a leap year, there are 29 days in Feb.
* you can reuse the Lab 2 code for this homework
Part 2. For any year prior to 2000, print out the monthly calendar
Ask the user to type in a year (<2000) and a month (1-12). Your program should print out that month calendar.
- reuse the code above if applicable.
Part 3.[optional] Yearly Calendar for any year, 3 month in a row
a.3 months in a row
b. year before or after year 2000, or year 2000

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!