Banking System (Java Programming)
1 bank (Bank) has 5 accounts holder (Account)
also designing textbased menu (switch case):
Main Menu:
1. Admin Login
2. User Login
3. Exit
Admin Menu:
1. Add an Account
2. Remove an Account
3. Print total balance
4. Print total balance per city
5. Go back to main menu
User Login
1. Withdraw //also redo last withdraw
2. Deposit //also redo last deposit
3. print account
4. Go back to main menu
Designing class Account for:
- (field: name, ID, balance, city, username, password), constructors, mutators, assessors
1. withdraw
2. redo last withdraw
3. deposit
4. redo last deposit
5. login validation
6. when bank is adding a new account, account ID will automatically be generated incrementally
Designing class Bank for:
- (field: private username, private password, private ArrayList accounts //list all accounts ), constructors, mutators, assessors
1. login validation
2. addAccount // when creating an account, the username and password will be written in the code
3. removeAccount (by using account ID)
4. calculate all total balance
5. generateReport (all total balance per city) (have a list of the city in the field)