Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

AT IV ATM SOFTWARE You will develop \"ATM Software\" for MyBank. This ATM softwa

ID: 3907618 • Letter: A

Question

AT IV ATM SOFTWARE You will develop "ATM Software" for MyBank. This ATM software will accept deposits and process withdrawals. This is a relatively simple program and does not function like full-fledged ATM. PROGRAM REQUIREMENTS: 1. Your ATM program MUST begin by displaying the following greeting and menu on the screen. The banner at the top need only be displayed once. The same menu will be used throughout the program execution: SOLUTION to ASSIG to yBank T Welcome to MyBank ATM Your Friend in the Business Environment How can I help you today? 1) Deposit Money 2) Withdraw Money 3) Show Account Balance & Exit Programming Hint: use the tab character (1t) to obtain uniform position of each line on screen 2. The initial account balance is $650 for the customer. 3. Once the program is terminated, if it is executed again, the initial balance must again be set to $650 4. The program will continue to run until the user selects option 3. User can do several deposits and withdrawals before exit. Do not terminate the program until option 3 is selected 5. Certain transaction totals will be rewarded with a Gift Card, as explained below. The Gift Card is separate, so you do not need to add the Gift Card amount to the customer's balance. DETAILS-OFCUSTOMER TRANSACTIONS: IF THE USER SELECTS OPTION 1 (Deposit Money), then the following message must appear on the screer Thank you for depositing funds today Please enter the amount:

Explanation / Answer

Code:

#include<iostream>

using namespace std;

int main(){

int initialBalance=650;

cout<<"======================================================================"<<endl;

cout<<" Welcome to MyBank ATM"<<endl;

cout<<" Your friend in the Business Environment"<<endl;

cout<<"======================================================================"<<endl;

int ch=0;

while(ch!=3){

cout<<" How can i help you today?"<<endl;

cout<<" 1) Deposit Money"<<endl;

cout<<" 2) Withdraw Money"<<endl;

cout<<" 3) Show account balance & Exit"<<endl;

cin>>ch;

int amount;

if(ch==1){

cout<<"======================================================================"<<endl;

cout<<" Thank you for depositing money today."<<endl;

cout<<" Enter the amount: "<<endl;

cout<<"======================================================================"<<endl;

cin>>amount;

initialBalance+=amount;

cout<< " Amount added: "<<amount<<endl;

}

if(ch==2){

cout<<"======================================================================"<<endl;

cout<<" Thank you for withdrawing money today."<<endl;

cout<<" Enter the amount: "<<endl;

cout<<"======================================================================"<<endl;

cin>>amount;

if(amount<=initialBalance){

initialBalance-=amount;

cout<< " Amount withdrawn: "<<amount<<endl;

}

else{

cout<<" Not enough funds available in your account"<<endl;

}

cout<< " Amount added"<<endl;

}

if(ch==3){

cout<<"======================================================================"<<endl;

cout<<" Thank you for banking with us."<<endl;

cout<<" Balance: "<<initialBalance<<endl;

cout<<"======================================================================"<<endl;

}

}

}

Sample Output:

radas-macOS:Desktop radas$ g++ b.cpp

radas-macOS:Desktop radas$ ./a.out

======================================================================

Welcome to MyBank ATM

Your friend in the Business Environment

======================================================================

How can i help you today?

1) Deposit Money

2) Withdraw Money

3) Show account balance & Exit

1

======================================================================

Thank you for depositing money today.

Enter the amount:

======================================================================

246

Amount added: 246

How can i help you today?

1) Deposit Money

2) Withdraw Money

3) Show account balance & Exit

2

======================================================================

Thank you for withdrawing money today.

Enter the amount:

======================================================================

45

Amount withdrawn: 45

Amount added

How can i help you today?

1) Deposit Money

2) Withdraw Money

3) Show account balance & Exit

3

======================================================================

Thank you for banking with us.

Balance: 851

======================================================================