Question
Refer to the C++ Programming Write a program to convert money counted in pennies to its equivalent dollars: quarters: dimes: nickels: pennies form. Need five
Refer to the C++ Programming
Write a program to convert money counted in pennies to its equivalent
dollars: quarters: dimes: nickels: pennies form.
Need five memory locations for the computation
pennies,
nickels,
dimes,
quarters,
dollars
select the data type as int because the numbers are whole numbers
// Display a message for money count in pennies and read it in.
// Convert to dollars: quarters: pennies form.
// Find number of dollars
// Find remaining pennies
// Find number of quarters in the remaining pennies
// Find remaining pennies
// Find number of dimes in the remaining pennies
// Find remaining pennies
// Find number of nickels in the remaining pennies
// Find remaining pennies left at end
// Display in dollars: quarters: pennies form.
printf (%d: %d: %d: %d: %d , dollars, quarters, dimes, nickels, pennies);
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started