Homework Eight
Add Method for an Indexed File Class

The purpose of our final assignment is to implement one more of the Indexed File concepts discussed in class.


Modify your class from Assignment Seven so that it includes 1) an Add method and 2) a destructor. You will also need to modify main, specifically the menu portion.

We discussed addition to an Indexed File in class quite a bit. So, you know you need to add the new record at the end of the datafile, then reset both indexes.

We only need to write the new indexes into the index files when the program is done. So, that re-writing should go in a destructor.


Submit your single C++ file as an email attachment to dannellys by noon on Tuesday April 26, which is Study Day.