Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

1.4 - ATM with Classes - Stanley #29

Closed
26 tasks done
mcmillanator opened this issue Jun 19, 2015 · 0 comments
Closed
26 tasks done

1.4 - ATM with Classes - Stanley #29

mcmillanator opened this issue Jun 19, 2015 · 0 comments

Comments

@mcmillanator
Copy link

PR: (https://github.com/mcmillanator/1.4-ATM-Classes/pull/1)

Tasks

  • Create a new Issue with these tasks!
  • Create a repository called 1.4-ATM-Classes
  • Create a branch on 1.4-ATM-Classes called dev
  • In Github, open a PR from dev into master
  • Write an ATM program
    • Checkpoint: Create assignment.rb
    • Checkpoint: Use what we did in class and what we did at the end of yesterday as a reference
    • Checkpoint: Parse the provided CSV in to User class instances - I did something a little different based on the conversation Elizabeth and I had about creating a single object instead of an object per csv row. (Also talked to Rob about this) I like my solution more, but CSV is not substitute for a DB. :)
    • Checkpoint: User Flow
      • prompt me for my name
        • If I enter nothing, then it should continue to prompt me for my name (bonus for a witty message)
      • prompt me for what I would like to do
        • 1. Check my balance, 2. Withdraw Funds or 3. Cancel
        • if I enter a number that is not within this list, it needs to continue to prompt me to enter either 1, 2 or 3 (this should not be hardcoded--use .count and a Range to programmatically figure out what numbers are acceptable)
        • Check Balance
          • print to the console "Your balance is __$$$__"
        • Cancel
          • print to the console "Thank you and please come again."
        • Withdraw Funds
          • prompt for how much money to withdraw
            • if the amount is greater than the amount of money in the machine, print that the machine doesn't have that much money
            • if the amount is greater than the amount of money the user has available, print that the user has insufficient funds
            • if all is well, tell them to please take their money and then tell them their new balance
      • Complete: Pushed assignment.rb
      • HARD MODE: Separate your class(es) in to different files of the same name as the class and require them in to your main assignment.rb file
      • HARD MODE: Clear out the CSV at the end of the program and rewrite it with the new balance (make sure all the unchanged ones are still there)
@mcmillanator mcmillanator added wip and removed wip labels Jun 19, 2015
@rpearce rpearce closed this as completed Jun 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants