Skip to content

Change Calculator for Creative Cash Draw Solutions #57

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HalJordan409
Copy link

This PR implements the change calculator as outlined in the Cash Register problem.

Features:

  • Built using .NET Core 3.1
  • Provides a GUI built in Avalonia that allows the user to select a file to parse and outputs the contents of the file along with the calculated change
  • Isolated the Cash Register logic into a class library so that it can be easily extracted and used in a larger system
  • The GetChange function will return the minimum amount of change, except when the amount due to the clerk is divisible by 3
  • If the amount due to the clerk is divisible by 3, the change denominations returned to the customer will be randomized

Other notes:

  • I had fun using/learning Avalonia. I could've easily built a SPA + REST API that uploaded a file, but chose to learn a new technology.
  • I also had a good experience using Rider. I only have a Mac and it's nice to know that if I wanted to return to C#/.NET Core development, Rider is a great option.
  • Areas for improvement:
    • Acceptance/integration tests for Desktop project
    • Better UI experience
    • Validation for input file integrity
    • Save output to it's own file

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