Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
33% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
0 Endorsements
Ranked #3K
~12.3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for jaison2

well basically i have to draw a stick figure for which is my first question... i cant figure out how to draw a horizontal line and also a line at a angle for the legs... here is the code for the first one def drawStickFigure(): from graphics import * win …

Member Avatar for bumsfeld
0
10K
Member Avatar for gangster88

how could i double a number when clicked on in the graphics window?... this is for graphics.py and a line separating the two sides in the graphics window and on each click on either side it must go up by 2 until 12? i can only think of using a …

Member Avatar for jaison2
0
150
Member Avatar for jaison2

I need help with the function but i have no clue how to?.. the function should generate a random number between 1 and 100 and then allow the user to guess the number. After each guess it should display if the guess is too high or low and if they …

Member Avatar for snippsat
0
203
Member Avatar for gangster88

I need the function to display a set of eyes, so if i call the function Eyes(3,4) a graphics window opens with exact dimesions for 4 coloumns and 2 rows of eyes... [code] from graphics import * def drawCircle(win, centre, radius, colour): circle = Circle(centre, radius) circle.setFill(colour) circle.setWidth(2) circle.draw(win) def …

Member Avatar for battlecrab
0
111
Member Avatar for jaison2

The function has to show the population for year 1, 2 and so on until the population reaches 1 million. The population increases by 8% every year? [code] def population(): current=input("please enter the current population of the city: ") increase=current/100*8+current year 1=increase while increase>1000000? [/code]

Member Avatar for leegeorg07
0
107
Member Avatar for jaison2

I want to be able to draw an eye for a colour inputted by the user. If the user enters the colour green,brown or blue then the eye should be drwan orelse an error message saying "not a valid colour" should be outputted [code] from graphics import * def drawCircle(win, …

Member Avatar for Kobrakai
0
218
Member Avatar for jaison2

The function should ask the user for the price of the delivery and if the price is less than £10 then it should print a statement saying "the total price including the delivery charge is" + £1.50 or it should just output the normal price if it is more than …

Member Avatar for snippsat
0
216
Member Avatar for jaison2

This is graphics.py from the zelle book. The following code seemed to be working but when i added the parameters to the function def drawEye(win, centre, radius): i get an error when i try to execute it Traceback (most recent call last): File "C:\Documents and Settings\Compaq_Owner\Desktop\t.py", line 22, in <module> …

Member Avatar for vegaseat
0
301
Member Avatar for gangster88

I have to get pthagaros to get the distance between 2 points. so the function distanceBetweenPoints(Point(1, 2), Point(4, 6)) should result in 5.0. the parameters are supposed to be P1, P2, which i think i have done?. The get an error when i try to execute this?.. help please def …

Member Avatar for gangster88
0
171
Member Avatar for jaison2

hi basically i have to write a function which draws 4 rectangles next to eachother(consisting of spcaes then hashes then spaces then finally hashes, all of the same height). the rectangles final The rectangles common height,and the width of the four rectangles should be parameters, e.g.(3, 0, 5, 4, 2) …

Member Avatar for jaison2
0
133
Member Avatar for jaison2

hi, i want to be able to draw two eyes with are exactly the same in radius and colour etc next to eachother. So when i open the window the pair of eyes are there in the centre. I have managed to get one eye but i dnt have a …

Member Avatar for vegaseat
0
189
Member Avatar for jaison2

I need to write a function which has 2 parameters height and width and outputs a rectangle of "#" ssmbol of the appropriate dimensions. so for 93, 4) should result in the output #### #### #### but i dnt unserstand how to use the loop in this. I have only …

Member Avatar for vegaseat
0
94
Member Avatar for jaison2

hi, i want to be able to draw two eyes with are exactly the same in radius and colour etc next to eachother. So when i open the window the pair of eyes are there in the centre. I have managed to get one eye but i dnt have a …

Member Avatar for jaison2
0
127