questionwrite down an account class which


Question

Write down 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 percent. A person can open an account with some first deposit or no deposit.

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

Interactive menu has six choices:

1. show all accounts

2. Create a deposit of $100 in your account

3. Create a Withdrawal of 20000 from your account (When you make a withdrawal check that the account has money. If there is no money print "Sorry your balance is less "+balance.)

4. Add Interest to your friend's account

5. Exit (use the command System.exit(0); )

 

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: questionwrite down an account class which
Reference No:- TGS0444046

Expected delivery within 24 Hours