Re: Fwd: Programming Issues

Discussion in 'Python' started by Dennis Lee Bieber, Sep 19, 2012.

  1. On Tue, 18 Sep 2012 20:47:45 -0400, Nathan Spicer <>
    declaimed the following in gmane.comp.python.general:

    > ---------- Forwarded message ----------
    > From: Nathan Spicer <>
    > Date: Tue, Sep 18, 2012 at 8:32 PM
    > Subject: Programming Issues
    > To:
    >

    Asking the /webmaster/ at Python.org?
    >
    > 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.
    >

    What were the prerequisites of the class? Everything you need should
    have been covered before the assignment was even given. If it wasn't,
    you should be asking the instructor.

    >
    > 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.
    >


    Sounds like a typical second or third assignment in programming;
    there must be hundreds of examples out there.

    http://en.wikipedia.org/wiki/Change-making_problem

    All it needs are:

    a loop structure around the input
    conversion of text input to numeric
    a conditional test
    modulo arithmetic
    an output statement

    So what are you having problems with?
    --
    Wulfraed Dennis Lee Bieber AF6VN
    HTTP://wlfraed.home.netcom.com/
    Dennis Lee Bieber, 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,228
    abida
    Apr 17, 2011
  2. Tonix
    Replies:
    0
    Views:
    417
    Tonix
    Aug 24, 2004
  3. jacov

    [Fwd: Indentation]

    jacov, Jul 22, 2004, in forum: Java
    Replies:
    0
    Views:
    328
    jacov
    Jul 22, 2004
  4. Davide Carboni
    Replies:
    0
    Views:
    357
    Davide Carboni
    Dec 18, 2003
  5. Dave Angel

    Re: Fwd: Programming Issues

    Dave Angel, Sep 19, 2012, in forum: Python
    Replies:
    0
    Views:
    164
    Dave Angel
    Sep 19, 2012
Loading...

Share This Page