(C++)
John Doe is a teller at the Wei’s Bank. However, he is rather poor in Math, and he often gave the wrong change to the customers.
Being a good friend, you are trying to help him by writing a program that would determine the minimum of $100 bills, $50 bills, $20 bills, $10 bills, $5 bills, and $1 bills that make the correct change. You can assume that this will not be cents in the amount given.
The output of your program must look exactly like the shown output below.
N.B. Remember the % ( modulus) operator.
Example 1:
Enter Amount: $6
$100 Bill(s): 0
$50 Bill(s): 0
$20 Bill(s): 0
$10 Bill(s): 0
$5 Bill(s): 1
$1 Bill(s): 1
Example 2:
Enter Amount: $1266
$100 Bill(s): 12
$50 Bill(s): 1
$20 Bill(s): 0
$10 Bill(s): 1
$5 Bill(s): 1
$1 Bill(s): 1