On 22/02/12 23:45, William Stewart wrote:
so I copied your format except I changed shape 3 to circle, Did I do the
circle part right?
Nearly.
The circumference is wrong, you need to calculate it not read it from
the user.
and would this be considered separate functions?
No, but your seco
width+width+width+width = 4*width
RECTANGLES:
area = width*height
perimeter = width+height+width+height = 2*(width+height)
CIRCLES:
area = pi*radius**2
circumference = 2*pi*radius
--- On Tue, 2/21/12, Alan Gauld wrote:
From: Alan Gauld
Subject: Re: [Tutor] how
On 2/21/2012 6:51 PM, William Stewart wrote:
hello
I need to rewrite area.py program so that it has separate functions for the
perimeter and area of a square, a rectangle, and a circle (3.14 * radius**2).
"Need to"" - why? Is this a homework assignment?
I am horrible at ma
On 21/02/12 23:51, William Stewart wrote:
I need to rewrite area.py program so that it has separate functions for
the perimeter and area of a square, a rectangle, and a circle (3.14 *
radius**2).
You will find something similar in my tutorial in the topic Branching.
Look under the heading "Pyt
On 2/21/2012 6:51 PM, William Stewart wrote:
hello
I need to rewrite area.py program so that it has separate functions
for the perimeter and area of a square, a rectangle, and a circle
(3.14 * radius**2).
"Need to"" - why? Is this a homework assignment?
I am horrible at math and I cannot ev
William Stewart wrote:
hello
I need to rewrite area.py program so that it has separate functions for the perimeter and area of a square, a rectangle, and a circle (3.14 * radius**2).
I am horrible at math and I cannot even figure out what I need to do for this
Any help would be appreciated
Ha
On 02/21/2012 06:51 PM, William Stewart wrote:
hello
I need to rewrite area.py program so that it has separate functions for the
perimeter and area of a square, a rectangle, and a circle (3.14 * radius**2).
I am horrible at math and I cannot even figure out what I need to do for this
Any help wo
hello
I need to rewrite area.py program so that it has separate functions for the
perimeter and area of a square, a rectangle, and a circle (3.14 * radius**2).
I am horrible at math and I cannot even figure out what I need to do for this
Any help would be appreciated
All I have is the menu which