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
endl;
cout MAIN MENU endl;
cout CHECK BALANCE" endl;
cout DEPOSIT" endl;
cout WITHDRAW" endl;
cout EXIT" endl;
cout endl;
int main
An ATM program which has the features to withdraw, deposit, check balance, and exit.
int option;
double balanceChecking ;
double depositAmount;
double withdrawAmount;
do
mainMenu;
cout "Choose an option endl;
cin option;
systemcls;
switch option
Check Balance
case :
cout "Checking Account balance is: $ balanceChecking endl;
break;
Deposit
case :
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 :
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 ;
cout "Thank you for banking with us;
systemPause;
Improve the application as follows:
Run the application and navigate all possible options.
Add a saving account with a balance of $
When option is selected, print out the balance in the checking account and print out the balance in the saving
account.
When option is selected, give the user an option to select in which account money should be deposited and
update the balance accordingly.
When option 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
