Thread: Help me!!!

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    20

    Question Help me!!!

    Help me source .
    Input: give money (<10). you have : 5 , 2 , 1 , 0.5
    output: minimized money.
    ex. input 10
    output: 5+5
    ex: input 5
    ouput: 5
    ex: input 8
    output: 5+2+1
    ... thanks

  2. #2
    Registered User
    Join Date
    Sep 2009
    Posts
    7
    Quote Originally Posted by akaile View Post
    Help me source .
    Input: give money (<10). you have : 5 , 2 , 1 , 0.5
    output: minimized money.
    ex. input 10
    output: 5+5
    ex: input 5
    ouput: 5
    ex: input 8
    output: 5+2+1
    ... thanks
    Homework due in for Monday morning? Late and asking a forum to write it all for you, how amusing.

    What code do you have so far? We need specific problems.

  3. #3
    Registered User
    Join Date
    Sep 2009
    Posts
    20
    you don't help me.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Read about the homework policy.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User
    Join Date
    Sep 2009
    Posts
    63
    Give us some sort of problem with the code you've already written, and then we can help you.

  6. #6
    Registered User
    Join Date
    Sep 2009
    Posts
    20
    everybody can code help me!!! use C++. thanks

  7. #7
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Quote Originally Posted by akaile View Post
    everybody can code help me!!! use C++. thanks
    That's not how it works. This is your homework. You need to make an attempt to write the code yourself. If you get stuck somewhere, post the code and we'll try to help clarify things for you.

  8. #8
    Registered User
    Join Date
    Sep 2009
    Posts
    20
    Okie!!! Thanks
    Question: Given an amount of money (less than 10,000VND), compute the number coin of 500VND, 1,000VND, 2,000VND, 5,000VND needed. Remember that the number of coin is minimized.
    I hope everybody will help me sourch code

  9. #9
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Several other members of this community that told you that you need to show some effort so that we can help you along. It is clearly stated in the homework policy that we do not do your homework for you.

    This is your last warning. If you persist in asking for your homework answer to be handed to you, I shall close this thread.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed