Question: Using the Java classes from Blackboard as a starting point, implement the banking application you designed above to provide the functionality given below. You will

Using the Java classes from Blackboard as a starting point, implement the banking application you
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 date of birth: 12-30-2000
Enter overdraft limit: 500(this is an example value)
(**The overdraft limit will not be offered to customers under the age of 18. If the
person is under 18 years of age then this option will not be displayed.
** If the person is under 16 years old, then they will not be allowed to open checking
account. Show appropriate error messag)
Once the user has entered information and they are eligible to open the account then 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)
(**The account number will be an ever-incrementing value, it will always be a unique
number)
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)
(** If the person is under 5 years old, then they will not be allowed to open savings
account. Show appropriate error message)
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)
Please enter your choice:
3 List Accounts
If option 3 is selected, your program will list all accounts currently held by the Bank. The output
should look like the following.
Output:
() : : : : :
1001(Checking) : Joe : Blogs : 999-999-9999 : 17.0 : Account Open
1002(Saving) : Minnie : Mouse : 111-999-9999 : 20.0 : Account Open
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)
(** if the account does not exist then display error message)
Output:
: :
: :
.
.
.
Balance:
Example:
123 : Credit :10.00
124 : Credit :1.00
125 : Debit :5.00
Balance: 6.00
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)
(** Deposit will only be successful if a) the account is open; OR b) the account is
closed and the deposit will bring the balance to zero).
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
6 Withdrawal
If option 6 is selected, your program will ask for a 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)
(** Withdrawal will only be successful if:
- The account is open
- The withdrawal will not take balance + any overdraft limit to less than zero
OR
- The account is closed
)
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
If option 7 is selected, your program will ask for an account number and print one of the two output Enter account number to close: 1001(this is an example value)
Or
Account not found option 8 exists

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!