|
|
Cost of purchase: $8.07
Cash given by customer: $10.00
Change: $1.93
Coins given:
1.00 dollar
3.00 quarters
1.00 dime
1.00 nickel
3.00 pennies
Cost of purchase: $8.06
Cash given by customer: $10.00
Change: $1.94
Coins given:
1.00 dollar
3.00 quarters
1.00 dime
1.00 nickel
3.00 pennies
Cost of purchase: $15.63
Cash given by customer: $15.63
Change: $0.00
No change required
Cost of purchase: $6.25
Cash given by customer: $5.25
Change: $-1.00
Customer owes: $1.00
Cost of purchase: $9.01
Cash given by customer: $10.00
Change: $0.99
Coins given:
3.00 quarters
2.00 dimes
3.00 pennies
Cost of purchase: $8.99
Cash given by customer: $10.00
Change: $1.01
Coins given:
1.00 dollar
1.00 penny
Cost of purchase: $13.34
Cash given by customer: $20.00
Change: $6.66
Coins given:
6.00 dollars
2.00 quarters
1.00 dime
1.00 nickel
Cost of purchase: $1.95
Cash given by customer: $2.00
Change: $0.05
Coins given:
4.00 pennies
Cost of purchase: $3.75
Cash given by customer: $5.00
Change: $1.25
Coins given:
1.00 dollar
1.00 quarter
Press any key to continue . . . |
float onedollar = 1.00; do int onedollar = 100; |
|