Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions