/** Program to test the CreditCard Class */ #include "CreditCard.h" // provides CreditCard #include "Money.h" // provides Money #include // provide cout using namespace std; // make std accessible int main() { // CreditCard test function CreditCard visa("5391 0375 9387 5309", "John Bowman", Money(2500), 0.0079); visa.chargeIt(Money(325,75)); visa.chargeIt(Money(800)); visa.chargeIt(Money(100)); visa.endOfMonth(); cout << endl << "At end of first month:" << endl << visa; visa.chargeIt(Money(228)); visa.makePayment(Money(100)); visa.makePayment(Money(190)); visa.makePayment(Money(10)); visa.endOfMonth(); cout << endl << "At end of second month:" << endl << visa; visa.endOfMonth(); cout << endl << "At end of third month:" << endl << visa; visa.makePayment(Money(1200)); visa.chargeIt(Money(500)); visa.endOfMonth(); cout << endl << "At end of fourth month:" << endl << visa; visa.makePayment(Money(475)); visa.endOfMonth(); cout << endl << "At end of fifth month:" << endl << visa; return 0; }