Skip to content

Conversation

@jeffhsta
Copy link

No description provided.

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.
Copy link
Member

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Portuguese* (capital letter)

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:
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

software*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants