Question
Implement a class Bank . This bank has two objects, checking and sav- ings , of the type Account that was developed in Exercise P5.5.
Implement a class Bank . This bank has two objects, checking and sav- ings , of the type Account that was developed in Exercise P5.5. Implement four member functions: void deposit(double amount, string account) void withdraw(double amount, string account) void transfer(double amount, string account) void print_balances() Here the account string is "S" or "C" . For the deposit or withdrawal, it indicates which account is affected. For a transfer it indicates the account from which the money is taken; the money is automatically transferred to the other account.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started