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
This question was asked on Jan 19, 2013 and answered on Jan 20, 2013.
Recently Asked Questions
- Looking for CHM 111 Extra Credit. There is only 12 questions listed. There should be 30.
- Delicious Snacks, Inc. is considering adding a new line of candies to its current product line.. The new line will require an increase in the working capital
- Some individuals support the role of public health departments in providing preventive and treatment services as necessary to fill gaps in the system for the