Question
Please read through all the instructions carefully. Create a C++ console program that keeps track of bank accounts of several customers. Your program can handle
Please read through all the instructions carefully.
Create a C++ console program that keeps track of bank accounts of several customers. Your program can handle a maximum of 5 bank accounts. Your program must use only one array to keep track of 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: (a) The program accurately performs the necessary operations and returns to the main menu unless option d is selected. If option d is selected, your program terminates. (b) [1 point] 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. (c) [3 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 needed. i. Last name ii. First name
iii. Balance (as determined by initial deposit) iv. Account number (automatically assigned by your program) (d) For savings account, profit accrued to date is tracked. Profit is determined and manually added to total balance. (e) For checking account, number of checks written is tracked. Each time a check is written, program user can increment the number of checks. (f) [5 points] For option c, 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 details (as explained in option b above) based on type of account and give the user option to edit first and last names, deposit or withdraw money, increment checks written for checking account, add profit for savings account, or to return to main menu. If you choose to withdraw money, your program ensures that there is sufficient balance for the withdrawal. Please ensure your program meets the following design requirements: i. Design your program to demonstrate the concept of inheritance. Not meeting this requirement will result in a penalty of 9 points. ii. You must demonstrate use of at least one virtual function. Not meeting this requirement will result in a penalty of 5 points. iii. You must not have any public data members in any class. Not meeting this requirement will result in a penalty of 5 points.
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