#include "stdstuff.h" #include "customerDB.h" // add a new customer to the database; returns true if successful, false otherwise // (database full or customer already exists) bool addCustomer(int id, double total, const Date &purchase, const String2002 &name, customerDB &db) { if(db.numCusts==MAXCUST) return false; // database is full for(int i=0;imaxtotal) maxtotal=db.ci[i].total; } 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 outputFirstCustomerDate(const customerDB &db) { Date max(31,12,2099); cout << "The first purchase date is: "; for (int i=0; i