Write C++ code to simulate a coin dispenser.
The user is prompted to enter a number of cents,
which is assumed to be strictly larger than zero
and strictly less than one hundred.
The program writes the number of quarters, dimes, nickels,
and pennies, equal to the total amount of cents entered.
The number of coins should be minimal, writing only pennies
if the number of cents is five or higher is not correct.
A session with the program could go as follows:
$ quiz1
Welcome to our coin dispenser!
Give a number of cents : 63
-> dispensing 63 cents as
2 quarters, 1 dimes, 0 nickles, 3 pennies = $63
$
Write C++ code for the program below:
Answer:
quiz1.cpp