Cash Register
Last updated September 2023
freeCodeCamp Certification Project
Developer Credits
- Developed by Daniel Fletcher
Project Link
Link will open in a new tab.
Skills & Technologies
- JavaScript
Project Details
JavaScript implementation of an algorithm that simulates making change at a cash register, making exact change when possible.
The final project in this freeCodeCamp certification track is a little more involved than the other four. In accordance with the specifications, I implemented a series of algorithms in JavaScript to calculate a valid amount of change for some cash transaction. A price, a cash payment amount, and an initial cash register balance are expected as input.
The CodePen link above will open an in-browser code editor and console. Tinkering at the console will enable you to interface with the checkCashRegister
function I implemented. Note that all other functions are designed as helper functions and are therefore not expected to be called directly.
Relevant links:
Related Projects
This is certification project 5 of 5 in the JavaScript Algorithms and Data Structures track at freeCodeCamp. Each of my project submissions in this track is linked below.
Roman Numeral Converter
Sep 2023
JavaScript implementation of a function that converts a base-10 integer to its Roman numeral counterpart.
Caesars Cipher
Sep 2023
JavaScript implementation of the Caesar cipher substitution algorithm. Uses the common ROT13 variant.