Calculates and displays the number of quarters dimes


Need guidance on a C++ program that:

1. Asks the user to input a number of cents

2. Calculates and displays the number of quarters, dimes, nickels, and pennies that should be used to reach the value. EX: 67 cents would be 2 quarters, 1 dime, 1 nickel, and 2 pennies

3. Calculates and display the ?total? number of coins to be given back, ie 6 coins for above 

Hint: The simplest way to solve this involves using the division (/) operator and modulus (%) operator. It helps to use the int data type!

Solution Preview :

Prepared by a verified Expert
Business Management: Calculates and displays the number of quarters dimes
Reference No:- TGS02908132

Now Priced at $10 (50% Discount)

Recommended (90%)

Rated (4.3/5)