Question: Client Bank Accounts You will write a program to maintain the balance on two customer bank accounts one savings one checking. You may choose to

Client Bank Accounts

You will write a program to maintain the balance on two customer bank accounts one savings one checking. You may choose to use an array or maintain separate objects for each account. You shall create a menu which will continue until the user has completed their transactions. The client will be asked if they want to deposit or withdraw funds from their Savings or Checking account. Your program will maintain the balance for the proper account and then display the current balance for each account when the transactions are completed. Display client info and a simple sentence for each balance. For the savings account you may not withdraw more than the current balance, use exception to let the user know the transaction cannot be completed. For the checking account you may not withdraw more than the current balance plus the overdraft amount, use exception to let the user know the transaction cannot be completed. Your program must implement the following interface into each of your subclasses public interface accountMaintenance { void deposit(double amt); // add to balance void withdrawal(double amt); // remove from balance } You will also include a method to display the balance using Polymorphism. The method should accept a saving account or checking account using the class Account and print the correct balance. Use the following UML as a starting point, I am providing fields only Account String clientID // 7 numbers; String client name double balance Saving extends Account implements AccountMaintenance String accountNum double interest rate // current interest rate on savings. Checking extends Account implements AccountMaintenance String accountNum double overdraftAmt // amount allowed for an overdraft.

Client Bank Accounts You will write a program to maintain the balance

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!