header

Lab 11

Implement a class that models an investment. Your class should have the following:

One of the advantages of a class is that you can guarantee that the state of an object is always valid. A valid investment has a positive present value, a non-negative nominal rate, a compounding frequency of 1, 2, 4, or 12, and a positive term. I've provided skeleton code for the class methods and a test program in the file Lab11.cpp. All you need to do is implement each class method.