Write a program to make the day of the week program work when the year is 2000 or 1999. You
have the program that works for 1999, now it must work with either. There are a couple of
approaches you can consider:
- You can modify the entry so that the user has to type in a 4 digit year and therefore you
can code appropriate processing based on the two left most digits of the year.
- You can modify the code so there is a range of numbers that means a date in the 1900s and
a range of numbers that means a date in the 2000s. For example, if the right most digits
are greater than 50, you can assume 19 as the first two digits. If the right most digits
are less than or equal to 50, you can assume 20 as the first two digits.
Clearly the second choice is a temporary fix because it is only dealing with dates for a one
hundred year range and sooner or later you will need to fix. There are modifications to this
that can make it a little more flexible, but you have the 100 year limit so it would not
be appropriate when dealing with year of birth etc.
In solving this problem, you need to consider things like 2000 is a leap year and the rules
about leap years and centuries.
Extra credit if you solve the problem without the 100 year limit.