Clarification on "Individual Denomination" - Build a Cash Register Project

Hello! There will be no code provided because I just want to ask and understand something. I am stuck on this part of the project certification where it requires:

When price is less than the value in the #cash element, total cash in drawer cid is greater than the change due, individual denomination amounts allows for returning change due, and the #purchase-btn element is clicked, the value in the #change-due element should be "Status: OPEN" with required change due in coins and bills sorted in highest to lowest order.

Especially in this part:

individual denomination amounts allows for returning change due

I am not pure English, I speak English as my second language. but to my understanding. this, as a whole, is about the sufficient cash in the drawer (cid) to see if we can change the customer’s cash used for the purchase, correct?

that would mean, I have to create a function or something responsible for the quantity of each cash in the drawer and then validate that as a condition?

The cash denomination is the different bills and coins that a cash register would have. For eg. You may have a $100 dollar bill or a $50 dollar bill etc

This whole project is about emulating a cash register. Given a certain price for an item, and a customer paying in cash, the test cases show how the app should react when either the cash is not enough to provide the change (the change is the difference between the cash paid and the price of the item) or when the cash is enough but you have to figure out how to split the change (for eg if the change is $1 then you can give the customer one coin worth $1 or 4 coins worth $.25 each which are called quarters or 10 coins which are worth $.10 which are called dimes etc)

(There are other use cases as well but those are two common ones)

1 Like

okay thanks, I’ll do my best.

1 Like