Lab 13
Write a class named "investmentList" that models a list of investment
objects. In the interest of time, you need include only a limited number of
member functions:
- a default constructor that creates an empty list with a capacity of 200.
- a function named "append" that adds a new investment to the end of the
list. This function has four parameters: the present value, the nominal
annual rate (as a percent), the time in years, and the periods per year. If
the list is full, this function should do nothing.
- a function named "retrieve" that returns the investment at a specified
position. If the position is invalid, this function should return the
investment at position 0.
- a function named "size" that returns the size of the list.
- a function named "capacity" that returns the capacity of the list.
Rewrite your investment report application from Lab 12
using an investmentList object to store all of the investment data.