You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
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)
The text was updated successfully, but these errors were encountered:
PR: (https://github.com/mcmillanator/1.4-ATM-Classes/pull/1)
Tasks
1.4-ATM-Classes
1.4-ATM-Classes
calleddev
dev
intomaster
assignment.rb
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. :).count
and a Range to programmatically figure out what numbers are acceptable)"Your balance is __$$$__"
"Thank you and please come again."
assignment.rb
assignment.rb
fileThe text was updated successfully, but these errors were encountered: