Perpetual calendar. (Written in C)
This program displays days of a month on a screen in a calendar format, from given month and year, which inputted from the keyboard. Dates range: -4712 (4713 B.C.) to 9999 years.
Background information: Julian Caesar implemented the Julian calendar, which was in use until 1582 year (in England and some other countries until 1752 year). This calendar
produced a difference between actual days in a year (one Earths orbit around the Sun) and its date. So Pope Gregory reformed calendar in October 1582.
The astronomers chosen point time to begin from was 12 o’clock noon (Greenwich Mean Time) on 1st January 4713 B.C.
This program allows to find which days of the month
fall on which dates in a stated above range of years. The dates (for February in
the leap years) before 1582 year calculated in a different way than after it.
You can find how virtually any date can be calculated.
Project include files:
calendar.cpp – main module;
dates_calculation.cpp: contains functions to calculate dates for a calendar program;
input_date.cpp: contains functions to get input from a user.
dates_calculation.h: header file for dates_calculation.cpp;
input_date.h: header file for input_date.cpp.