Question: C++ Write a program that converts dollars into coins. Request a dollar amount as an integer (5.34 is input as 534). Use a constant variable
Write a program that converts dollars into coins. Request a dollar amount as an integer (5.34 is input as 534). Use a constant variable for each coin to declare the fixed value as an integer For example const int NICKEL 5. Division and the mod function should be used for the conversion. The program should look like this (input in italics): Change Calculator Enter dollar amount: $534 Your change is: 21 Quarters 0 Dimes 1 Nickels 4 Pennies
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
