Menu

[solved]-Task 1 Write Banking Program Work Several Bank Accounts Bank Account Represented Class Ban Q39025535

Task 1 Write a banking program that can work with several bankaccounts. Each bank account should be represented by a classBankAccount. Member functions of such class have to enable the userof the program with following features:  After entering thecorrect password (containing from 8 to 32 characters) and accountunique ID associated with some account, the user shall be allowedto manage the account (all monetary amounts should be listed indollars $ with two decimal places for cents): o A user can displaythe balance of the account, along with account ID. o A user candeposit to an account. Each deposit of $500 or more receives abonus of $3 added to the balance of the user. For example, if auser deposited $1500, the actual balance of the account shouldreceive $1509 that includes $9 large deposit bonus. o A user canwithdraw from the account. Each withdrawal costs $1 fee. Obviously,the user should not be able to withdraw an amount that exceeds thebalance of the account plus the withdrawal fee. o After each ofthese actions, return to the account menu (so that user won’t haveto re-enter password and ID once again, unless they have opted tosign out).  If the user provides incorrect input, the programshould display appropriate error message and return the user intothe main menu. Think about all potential error cases (i.e.destroying a non-existant account) and handle them appropriately. The program should be capable of creating and destroying accounts,which implies that there has to be some storage structure forthose. Creating new account does not require any authorization;destroying existing account should require that account’s password.New account should be created with zero balance. After performingthe operation, return to the main menu.  The program should have asimple menu system (at least in console window) where a user caninteract with the program. You are provided with sample of how suchmenu could look like, but the actual implementation is up to you.Using your menu system, you should be able to follow the scriptprovided to you. Sample input/output Welcome to Banking Programmain menu! Please select one of the following options: 1. Manage anaccount 2. Create an account 3. Destroy an account 4. Exit theprogram >> 2 To create an account, please provide a password.The password should be 8 to 32 characters long. New accountpassword: >> P@ssword123! Account with ID number 0 has beensuccessfully created! Returning to the main menu… Please selectone of the following options: 1. Manage an account 2. Create anaccount 3. Destroy an account 4. Exit the program >> 1 Enteraccount ID: >> 0 Enter account #0 password: >>P@ssword123! Password accepted. Account #0 management menu Pleaseselect one of the following options: 1. Display balance 2. Depositfunds 3. Withdraw funds 4. Go to main menu Running script Yoursubmission should include a screenshot of the program using thefollowing script: 1. Create account #0 2. Display balance ofaccount #0 3. Deposit $5000 to account #0 4. Display balance ofaccount #0 5. Create account #1 6. Withdraw $100 from account #1 7.Display balance of account #1 8. Deposit $100 to account #1 9.Withdraw $100 from account #1 10. Withdraw $99 from account #1 11.Display balance of account #1 12. Destroy account #2 (note thataccount #2 would NOT exist) 13. Destroy account #0 14. Displaybalance of account #0 (note that account #0 now won’t NOT existtoo) 15. Display balance of account #1 16. Deposit $40 to account#1 17. Display balance of account #1

i want this program in c++ language

Expert Answer


Answer to Task 1 Write a banking program that can work with several bank accounts. Each bank account should be represented by a cl… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *