Re: Fwd: Programming Issues

Discussion in 'Python' started by Dave Angel, Sep 19, 2012.

  1. Dave Angel

    Dave Angel Guest

    On 09/18/2012 08:47 PM, Nathan Spicer wrote:
    > ---------- Forwarded message ----------
    > From: Nathan Spicer <>
    > Date: Tue, Sep 18, 2012 at 8:32 PM
    > Subject: Programming Issues
    > To:
    >
    >
    > Hello,
    >
    > My name is Nathan Spicer. I'm taking a computer programming class using
    > python. I have a project that's due in a week and I'm not certain how to d
    > this. I'm totally new to this form of programming. I've stated the scope of
    > the project below. Any form of help would be great.
    >
    >
    > Ask the user for the amount of change expressed in cents. Your program must
    > compute and display the number of half-dollars, quarters, dimes, nickels,
    > and pennies to be returned.
    > Return as many half-dollars as possible, then quarters, dimes, nickels, and
    > pennies, in that order.
    > Your program must allow the user to continue entering different amounts of
    > change until they enter 0 to indicate they are finished. If the user enters
    > a negative number, inform them of their mistake and ask them to enter a
    > correct value.
    >
    > -Code that is formatted to be easy to read
    >
    > Thank you for your time,
    > Nathan Spicer
    >
    >
    >


    What version of Python are you learning?

    And you're stuck where? There are lots of ways to ask a user a
    question, ranging from raw_input() to presenting a wxPython dialog box.
    The choice depends on what version you're using, and what GUI library if
    any you have available. Then you have to validate the string you get,
    and then do some computations, displaying the result. The whole thing
    needs to be inside a loop. Show us the code you've got so far, and
    indicate where the exception is happening, with full traceback.


    --

    DaveA
     
    Dave Angel, Sep 19, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike Treseler

    [Fwd: Vhdl dynamic generation]

    Mike Treseler, Jun 25, 2003, in forum: VHDL
    Replies:
    2
    Views:
    2,275
    abida
    Apr 17, 2011
  2. Tonix
    Replies:
    0
    Views:
    435
    Tonix
    Aug 24, 2004
  3. jacov

    [Fwd: Indentation]

    jacov, Jul 22, 2004, in forum: Java
    Replies:
    0
    Views:
    350
    jacov
    Jul 22, 2004
  4. Davide Carboni
    Replies:
    0
    Views:
    382
    Davide Carboni
    Dec 18, 2003
  5. Dennis Lee Bieber

    Re: Fwd: Programming Issues

    Dennis Lee Bieber, Sep 19, 2012, in forum: Python
    Replies:
    0
    Views:
    191
    Dennis Lee Bieber
    Sep 19, 2012
Loading...

Share This Page