Thread: program

  1. #1
    Registered User
    Join Date
    Mar 2005


    I have to write a program that ask the user to enter the customer bill and amount paid. Then return the amount of 10 dollar bills, 5 dollar bills, 1 dollar bills and quarters, dimes, nickels, and pennies. I was wondering does any body have a suggestions about how i could go about doing that. send me an email

  2. #2
    Join Date
    Aug 2002
    Tucson, Arizona
    Welcome to the boards. If you haven't already done so then please take some time to familiarise yourself with the faq:

    Make sure you have a look at the the posting guidelines:
    Following the rules will ensure you get a prompt answer to your question.

    Remember, too, that the board has a search facility, a link is at the top of your screen:
    It will often get you a quicker answer to your questions than waiting for a response to one you have posted.

    If you have any questions about this you may ask or you can contact one of our forum leaders:

  3. #3
    Registered User
    Join Date
    Mar 2002
    Welcome to the boards.

    I'd suggest one of the following:

    1) use paper and pencil or your favorite word processor to generate an algorithm about how you would do this without using a computer first. Then change the syntax of your written protocol using your nativelanguage into C/C++ syntax. When/if you run into a specific problem with the theory, the protocol, the code, or an error message, post appropriate information.

    2) search the board(s). This problem, and several similar ones, are the subject of relatively frequent posts as they serve as a convenient problem to help students learn about many of the techniques used in writing code using a real world activity that every one has had experience with and without needing to do a lot of high falutin math or an esoteric algorithm to solve the problem from a logistic or coding point of view.

    But I warn you that option #2 may take as much energy as writing the project yourself, and I gaurantee you the learning process isn't anywhere near as effective or as rewarding.
    You're only born perfect.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 01:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 01:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM