Microsoft Word - project1.docx
Project 01:
Write a C++ program to print out calendar.
Ask the user which year to display.
Display the calendar for 12 months.
The code keeps on running until the user ask to exit.
Your output should be similar with the following example:
Tips:
According to the Gregorian calendar, it was Monday on 01/01/01.
Leap year: a year that has 366 days (29 days in Fe
uary).
There is a leap year every year whose number is perfectly divisible
y four - except for years which are both divisible by 100 and not
divisible by 400.
For example: the century years 1600 and 2000 are leap years, but
the century years 1700, 1800, and 1900 are not. This means that
three times out of every four hundred years there are eight years
etween leap years.