Skip to content

NOVA-Uncommon-Coders/ATM-PartDeux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

screenshot

Description

Extend your ATM code to allow adding and removing bank accounts. Obviously, this is not typically a feature of ATMs, but we are innovators.

Requirements

  • Create a HashMap to 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 HashMap should 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.

HARDMODE

  • Allow users to transfer funds to each other.

LUDICROUSMODE

  • Allow each user to have multiple bank accounts (e.g. "checking" and "savings")

About

Building on ATM assignment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors