1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C program to make dollar amount to change?

Discussion in 'C' started by klletner, Jul 8, 2009.

  1. klletner

    klletner New Member

    Joined:
    Jul 8, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    I have a homework assignment to turn a dollar amount into the amount of quarters, dimes, nickels and pennies. I am having trouble getting it to read all the way to pennies.
     
  2. hotnspicy

    hotnspicy New Member

    Joined:
    Jul 6, 2009
    Messages:
    45
    Likes Received:
    5
    Trophy Points:
    0
    hehehe, you posted it here ? i know we got an assignemnt for it.
     
  3. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    Wow, People doing their assignment here :lol:
     
  4. klletner

    klletner New Member

    Joined:
    Jul 8, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    I finally got it to work. I couldn't figure out how get the remainder to be divided by the next coin amount and then have a remainder left for the pennies. I am new to this stuff and I'm trying to take it online which is basically just teaching yourself, but any pointers anyone has is gladly appreciated.:worried:
     
  5. mayjune

    mayjune New Member

    Joined:
    Jun 14, 2009
    Messages:
    817
    Likes Received:
    33
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Pune,Delhi
    didn't get your question?
     
  6. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
    You are not alone.
     
  7. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,046
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    Me 2 with you Shabbir ;)
     

Share This Page