Homework 8
Assigned Week of April 2
Due in Lab Week of April 9

Pledge Requirements

Pledge: You may on this pledged assignment work in groups of two or three. Your partners must be from your same lab section. If you violate the section rule, your grade on the assignment will be cut in half. Your group may discuss the content of this assignment and your approach with anyone, but your group must do all if its own work. The group must create the logic of the solution, type the code, and compile, execute, and debug its own program. Your group may not use any code developed by anyone else. Your group's source code  submitted electronically must match exactly the code you deliver in your lab section. Only one member of the group should submit the program electronically and only one printed copy should be handed in.  The header comment section of your program should identify all members of the group. A person cannot be added to a group retroactively. So make sure your name is listed as part of your group's submission. 

Materials

There have been several files created for you. The files are available individually or as a bundle.

The Date Class

Task

      void setMonth(int month);

      void setDay(int day);

      void setYear(int year);

      void extract(istream &sin);
      
      Date& operator ++ ();

      bool operator == (const Date& source) const;

You are to also implement the Date auxiliary function

bool isLeapYear(int y);

For extra credit you can  implement the Date auxiliary operator

Date operator + (const Date &dateOfInterest, int nbrDays);

Leap year determination

Hints

Requirements