// Name: // Student Id: // Electronic Id: // Name: // Student Id: // Electronic Id: // Name: // Student Id: // Electronic Id: // Lab section: // Course section: // Laboratory instructor: // Date: // Honor pledge: On my honor as a student, I have neither given nor // received aid on this assignment #include "date.h" // Date member functions ******************************************* // mutator setMonth(): sets the month associated with the date, if // an invalid month is requested, an error message is generated and // 1 is used. // mutator setDay(): sets the day associated with the date, if // an invalid day is requested, an error message is generated and // 1 is used // mutator setYear(): sets the year associated with the date, if // an invalid year is requested, an error message is generated and // 2000 is used // mutator extract(): sets the date using the representation extracted // from input stream sin. The representation has form month/day/year. // If an invalid month, day, or year is supplied, an error message is // generated if an invalid date is supplied. // operator ==: returns true if the source represents the date as the // invoking object // operator ++: changes the representation of the invoking object to // the immediately successive date. The invoking object is returned. // Date auxiliary operators **************************************** // operator +: returns the date that is nbrDays days after dateOfInterest, // where nbrDays is at least 0 // isLeapYear(): returns true if y is a leap year; otherwise, returns // false