Write ChangeMaker. Read a price and the amount paid (both with cents). Print the change and how to give it with the fewest notes/coins of 10, 5, 1, 0.25, 0.10, 0.05 and 0.01:
Change: 13.66
10: 1 5: 0 1: 3
0.25: 2 0.10: 1 0.05: 1 0.01: 1
(for 6.34 20). Work in whole cents (int) with / and %. Why is (paid - price) * 100 cast with Math.round and not simply with (int)?