#include "stdstuff.h" #include "CustomerDB.h" // private method to enlarge database by CAPACITY_INCREMENT // Hint: It will make your life easier if you move head back to 0 when you do this! void CustomerDB::enlargeDB() { Customer *temp; // temporary array // allocate new array that is CAPACITY_INCREMENT larger capacity += CAPACITY_INCREMENT; temp = new Customer[capacity]; // copy over values for(int i=0;imaxtotal) // use getTotal maxtotal=ci[(head+i)%capacity].getTotal(); // **must** use getTotal } return maxtotal; } // prints (to cout) the earliest purchase date of all customers // (prints 31 12 2099 if there are no customers in the database) void CustomerDB::outputFirstDate() const { Date max(31,12,2099); cout << "The first purchase date is: "; for (int i=0; i