Conversation
goalves
reviewed
Aug 17, 2021
Comment on lines
+5
to
+6
| This challenge is to write a software for an ATM, where a few rules, must be applied in order to | ||
| withdraw money. |
Member
There was a problem hiding this comment.
This challenge is to write software for an ATM where a few rules must be applied to
withdraw money.
goalves
reviewed
Aug 17, 2021
|
|
||
| Source: https://dojopuzzles.com/problems/caixa-eletronico/ | ||
|
|
||
| > PS the source is in portuguese. |
Comment on lines
+14
to
+15
| 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: |
Member
There was a problem hiding this comment.
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. |
|
|
||
| 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. |
Member
There was a problem hiding this comment.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.