Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'output': 0.04; 'finished.': 0.07; 'great.': 0.07; 'returned.': 0.07; 'compute': 0.09; 'modulo': 0.09; 'python.org?': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'sep': 0.09; 'value.': 0.15; 'conditional': 0.16; 'instructor.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Programming': 0.16; 'with?': 0.16; 'typical': 0.17; 'examples': 0.18; 'input': 0.18; 'are:': 0.20; 'amounts': 0.22; 'assignment': 0.22; 'programming': 0.23; 'statement': 0.23; "i've": 0.23; 'second': 0.24; '----------': 0.26; 'url:wiki': 0.26; 'order.': 0.27; 'possible,': 0.27; 'there.': 0.28; 'correct': 0.28; 'header:X-Complaints-To:1': 0.28; 'arithmetic': 0.29; 'url:wikipedia': 0.29; 'date:': 0.29; 'covered': 0.29; 'class': 0.29; 'this.': 0.29; "i'm": 0.29; 'asking': 0.32; 'structure': 0.32; 'certain': 0.33; 'url:home': 0.33; 'to:addr :python-list': 0.33; 'text': 0.34; 'project': 0.34; 'third': 0.34; 'programming.': 0.35; 'continue': 0.35; 'there': 0.35; 'received:org': 0.36; 'subject:': 0.36; 'url:org': 0.36; 'totally': 0.36; 'email addr:python.org': 0.36; 'test': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'problems': 0.36; 'display': 0.36; 'subject:: ': 0.38; 'from:': 0.38; 'forwarded': 0.38; 'url:en': 0.38; 'to:addr:python.org': 0.39; 'hello,': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'your': 0.60; 'different': 0.63; 'taking': 0.65; 'email name:webmaster': 0.65; 'due': 0.66; 'below.': 0.68; 'stated': 0.69; 'sounds': 0.71; 'inform': 0.78; 'nathan': 0.84; 'dennis': 0.91; 'mistake': 0.91; 'received:108': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Fwd: Programming Issues Date: Tue, 18 Sep 2012 22:05:33 -0400 Organization: > Bestiaria Support Staff < References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-79-219-94.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 52 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348020348 news.xs4all.nl 6908 [2001:888:2000:d::a6]:39914 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29461 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: webmaster@python.org > 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 wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/