Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial And Temporal Databases 8th International Symposium Sstd 2003 Santorini Island Greece July 2003 Proceedings Lncs 2750

Authors: Thanasis Hadzilacos ,Yannis Manolopoulos ,John F. Roddick ,Yannis Theodoridis

2003rd Edition

3540405356, 978-3540405351

More Books

Students also viewed these Databases questions