Question
Please create an original program that works in visual studio following the instructions below 1. Create a C++ console program that keeps track of bank
Please create an original program that works in visual studio following the instructions below
1. Create a C++ console program that keeps track of bank accounts of several customers. Your program can
handle a maximum of 5 bank accounts.
When the program is run, the following main menu is displayed:
a. Display a list of existing bank accounts
b. Add a new bank account
c. Edit an existing bank account
d. Exit the program
After a choice from the main menu is selected, the program accurately performs the necessary operations and returns to the main menu unless option d is selected.
I. [1point] If option d is selected, your program terminates.
II. [3 points] For option a, the program displays a list of existing bank accounts. Each item in this list includes an account number, the first and last names of account holder, and the available balance.
Display accounts sorted by account number;
Give the user the choice to display accounts sorted by account balance.
III. [6 points] For option b, the program displays Cannot add more than 5 accounts, when 5 accounts already exist. Otherwise, the program prompts the user to select between adding a checking account or a savings account.
For each type of account, the following information is input.
Name of account holder
Balance (as determined by initial deposit)
Account number should be assigned automatically. Start numbering at 1.
For savings account, profit accrued to date is tracked. Profit is determined and manually added to total balance at the end of each month. Start at 0.
For checking account, number of checks written is tracked. Each time a check is written, program user can increment the number of checks. Start at 0
V. For option c,
[3 points] Let the user search for an account by account number. If account number does not exist, display account does not exist and return to main menu. If the account exists, display the account number, name, balance, and number of checks written for checking account and profit accrued for savings account. After displaying account details, give the user option to edit account with the following options:
[1 point] Edit name;
[3 points] Deposit or withdraw money. If you choose to withdraw money, your program
ensures that there is a sufficient balance for the withdrawal.
[2 points] Depending on the type of account:
Increment checks written for checking account;
Add profit for savings account;
[1 point] Return to main menu
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started