Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Fwd: Programming Issues

Reply
Thread Tools

Re: Fwd: Programming Issues

 
 
Dave Angel
Guest
Posts: n/a
 
      09-19-2012
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP Pro clean install issues, SP2 issues too... Howie Computer Support 9 07-12-2005 04:47 PM
Windows XP Pro clean install issues, SP2 issues too... Howie Computer Support 0 07-06-2005 07:12 PM
Re: Windows XP Pro clean install issues, SP2 issues too... pcbutts1 Computer Support 0 07-06-2005 04:58 PM
Re: Windows XP Pro clean install issues, SP2 issues too... pcbutts1 Computer Support 0 07-06-2005 04:52 PM
SNMP Issues in Cisco Routers; Vulnerability Issues in TCP =?iso-8859-1?Q?Frisbee=AE?= MCSE 0 04-21-2004 03:00 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57