I'm doing a school project and i need to know how to Convert user-entered dollars into $100 bill and $1000 bill and dollars remaining. let's say your in the store and you want to pay your items with as high bill as possible so let's say you have to pay $9853. How do i print how many $1bills, $5 bills, $10 bills, $50 bills, $100 bills and 1000$ bills that is?
PAY WITH AS HIGH BILL AS YOU CAN. NO CHANGE.
$9853 would be: 9x $1000 bills, 8x $100 bills, 1x $50 bill and 3x $1 bills.
if anyone has an answer to this please answer, any answer is very helpful. Thanks.