Question: Using C++ programming language use cin,cout,if ,else statement only. 3. Write a program that converts dollars into coins. a. Request a dollar amount as an
Using C++ programming language use cin,cout,if ,else statement only.
3. Write a program that converts dollars into coins. a. Request a dollar amount as an integer (i.e. $5.34 is input as 534). b. Use a constant variable for each coin to declare the fixed value as an integer. For example const int NICKEL = 5. c. Use division and the mod function to calculate the number of each coin. Output Example 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
