Question: Write a class called BankAccountClient.java to test the BankAccount.java. In this client class, you should create an instance of the BankAccount class, sets its fields,

Write a class called BankAccountClient.java to test the BankAccount.java. In this client class, you should create an instance of the BankAccount class, sets its fields, and call all methods you implemented in BankAccount.java.
-Create at least 3 BankAccount objects using both constructors and pass in account information.
-Use while loops to keep the program running until the user chooses to exit.
-Use a static method to display a menu of options for the user to choose from.
-Use a static method to get the user’s input and validate the user inputs accordingly (For example, accountHolder Name should be in the form of “FirstName MiddleInitial. LastName” )
- Call the appropriate methods of the BankAccount object based on the user’s choice.
- Make sure to include error checking and validation for user input (invalid input or insufficient funds).

Here is an example menu for your client code:
1. Display information of an account
2. Deposit to an account
3. Withdraw from an account
4. Transfer between two accounts
5. Calculate Interest
6. Get the balance of an account
7. Change Account Details (Name)
8. Exit

Step by Step Solution

3.52 Rating (162 Votes )

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!