Question: Java The problem that you are going to solve this week is a menu-driven one. Your program should be able to A) Open an account.
The problem that you are going to solve this week is a menu-driven one. Your program should be able to A) Open an account. B) Deposit/Withdraw in/from your account. C) Print all accounts ID and balance. D) Print customer transaction in a specified date. E) Exit Account can be of type saving or current. In case the first option was chosen, you need to issue an 8 digit random number. You need to be careful that your random number does not repeat. In case the second option was chosen, you need to ask for the amount that is deposited or withdrew. To withdraw from an account you have two possibilities; if the account is saving you withdraw the amount if there is enough money in there. If the account is current depending on the defined overdraft you could go in red. In case the third option was chosen you need to print all accounts ID and the balance. In case the fourth option was chosen you need to print all the transaction that a person has done in a specified period of time. Option 5 exits from the program. Hints Using inheritance is a key to success in this program. Saving account and current account are sub classes of account. Account should be defined abstract. You also need another class which represent bank customer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
