Extend your ATM code to allow adding and removing bank accounts. Obviously, this is not typically a feature of ATMs, but we are innovators.
- Create a
HashMapto store everyone's balances. It should map names (String) to balances (Double). - When the user types a name that isn't recognized (i.e., isn't in the
HashMap), offer to create an account for them. Then show them the screen listing the three options like before. - Keep looping over the three options until the user cancels. The
HashMapshould keep its previously-set values when it loops around. - Create a fourth option to remove the current user's bank account.
- When the user is done, loop back to the very beginning so it asks you for your name again. That way, other people can log in.
- Allow users to transfer funds to each other.
- Allow each user to have multiple bank accounts (e.g. "checking" and "savings")
