CSCE 240 Homework 5
You shall submit a zipped, and only zipped, archive of your homework directory,
hw5. The directory shall contain, at a minimum, the files hw5/src/gradebook.cc and
hw5/inc/gradebook.h. Name the archive submission file hw5.zip
I will use my own makefile to compile and link to your hw5/src/gradebook.cc and
hw5/inc/gradebook.h files. You must submit, at least, these two files.
Now that you have implemented the C++ version of a class you might have implemented in CSCE 146,
you will utilize one of the language-specific features of C++. Operator overloading is necessary in C++ to
utilize templates; templates are equivalent to generics in Java.
The GradeBook object provides a means to manage sets of grades. In this version of GradeBook, you
will provide operator overloads. Read the given header file documentation for instructions on how the methods should behave.
I have provided you a basic test app which you can use to ensure that your code is, at least partially,
correct. I would suggest a more rigorous testing scheme to ensure that your methods handle missing data.
You will receive 0.5 points for each passed test (see test-all) as illustrated in the test files, for a maximum of two points. There will be an additional point for compiling against all the tests. In addition, you
will receive up to two points for correct style for a total of 5 points. This assignment will be weighted at
Late assignments will lose 10% per day late, with no assignment begin accepted after 3 days (at 100%
reduction in points).