Question: Develop an application for a bank. Copy and paste the following code then improve the ATM application according to therequirements below. #include using namespace std;

Develop an application for a bank. Copy and paste the following code then improve the ATM application according to therequirements below.
#include
using namespace std;
void mainMenu()
{
cout <<"
**Welcome to Bank of ET 388**
"<< endl;
cout <<"**********MAIN MENU**********"<< endl;
cout <<"1. CHECK BALANCE" << endl;
cout <<"2. DEPOSIT" << endl;
cout <<"3. WITHDRAW" << endl;
cout <<"4. EXIT" << endl;
cout <<"************************"<< endl;
}
int main()
{
//An ATM program which has the features to withdraw, deposit, check balance, and exit.
int option;
double balanceChecking =1000;
double depositAmount;
double withdrawAmount;
do
{
mainMenu();
cout << "Choose an option 1-4"<< endl;
cin >> option;
system("cls");
switch (option)
{
// Check Balance
case 1:
cout << "Checking Account balance is: "<<"$"<< balanceChecking << endl;
break;
// Deposit
case 2:
cout << "Enter amount you would like to deposit in your Checking Account: $";
cin >> depositAmount;
balanceChecking += depositAmount;
cout << "Checking Account balance is: "<<"$"<< balanceChecking << endl;
break;
// Withdraw
case 3:
cout << "Enter amount you would like to withdraw from your Checking Account: $";
cin >> withdrawAmount;
if (withdrawAmount <= balanceChecking)
{
balanceChecking -= withdrawAmount;
cout << "Checking Account balance is: "<<"$"<< balanceChecking << endl;
}
else cout << "You don't have enough funds in your Checking Account" << endl;
break;
}
}
while (option !=4);
cout << "Thank you for banking with us!";
system("Pause>0");
}
Improve the application as follows:
- Run the application and navigate all possible options.
- Add a saving account with a balance of $500.
- When option 1 is selected, print out the balance in the checking account and print out the balance in the saving
account.
- When option 2 is selected, give the user an option to select in which account money should be deposited and
update the balance accordingly.
- When option 3 is selected, give the user an option to select from which account money should be withdrawn and
update the balance accordingly.
- Add an option to transfer funds from one account to another and update the balances accordingly

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!