#include "CreditCard.h" // provides CreditCard #include #include // needed for formatting output using namespace std; // Provide implementation for all the methods here /** A standard format for displaying relevant account information. * * Please do NOT alter this implementation. */ ostream& operator<<(ostream& out, const CreditCard& c) { int p = out.precision(); out.precision(2); out << setiosflags(ios::fixed) << "Number = " << c.getNumber() << endl << "Name = " << c.getName() << endl << "Current Balance = " << c.getCurrentBalance() << endl << "Limit = " << c.getLimit() << endl << "Previous Month Balance = " << c.getPreviousBalance() << endl << "Min Payment Due = " << c.getMinPayment() << endl; out.precision(p); return out; }