Hi together,
please could someone explaine the requirement of this task? Especially the last Argument (cid) of the given code.
English is not my native language and I am not an US citizen, so I dont realy understand the information in the task and this money system with Penny, Dimme, Nickel.
You buy something that costs 19.5 dollars.
You pay with a 20 dollar bill.
The vendor needs to return 0.5 dollars, and he has:
1.01 dollars in pennies (a penny is 0.01 dollars so that’s 101 pennies),
2.05 dollars in nickel coins (a nickel is 0.05 dollars so that’s 41 nickels)
and so on
He could give you 50 pennies, for example. He could also give you 2 quarters. Maybe he only has two nickels in his drawer (2 * 0.05 = 0.10 dollars), in which case your function would return “insufficient funds”.
This is one of the tougher challenges, take your time to think it through.