This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-01-22 23:51:14

NancyA
New Scratcher
Registered: 2011-01-22
Posts: 4

Practice scratch help!

Hello all,

I'm doing this scratch practice:

1. Prompt the user for the number of sides and store this value (numSides)
2. If the number of sides is less than three
a. Output “Sorry, a polygon needs at least three 3 sides!”
Otherwise
b. Compute and store the length of any side of the polygon as
sideLength=(100*360*pi)/(numSides*180)
where you can approximate pi as 3.14159 for this lab

I got all of the above part right but now I'm so stuck on how to do this:

c. Move to the (x,y) coordinate of (-sideLength/2,100)
d. Point to the right (90 degrees)
e. Drop the pen
f. Repeat the following for each side of the polygon
-Move sideLength steps forward
-Turn clockwise by 360/numSides
g. Lift the pen

This practice stuff looks important so any help on it will be appreciated please!

Thanks a lot  smile

Offline

 

#2 2011-01-23 10:07:07

NancyA
New Scratcher
Registered: 2011-01-22
Posts: 4

Re: Practice scratch help!

So no help so far  sad

Offline

 

#3 2011-01-23 10:33:35

slitherax
Scratcher
Registered: 2011-01-09
Posts: 24

Re: Practice scratch help!

<pick random(  )to( nope, not yet!  smile

Offline

 

#4 2011-01-23 10:55:52

slitherax
Scratcher
Registered: 2011-01-09
Posts: 24

Re: Practice scratch help!

nope, not yet!  smile

Offline

 

Board footer