Computing.Net > Forums > Programming > C++ Program

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C++ Program

Reply to Message Icon

Name: Hoss Taheri
Date: October 5, 2004 at 01:55:50 Pacific
OS: Win2K
CPU/Ram: 2Gigs/512MB
Comment:

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 dimes

Thanks much!";



Sponsored Link
Ads by Google

Response Number 1
Name: Infinite Recursion
Date: October 5, 2004 at 06:47:22 Pacific
Reply:

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


0

Response Number 2
Name: Tugg
Date: October 5, 2004 at 14:21:39 Pacific
Reply:

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~


0

Response Number 3
Name: Infinite Recursion
Date: October 6, 2004 at 10:55:54 Pacific
Reply:

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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


How to return C++ extern.... Another C++ error



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C++ Program

c++ programming for novell www.computing.net/answers/programming/c-programming-for-novell/2525.html

Bike Trader C program www.computing.net/answers/programming/bike-trader-c-program/6557.html

C++ Programming Website www.computing.net/answers/programming/c-programming-website/4752.html