Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #29459

Re: Fwd: Programming Issues

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!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 <d@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'exception': 0.03; 'finished.': 0.07; 'great.': 0.07; 'returned.': 0.07; 'python': 0.09; 'compute': 0.09; 'formatted': 0.09; 'loop.': 0.09; 'sep': 0.09; 'cc:addr:python-list': 0.10; 'gui': 0.11; 'library': 0.15; 'result.': 0.15; 'value.': 0.15; 'subject:Programming': 0.16; 'traceback.': 0.16; 'using,': 0.16; 'where?': 0.16; 'wxpython': 0.16; 'string': 0.17; 'wrote:': 0.17; 'amounts': 0.22; 'cc:2**0': 0.23; 'programming': 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '----------': 0.26; 'order.': 0.27; 'possible,': 0.27; 'correct': 0.28; 'dialog': 0.29; 'far,': 0.29; 'date:': 0.29; 'class': 0.29; 'this.': 0.29; "i'm": 0.29; 'code': 0.31; 'certain': 0.33; 'version': 0.34; 'project': 0.34; 'programming.': 0.35; 'pm,': 0.35; 'continue': 0.35; 'there': 0.35; 'subject:': 0.36; 'depends': 0.36; 'totally': 0.36; 'email addr:python.org': 0.36; 'thank': 0.36; 'display': 0.36; 'available.': 0.37; 'subject:: ': 0.38; 'from:': 0.38; 'some': 0.38; 'forwarded': 0.38; 'received:192': 0.39; 'hello,': 0.39; 'where': 0.40; 'received:192.168': 0.40; 'help': 0.40; 'your': 0.60; 'easy': 0.60; "you've": 0.61; 'time,': 0.62; 'different': 0.63; 'show': 0.63; 'taking': 0.65; 'box.': 0.65; 'email name:webmaster': 0.65; 'presenting': 0.65; 'stuck': 0.65; 'validate': 0.65; 'due': 0.66; 'header:Reply-To:1': 0.68; 'below.': 0.68; 'stated': 0.69; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'inform': 0.78; 'nathan': 0.84; 'mistake': 0.91; 'ranging': 0.91
Date Tue, 18 Sep 2012 21:20:44 -0400
From Dave Angel <d@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0
MIME-Version 1.0
To Nathan Spicer <njspicy@gmail.com>
Subject Re: Fwd: Programming Issues
References <CAO1VxVw0xg9Y=5LV4_unpgFzPoSnmVy7-abi4e1-cUxrtvx0Mw@mail.gmail.com> <CAO1VxVx-GWFBL35T5LsnxYxhc0UeOKzndMZN3gsLzusanDsuFQ@mail.gmail.com>
In-Reply-To <CAO1VxVx-GWFBL35T5LsnxYxhc0UeOKzndMZN3gsLzusanDsuFQ@mail.gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:Y0RhBsGCpTkErTD5nKRF20zQ0ard9nTDeo9hEtUJTKI 6d/LBflFWzzJMTqlzdkyhZ3MYQgAEYExt0f7Gn8kcA12tmhl1+ eTEMYzdiiM7TDKSCIPjgrEw7gVb4RWsWCWT7wUPVDEqOUmTlDb 0nXZAotRcmKEEzJiPVfxS177I4Wia7apsGuXHguyZ5zLsqC9IY xJ2//f41efVrYFtLTYsa42tcAZDZEdh6yRLEdjtO4+6OGidyDA uaPxbi6Yhd12mI/Dp3YCcpZ1n+0lWKjtztEtzD+u/jnCdXJYNc pqgBDz6V+iraBllB5rxZXhU8qXjlpilCI8K04Xuq5Jumd1NYQ= =
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To d@davea.name
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.897.1348017684.27098.python-list@python.org> (permalink)
Lines 49
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1348017685 news.xs4all.nl 6872 [2001:888:2000:d::a6]:59864
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:29459

Show key headers only | View raw


On 09/18/2012 08:47 PM, Nathan Spicer wrote:
> ---------- Forwarded message ----------
> From: Nathan Spicer <njspicy@gmail.com>
> Date: Tue, Sep 18, 2012 at 8:32 PM
> Subject: Programming Issues
> To: webmaster@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.
>
>
> 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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Fwd: Programming Issues Dave Angel <d@davea.name> - 2012-09-18 21:20 -0400

csiph-web