Hi,
I am working on cash register solution at the moment. On the test section it says the below statement (please see below).
checkCashRegister(19.5, 20, [["PENNY", 0.01], ["NICKEL", 0], ["DIME", 0], ["QUARTER", 0], ["ONE", 1], ["FIVE", 0], ["TEN", 0], ["TWENTY", 0], ["ONE HUNDRED", 0]])
should return {status: "INSUFFICIENT_FUNDS", change: []}
.
Change is 0.5 and cash drawer has a total amount of 1.01 why is the test saying insufficient funds. Am I reading this the wrong way around ?