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, lab1v1.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 lab1v1.cpp.
Your program deals with the difference between dates. It should work as per the following example (items in bold are entered by the user):
Enter today's date (DD MM YYYY): 21 1 2009
Today's date is: 21/1/2009
Enter another date (DD MM YYYY; 1 1 2099 to quit): 1 2 2009
You entered: 1/2/2009
That date is 11 days after today.
That date is not the same day of the week as today.
The date 11 days before today is: 10/1/2009.
Enter another date (DD MM YYYY; 1 1 2099 to quit): 7 1 2009
You entered: 8/1/2009
That date is -14 days after today.
That date is the same day of the week as today.
The date -14 days before today is: 4/2/2009.
Enter another date (DD MM YYYY; 1 1 2099 to quit): 1 1 2099
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 “lab1v1.cpp” and submit this file using the lab test submit program provided.
Updated: Wednesday, December 31st, 2008.