Help stuck with Java. Do not use the case statement. accountNumber (int) accountHolderName (string) : Name of the person who holds the account with “FirstName MiddleInitial. LastName” balance (double): interestRate(double) 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
Help stuck with Java. Do not use the case statement.
accountNumber (int)
accountHolderName (string) : Name of the person who holds the account with “FirstName MiddleInitial. LastName”
balance (double):
interestRate(double)
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
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images