Question: complete the following program in c++ to convert money counted in pennies to its equivalent dollars: quarters: dimes: nickels: pennies form. problem statement this program
complete the following program in c++ to convert money counted in pennies to its equivalent dollars: quarters: dimes: nickels: pennies form. problem statement this program takes a value from the user ( amount of money ) and then converts it into quarters = 25 cents, dimes = 10 cents, nickels = 5 cents, and pennies = 1 cent. input/output description need five memory locations for the computation pennies, nickels, dimes, quarters, dollars select the data type as int because the numbers are whole numbers algorithm development the program performs the following steps as listed below: 1. // ask the customer to enter the dollar bill. 2. // display a message for money count in pennies and read it in. 3. .// convert to dollars: quarters: pennies form. // find number of dollars // find remaining pennies // find the number of quarters in the remaining pennies // find remaining pennies // find the number of dimes in the remaining pennies // find remaining pennies // find the number of nickels in the remaining pennies // find remaining pennies left at the end 3. // display the result in dollars: quarters: pennies form.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
