Homework 3 - Operator Overloading

Due: Tuesday February 8, 2010 at 5:00pm

Coding Conventions

Use the same coding conventions as described in Homework 1. Additionally, make sure to indent each section of the class in the class definition.

Assignment

For this assignment, you will be modifying the Score class from Lab 3 to support a full range of operators. You are not required to use separate compilation (Lab 4) for this assignment.

Add the following constructors and operators to the Score class. Keep all the features that Lab 3 had in the class.

Main Function

Your main() function is going to be a driver function that tests all of the operators and constructors you have added to the class. Note how the main() function for Lab 3 tests input, output, converting an integer, addition, the default constructor and so on. You will need to add additional testing for all of the above features.

In particular, your main function should test the following:

Email your complete Score class and main function to me.