Question: Note: The code is attached below. Review the code and then verify the program functionality with account ID being 100 and by the following transactions

Note: The code is attached below.

Review the code and then verify the program functionality with account ID being 100 and by the following transactions when prompted by menu options:

Deposit $200 Withdraw $50 View Balance Submit screen shot from output

Note: The code is attached below. Review the code and then verify

the program functionality with account ID being 100 and by the following

transactions when prompted by menu options: Deposit $200 Withdraw $50 View Balance

please write the program in c++ and try and run it before posting it...thanks

#include include using namespace std: // Use enum to define constants with values set to 0, 1, 2, 3 / This helps to make the switch code more meaningful. See Process function. enum {EXIT, DISPLAY, DEPOSITE, WITHDRAN choices; // define a structure BankAcct // Related data such as a bank account can be grouped together as a struct in C++ // To access each item use the variable of type BankAcct as // varname. ID to access ID and varname.bal to access bal. / To declare an array use BankAcct as the data type such as // BankAcct arrayAcct [10] for ten bank accounts / The first account ID is accessed as arrayAcct [0].ID and balance is accessed // as arrayAcct[01.bal struct BankAcct int IDi float bal: //Balance //Account id //Protoypes listing void Process (BankAcct ) void DispMenu int main () BankAcct acct (100, 2340.0 //Declare one account with ID-100 and Bal 2340.0 bool quit false: int id: int tries-1 cout > id: quit = true; else if idacct.ID) Process (acct); quit-true: else

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 Databases Questions!