Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Please show me to Write a c++ program that accepts as input a number of cents(positive integer)and then produces as output the number of dollars, quarters, dimes, nickels, and pennies that make up the amount of the money using the least possible of coins. The program is required to accomodate an arbitrary number of input values. use the c++ "cin" method for obtaining the input values. The program should terminate when "cin" returns an end of file. The program must not output a particular coin if there are zero of thar quantity. Finally, the program must distinguish between a single coin and multiple coins by pluralizing the text(3 dimes, 1 dime). Example:
The minimum number of coins for 21 cents is:
2 dimes
1 penny
or: The minimum number of coins for 195 cents is:
1 Dollar
3 quarters
2 dimesThanks much!";

If you keep this up you will fail. Attempt your homework -yourself- first. Then ask specific questions.
Look here for the answer to your assignment:
http://www.computing.net/programming/wwwboard/forum/7407.html

The ominous post #7407. I already thought this vital piece of information was lost to all future generations. Glad to see i was wrong :D
Oh and Hoss. Dont be offended with what you might read. IR is only trying to help you out the best possible way. And that is by reading that post and than following what IR just said. It will help you more than you might believe in the long run (we are all eager to help, but not to do other peoples works entirely)
Cheers
~TuGG~

Definitely no offense was intended... I, as well as many others, stand by eager and willing to answer specific questions regarding your assignment... -after- you show us effort on your part.

![]() |
How to return C++ extern....
|
Another C++ error
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |