make a program that breaks a given number of cents down into units of currency. theprogram should first ask the user to enter the total number of cents. It then displays the amount broken down into the individual units of currency (dollars, quarters, nickels, dimes, pennies). An example is shown below, where the user entered 1258 cents. For simplicity, we will use the plural of all currencies, so "1 nickels" is acceptable.
total cents: 1258
corresponds to 12 dollars, 2 quarters, 0 dimes, 1 nickels, and 3 pennies
Dear PFA attached... View the full answer