I need to handle each entry based on the test cases file, the only test case i am having a trouble with is the test case which requires to subtract a 1 bill from a 10 bill which is only possible if the first entry before subtraction have a 1 bill in its composition.
in other words the system should track money not as just a sum but as bills and coins as well, when a customer requests to buy an item and enters the money that he has, i need to make sure that change can be returned.
For example, if we have a 10 Dollars bill, and someone is asking for 5 Dollars in return, you cannot return the money, but if you have 10 one dollar bills you can return five one dollar bills.