# C++ code

Page 1 of 1

## 1 Replies - 1916 Views - Last Post: 10 October 2009 - 07:08 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=131120&amp;s=3aeb1c982f70600592de127840a9e028&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 vinodjames

• New D.I.C Head

Reputation: 0
• Posts: 1
• Joined: 09-October 09

# C++ code

Posted 10 October 2009 - 07:04 AM

Write the program that tells what coins to give out for any
amount of change from one cent to 99 cents. For example, if
the amount is 86 cents, the output would be something like
the following

86 cents can be given as

3 quarter(s) 1 dime(s) and 1 penny

Use the coin denomination of 25 cents( quarters), 10
cents(dimes), and 1 cent(pennies). Do not use nickel( 5 cents) or half dollar ( 50 cents ) coins.

Is This A Good Question/Topic? 0

## Replies To: C++ code

### #2 moopet

• binary decision maker

Reputation: 345
• Posts: 1,190
• Joined: 02-April 09

## Re: C++ code

Posted 10 October 2009 - 07:08 AM

vinodjames, on 10 Oct, 2009 - 01:04 PM, said:

Write the program that tells what coins to give out for any
amount of change from one cent to 99 cents. For example, if
the amount is 86 cents, the output would be something like
the following

86 cents can be given as

3 quarter(s) 1 dime(s) and 1 penny

Use the coin denomination of 25 cents( quarters), 10
cents(dimes), and 1 cent(pennies). Do not use nickel( 5 cents) or half dollar ( 50 cents ) coins.

This was in bold at the top of the page when you were typing away:

Quote

1. We will not do your homework for you! Do not ask us to give you code!
2. Use proper English. Correct grammar and spelling is required.
3. No Programming Questions in Introduce Yourself or the Caffeine Lounge
4. Use BBCode when posting. For example:
```Paste Your Code Here
```

5. Give your topic a descriptive title, NOT "Help" or "Plz Help Me" or "I'm a noob"
6. Describe any errors you are encountering. Help us help you!
7. Search for your problem before posting a new topic (Example: c++ mortgage):

Please take note, then try again. Thank-you.