Build a Cash Register Project - Build a Cash Register

Tell us what’s happening:

I believe one of the tests doesn’t make sense. It says the change due should be 0.04 in pennies but the change in drawer should be the initial value 1.01. So, we give pennies but the pennies drawer is untouched.

Your code so far

<!-- file: index.html -->

/* file: script.js */

/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 OPR/112.0.0.0

Challenge Information:

Build a Cash Register Project - Build a Cash Register

I’m not sure I understood your comment but basically the testcases are automatically changing the price and cid as they run. Hopefully that explains to you why the values are changing for each test case.

you will need to parse your numeric inputs so it gets rounded off properly