#include #include using namespace std; class Transaction { private: double balance, depositTotal, checkTotal, ATMtotal, FeeTotal; public: Transaction() {balance = 0; depositTotal = 0; checkTotal = 0; ATMtotal = 0; FeeTotal = 0;} // default constructor, initial balance set to $0 void makeDeposit (double amount) {balance += (amount - 0.25); depositTotal += amount;} double getBalance () const {return balance;} void OverDraftFee (double amt) {balance -= (amt + 35.00); ATMtotal += amt;} bool withdrawCheck (double a) {if (balance >= a) { balance -= (a + 0.25); checkTotal += a; return true; } else { balance -= (a + 35.25); checkTotal += a; return false;} } bool withdrawATM (double amt) {if (balance >= amt) { balance -= amt; ATMtotal += amt; return true; } else return false;} void putFeeTotal(double f) {FeeTotal += f;} double getDepositTotal() {return depositTotal;} double getCheckTotal() {return checkTotal;} double getATMtotal() {return ATMtotal;} double getFeeTotal() {return FeeTotal;} }; // function prototypw void showMenu(); int main() { double dollars, check, atm; int num; char choice; char* ErrorMsg1 = "Deposit or withdrawal amount cannot be negative"; char* OverDraft = "There will be a $35.00 Overdraft Fee if you continue with the transaction. Do you want to continue. Y or N? "; Transaction CheckBook; // object CheckBook, default constructor, initial balance is $0 cout<<"**Initial balance is $0. To quit the program, enter Control-Z.\n"; while(!cin.eof()) { showMenu(); cin>>num; if(!cin.eof()) { switch(num) { case 1: cout<<"Enter the amount of the deposit: "; cin>>dollars; if(dollars < 0) cout<>check; if(check < 0) { cout<>atm; if(atm < 0) { cout<>choice; if(choice == 'Y' || choice == 'y') { CheckBook.OverDraftFee(atm); CheckBook.putFeeTotal(35.00); //keep track ofsum of 35.00 overdraft fee total cout<