Write a function accepts the cost of the purchase


Discuss the below:

Q: Write a function that accepts the cost of the purchase and the amount of the payment as functon parameters, and the prints on the cashiers console how much change to give (how many bills and coin). Consider denominations of 1cent, 5 cents, 10 cents, 25 cents, $1, $5, and $10.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a function accepts the cost of the purchase
Reference No:- TGS01937519

Now Priced at $20 (50% Discount)

Recommended (97%)

Rated (4.9/5)