-
Notifications
You must be signed in to change notification settings - Fork 3
Add ATM challenge #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This challenge is to write a software for an ATM, where a few rules, must be applied in order to | ||
withdraw money. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This challenge is to write software for an ATM where a few rules must be applied to
withdraw money.
|
||
Source: https://dojopuzzles.com/problems/caixa-eletronico/ | ||
|
||
> PS the source is in portuguese. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Portuguese* (capital letter)
Develop a software that simulates a withdraw where the the user inputs the money amount and the | ||
software outputs is the money bills the user can take from the machine, following the rules: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Develop a software that simulates a withdrawal where the user inputs the money amount and the software outputs the money bills the user will receive from the machine, following the rules:
|
||
Given the user which wants to withdraw $45. | ||
|
||
The software needs to return two money bill for $20 and one for $5. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two money bills*
|
||
Given the user which wants to withdraw $21. | ||
|
||
The software needs to return an error since there is not available money bill to deliver $21. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the software is not capable of delivering $21.
Develop a software that simulates a withdraw where the the user inputs the money amount and the | ||
software outputs is the money bills the user can take from the machine, following the rules: | ||
|
||
- The sofware needs to delivery as low money bills as possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
software*
No description provided.