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:
Open a Checking account
Open Saving Account
List Accounts
Account Statement
Deposit funds
Withdraw funds
Close an account
Exit
The user of the program should be able to enter a choice between Any number entered other
than should be ignored and menu options repeated.
Open Checking Account
If option 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: Doethis is an example value
Enter social security number: this is an example value
Enter date of birth:
Enter overdraft limit: this is an example value
The overdraft limit will not be offered to customers under the age of If the
person is under years of age then this option will not be displayed.
If the person is under 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 this is an example value
The account number will be an everincrementing value, it will always be a unique
number
Open a Checking account
Open Saving Account
List Accounts
Account Statement
Deposit funds
Withdraw funds
Close an account
Exit
Please enter your choice:
Open Saving Account
If option 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: Doethis is an example value
Enter social security number: this is an example value
If the person is under 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 this is an example value
Please enter your choice:
List Accounts
If option is selected, your program will list all accounts currently held by the Bank. The output
should look like the following.
Output:
: : : : :
Checking : Joe : Blogs : : : Account Open
Saving : Minnie : Mouse : : : Account Open
Account Statement
If option 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: this is an example value
if the account does not exist then display error message
Output:
: :
: :
Balance:
Example:
: Credit :
: Credit :
: Debit :
Balance:
Deposit funds
If option 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: this is an example value
Enter the amount to deposit: 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
Withdrawal
If option 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: this is an example value
Enter the withdrawal amount: 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 is selected, your program will ask for an account number and print one of the two output Enter account number to close: this is an example value
Or
Account not found option exists
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
