Ok, really really new at programming, so I'm trying to get a head start for a C++ class I'll be taking in the June. I have some exercises that I'm trying to go threw to practice. Once I figure out the program I want to try an enhance it.

The activity is:

Take an undetermined amount of pennies and have the program display how many pennies, nickels, dimes, quarters, 5, 10, 20, 100 dollar bills you will receive. The math is killing me even though I know it should be simple. I did some research and it looks like I should be using modular arithmetic (not familiar with that). Can anyone help me? I want to figure this out, so I can enhance it. I want to have it display how much Euro it would be as well, not sure how to do that yet.

have you already started with the prog? If so post what you have and we will try to help you to improve your prog.

the prog should (just a very rough outline)

- read dollar amount to be split

- subtract largest possible bill/coin and count how often you do this for each (do it till you reach zero)

- display result

- do the conversion to Euro (?? when and which value will you convert to euro)

if there are no special limitations to the coins/bills there should be no complex arithmetic involved.

leflon