Reference no: EM132154796
Upon starting the program, the user should be asked if they are an existing member of the "bank".
- If the user indicates that they are not a member, they should be prompted to enter their information for registration.
- If the user is a member they should be prompted to enter their login credentials (username and password).
- If the credentials are incorrect, they should be prompted again or kicked back to the main menu (after three tries?).
- If the credentials are correct, they should be taken to the members' menu where they have the options of
1. view a list of their accounts
2. make a deposit
3. make a withdrawal
4. open a new account
5. close an existing account
6. logout (return to main menu)
After completing one of the actions (except logging out), they should be returned to the members' menu.
Design:
When the program starts, it should load members and accounts from a save file.
When the program exits, it should save members and accounts to a save file.
The program should contain a class for accounts and a class for members.
The account class should contain:
- an id number
- a balance
- a type (String)
- a link to the owner's object
- methods to deposit and withdraw money
- any other variables/methods necessary to the function of the program
The member class should contain:
- an id number
- a username (String)
- a password (String)
- a name
- an array of accounts owned by the member
- any other variables/methods necessary to the function of the program