Skip to content

Conversation

@paulbenjamin3409
Copy link

Requirements

  • Accept a flat file as input
  • Each line will contain the amount owed and the amount paid separated by a comma (for example: 2.13,3.00)
  • Expect that there will be multiple lines
  • Output the change the cashier should return to the customer
  • The return string should look like: 1 dollar,2 quarters,1 nickel, etc ...
  • pluralize if there is more than one
  • Each new line in the input file should be a new line in the output file
  • special consideration: if amount owed is divisible by 3, the app should randomly generate the change

Questions

  • What might happen if the client needs to change the random divisor? The divisor file allows for this input change. Input could be different mechanism
  • What might happen if the client needs to add another special case (like the random twist)? There are placed marked for special cases, per transaction or per denomination
  • What might happen if sales closes a new client in France? The denomination file can be based per country, it just needs to be created and placed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant