Today was my Day 7 of training in Ryaz. The objective was to make a Cash register App.
- Your program has currencies of Rs. 1, 5, 10, 20, 100, 500, 2000.
- Your user enters a bill amount say Rs. 243.
- Your user then enters a cash given say Rs. 2000.
- Now, help the user by telling how can he/she return the change to the customer with minimum number of notes?
I've made this project in vanilla js. It was a good project to brush up the basics. The logic was to traverse the remaining change through the array. Most of my time has gone to designing and error handling.
The live project is on my code sandbox
The code for this project is updated on my Github repository
AAAND THAT'S ALL!!