Question: Implement the banking application designed above to provide the functionality given below. You will implement your design as you described in the UML class diagram.
Implement the banking application designed above to provide the functionality given below. You will implement your design as you described in the UML class diagram. You will make use of inheritance and association: When executed, your program should display a menu of options.









Here is the UML class diagram for the banking application: designed above to provide the functionality given below. You will implement your design as you described in your class diagram. Where appropriate, you will make use of inheritance and association: When executed, your program should display a menu of options: 1 - Open a Checking account 2 - Open Saving Account 3 - List Accounts 4 - Account Statement 5 - Deposit funds 6 - Withdraw funds 7 - Close an account 8 - Exit The user of the program should be able to enter a choice between 1-6. Any number entered other than 1-6 should be ignored and menu options repeated. 1-Open Checking Account If option 1 is selected, your program will ask for the following information (the values in black are only for example): Enter first name: Jane (this is an example value) Enter last name: Doe (this is an example value) Enter social security number: 999-999-9999 (this is an example value) Enter overdraft limit: 500 (this is an example value) Once the user has entered information the following confirmation will be displayed, and the main menu will be displayed again: Thank you, the account number is 9999 (this is an example value) 1 - Open a Checking account 2 - Open Saving Account 3 - List Accounts 4 - Account Statement 5 - Deposit funds 6 - Withdraw funds 7 - Close an account 8 - Exit menu will be displayed again: Thank you, the account number is 9999 (this is an example value) 1 - Open a Checking account 2 - open Saving Account 3 - List Accounts 4 - Account Statement 5 - Deposit funds 6 - Withdraw funds 7 - Close an account 8 - Exit Please enter your choice: 2 - Open Saving Account If option 2 is selected, your program will ask for the following information (the values in black are only for example): Enter first name: Jane (this is an example value) Enter last name: Doe(this is an example value) Enter social security number: 999-999-9999 (this is an example value) Once the user has entered information the following confirmation will be displayed, and the main menu will be displayed again: Thank you, the account number is 9999 (this is an example value) 2-Open Saving Account If option 2 is selected, your program will ask for the following information (the values in black are only for example): Enter first name: Jane (this is an example value) Enter last name: Doe (this is an example value) Enter social security number: 999-999-9999 (this is an example value) Once the user has entered information the following confirmation will be displayed, and the main menu will be displayed again: Thank you, the account number is 9999 (this is an example value) 1 - Open a Checking account 2 - Open Saving Account 3 - List Accounts 4 - Account Statement 5 - Deposit funds 6 - Withdraw funds 7 - Close an account 8 - Exit Please enter your choice: If option 3 is selected, your program will list all accounts currently held by the Bank. The output should look like the following: Enter account number: 1001 (this is an example value) Output: Account Number ( Account Name > ) : First Name : Last Name : SSN : Balance > : Account Status > 1001 (Checking) : Joe : Blogs : 999-999-9999: 17.0 : Account open 1002 (Saving) : Minnie : Mouse : 111-999-9999:20.0 : Account Open 1 - Open a Checking account 2 - Open Saving Account 3 - List Accounts 4 - Account Statement 5 - Deposit funds 6 - Withdraw funds 7 - Close an account 8 - Exit Please enter your choice: 4-Account Statement If option 4 is selected, your program will ask for the account number and then print a statement for the account. If the account number does not exist then an error message will be displayed. Enter account number: 1001 (this is an example value) Output: transaction id > : : > : : Balance: Example: 123 : Credit : 10.00 124 : Credit : 1.00 125 : Debit : 5.00 Balance: 6.00 Or Account not found 1 - Open a Checking account 2 - Open Saving Account 3 - List Accounts 4 - Account Statement 5 - Deposit funds 6 - Withdraw funds 7 - Close an account 8 - Exit Please enter your choice: 5-Deposit funds If option 5 is selected, your program will ask for an account number and an amount. The confirmation message will state if the deposit succeeded or failed or if the account could not be found. Enter account number: 1001 (this is an example value) Enter the amount to deposit: 12.0 (this is an example value) The output will be one of the following messages: Deposit successful, the new balance is: Or Deposit failed, the balance is: Or Account not found 1 - Open a Checking account 2 - Open Saving Account 3 - List Accounts 4 - Account Statement 5 - Deposit funds 6 - Withdraw funds 7 - Close an account 8 - Exit Please enter your choice: 6-Withdrawal If option 6 is selected, your program will ask for an account number and an amount. The confirmation message will state if the deposit succeeded or failed or if the account could not be found Enter account number: 1001 (this is an example value) Enter the withdrawal amount: 5.0 (this is an example value) The output will be one of the following messages: Withdrawal successful, the new balance is: Or Withdrawal failed, the balance is: Or Account not found 1 - Open a Checking account 2 - Open Saving Account 3 - List Accounts 4 - Account Statement 5 - Deposit funds 6 - Withdraw funds 7 - Close an account 8 - Exit Please enter your choice: 7 - Close an account If option 7 is selected, your program will ask for an account number and print one of the two output messages. Enter account number to close: 1001 (this is an example value) The output will be one of the following messages: Account closed, current balance is , deposits are no longer possible Or Account not found 1 - Open a Checking account 2 - Open Saving Account 3 - List Accounts 4 - Account Statement 5 - Deposit funds 6 - Withdraw funds 7 - Close an account 8 - Exit Please enter your choice: 8 - Exit If option 8 is selected, the program will exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
