/////// File: Account.C /////// #include #include #include "Account.h" Account::Account(unsigned id, double amt, char* s) : acct_no (id), acct_bal(amt) { strcpy(ss, s); } double Account::balance() const { return(acct_bal); } void Account::deposit(double amt) { acct_bal += amt; } int Account::withdraw(double amt) { if( amt > acct_bal ) return(-1); // failure acct_bal -= amt; return(0); } void Account::display(ostream& out /* = cout */) const { out << "Account No: " << acct_no << "\n" << "Owner SS: " << ss << "\n" << "Balance: " << acct_bal << endl; }