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:
    44
    Likes Received:
    4
    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,043
    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:
    814
    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,375
    Likes Received:
    388
    Trophy Points:
    83
    You are not alone.
     
  7. naimish

    naimish New Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice