In this lab you are writing an application program that uses the Date class. Files Date.h and Date.cpp, as well as stdstuff.h (for Dev-C++) have been provided on the G: drive. Ensure that you put all the required files (Date.h, Date.cpp, stdstuff.h, and your solution, lab1v2.cpp, and the Dev-C++ project files) in your working directory. It is recommended but not required that you use the supplied file: lab1skel.cpp as the starting point for lab1v2.cpp.
Your program deals with birth dates. It should work as per the following example (items in bold are entered by the user):
Enter your birth date (DD MM YYYY): 22 1 1987
Your birth date is: 22/1/1987
You were born on a Thursday.
Enter another date (DD MM YYYY; 31 12 1900 to quit): 22 1 2009
You entered: 22/1/2009
On that date you will be 8036 days old.
That date is your birthday.
Enter another date (DD MM YYYY; 31 12 1900 to quit): 15 6 2009
You entered: 15/6/2009
On that date you will be 8180 days old.
That date is not your birthday.
Enter another date (DD MM YYYY; 31 12 1900 to quit): 22 1 1909
You entered: 22/1/1909
On that date you will be -28489 days old.
That date is your birthday.
Enter another date (DD MM YYYY; 31 12 1900 to quit): 31 12 1900
Press any key to continue . . .
The above data is just an example. Your code must work with any input, except that you may assume that all dates entered are valid.
Call your program “lab1v2.cpp” and submit this file using the lab test submit program provided.
Updated: Thursday, January 22nd, 2009.