The Change Machine Project
This project is from page 77 of Jeff Kent's C++ book

Write a program that will ask the user to input the number of pennies. 
(You may assume the user will input a positive whole number.) 
You will output the number of dollars, quarters, dimes, nickels, and pennies
that user's number of pennies equivalent to.  Your interface with user will be followed.

Enter number of pennies to make change for: 387

387 pennies will be changed to

Dollars Quarters Dimes Nickels Pennies
3 3 1 0 2

 

Click here to see what's wrong.