#include "Date.h" #include using namespace std; int main() { // initialize a Date object named today to the current date (e.g., month 11, day 16, // year 2006) using 3-parameter constructor Date today(11, 16, 2006); // intialize a dueDate using default constructor Date dueDate; // use the accessors to display today's date, formatted as mm/dd/yyyy cout << today.get_month() << "/" << today.get_day() << "/" << today.get_year() << endl; // use the modifier to set dueDate to 10/1/2006 dueDate.set_date(10, 1, 2006); // using the < operator, print a message that indicates whether the due date is past // OR the due date is not past. if (dueDate < today) cout << "The due date is past!\n"; else cout << "You still have time before the due date\n"; // use the 3-parameter constructor to reset the value of dueDate to 12/31/2006 dueDate = Date(12, 31, 2006); // using the > and == operators, print a message that indicates whether the due date is past, // the due date is in the future, or the due date is today if (today > dueDate) cout << "Due date is past!\n"; else if (today == dueDate) cout << "Today is the due date\n"; else cout << "You still have time!\n"; }