Each account will have a name, account number


Write an Account Class which represents a Saint Anselm College bank account with basic service such as deposits, interests and withdrawal. 
Each account will have a name, account number (randomly generated 4 digit number) and a balance. The program will have an interest rate of 1%. A person can open an account with some initial deposit or no deposit.

Also, write a driver program to test your Account Class. In the driver program, create an account for yourself and 2 of your friends at Saint Anselm College. Store each account in an array. The driver program has an interactive menu. 

The interactive menu has 6 choices:
1. Display all accounts
2. Make a deposit of $100 in your account
3. Make a Withdrawal of 20000 from your account
(When you make an withdrawal check that the account has the money. If there is no money print "Sorry your balance is less "+balance.)
4. Add Interest to your friends account
5. Exit (use the command System.exit(0); ) 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Each account will have a name, account number
Reference No:- TGS088737

Expected delivery within 24 Hours