Virginia Tech Computer Science Department
Tom Plunkett
tplunket@csgrad.cs.vt.edu
Display 8.2: Equality Functions as a Friend
Overview: Classes, seperate compilation, multi-dimensioned arrays
Requirements
1)Break up the class DayOfYear into header file, implementation file, and application file (main function).
2)Extensively modify the application file: Create a double dimensioned array of size [12][31] (to represent days of the year) of type Bool. Create a single dimesioned array of size five of type DayOfYear. Default value for objects in the Bool array is "FALSE". The user can enter in values for up to five objects of class DayOfYear. For each object, call the accessor function (DayOfYear[counter].input()) and set the Bool value to "TRUE" for the corresponding days of the year in the Bool array. If two days of the year are equal, issue an error message to the user.
5) Please insert all appropriate comments into your source code.
6) You should exchange email addresses with your fellow team members and be prepared to work on this project again next week (whether or not you work on it in between weeks is up to you).
7) There are several programs in chapter 8 and 10 that may be helpful.