LOGO Lessons


Formulas:
A2 + B2 = C2
C= the square root of A2 + B2
B2 = C2 - A2
A2 = C2 - B2



Let's build a house! This can be a small group, individual, or class project. Leader asks the questions and one student writes the commands.

1. How long should our house be?


2. How high should our house be?


3. How much overhang from our house should we allow for rain water to drain away from our house?


4. What pitch should our roof be?


5. If our house is 300 pixels long, what should the dimensions of each plane of our roof be?


6. How far forward for our over-hang?


7. To make our second overhang, what angle must we turn?


8. What angle must we turn to create our final wall?


9. What commands will construct our second over-hang and final wall?


10. Now let's make a door.
a) How wide should our door be?


b) How high should our door be?


c) What program commands will construct our door?


11. Now, let's make two windows.
a) What should the dimensions of our windows be?

b) What commands will make our second window?


12. Finally, we need a chimney whose height is equal to the apex of the roof.



Summary:
1. house=lt 90 bk 150 fd 300 rt 90 fd 150 lt 90 fd 30 rt 120 fd 360 rt 120 fd 360 rt 120 fd 30 lt 90 fd 150
2. door= rt 90 fd 120 rt 90 fd 100 lt 90 fd 60 lt 90 fd 100
3. windows=lt 90 fd 90 lt 90 pu fd 40 pd repeat 4[fd 60 rt 90] fd 30 rt 90 fd 60 bk 30 lt 90 fd 30 bk 60 pu bk 40 lt 90 fd 150 rt 90 fd 40 pd repeat 4[fd 60 lt 90] fd 30 lt 90 fd 60 bk 30 rt 90 fd 30 bk 60.
4. chimney=pu bk 40 rt 90 fd 240 lt 90 fd 150 rt 90 fd 30 lt 120 fd 200 rt 30 pd fd 150 rt 90 fd 50 rt 90 fd 237

*Note: To calculate the final line for our chimney, you can use the Trigonomic Calculator. Enter 50 in the input side (length of side a), and 60 for the input angle (angle between the roof and chimney}. This calculation will yield 87. 87 is then added to the length of the other chimney side (150) to give us a length of 237 (150+87=237) for our second, longer chimney side.
*For younger students is it best to just guess at this additional amount needed to complete the chimney. However, with students versed in Geometry or Trigonometry, they should be able to calculate this on their own.

Now we go to the LOGO editor and enter the following:
to house
lt 90 bk 150 fd 300 rt 90 fd 150 lt 90 fd 30 rt 120 fd 360 rt 120 fd 360 rt 120 fd 30 lt 90 fd 150
rt 90 fd 120 rt 90 fd 100 lt 90 fd 60 lt 90 fd 100
lt 90 fd 90 lt 90 pu fd 40 pd repeat 4[fd 60 rt 90] fd 30 rt 90 fd 60 bk 30 lt 90 fd 30 bk 60 pu bk 40 lt 90 fd 150 rt 90 fd 40 pd repeat 4[fd 60 lt 90] fd 30 lt 90 fd 60 bk 30 rt 90 fd 30 bk 60
pu bk 40 rt 90 fd 240 lt 90 fd 150 rt 90 fd 30 lt 120 fd 200 rt 30 pd fd 150 rt 90 fd 50 rt 90 fd 237
end
and click "save and exit"
Now enter into the LOGO commander the word "house" and it draws our house.


Finally, we must paint our house.
Go back into the LOGO editor and add the following:

to color

setfloodcolor [255 0 0]
pu lt 45 bk 10 rt 45 bk 50 pd
fill
setfloodcolor [0 0 255]
pu rt 90 fd 130 pd
fill
setfloodcolor [0 0 0]
pu lt 90 fd 230 pd
fill
setfloodcolor [255 255 255]
pu rt 90 fd 100 pd
fill
pu bk 30 rt 90 fd 30 pd
fill
pu rt 90 fd 150 pd
fill
pu rt 45 fd 45 pd
fill

end
Click "save and exit". We now have two programs in our editor, house and color.

In the LOGO commander enter "house color" and our beautiful blue house with a black door, red chimney, and green (background color) and white windows appears.






LOGO Activity # 1:


Draw a spoked bicycle wheel with a circumference of 1080 and 72 spokes.

LOGO Activity # 2:


Draw this circle: lt 90 repeat 360[fd 2 rt 1].
Now draw a square inside the circle in which the four end points of the square touch the circle, but do not penetrate the circle. (hint: draw an X in the circle first)


LOGO Activity # 3:


Using a pencil and paper, draw what you think these commands will produce:
circle2 200 circle2 190 circle2 180 circle2 170 circle2 160 circle2 150 circle2 140 circle2 130 circle2 120 circle2 110 circle2 100 circle2 90 circle2 80 circle2 70 circle2 60 circle2 50 circle2 40 circle2 30 circle2 20 circle2 10

LOGO Activity # 4:


Draw a Christian cross:

LOGO Activity # 5:


Shade the cross you just drew by drawing it 30 times, each time moving it 2 pixels to the left and turning it 45 degrees.

LOGO Activity # 6:


Now repeat the shaded pattern you just drew 4 times with a 90 degree rotation after each repetition.

LOGO Activity # 7:


a) Draw a circle with a circumference of 1080 pixels:
b) Repeat this circle 72 times, each time moving it 5 degrees to the right.



LOGO Activity # 8:


draw a circle of 72 sticks 200 pixels long:


LOGO Activity # 9:


a) Using the arc2 command, draw an Agape Fish:
b) Draw an Agape Fish without using either the arc or arc2 commands:



LOGO Activity # 5:


Using nothing but a pencil and paper, predict what you think this procedure will produce:


LOGO Activity # 6:


Using nothing but a pencil and paper, predict what you think this procedure will produce:

LOGO Activity # 7:


What is the circumference of circle created by the following LOGO program: Repeat 360[fd 1.5 rt 1]?


LOGO Activity # 8: Adding Color To A Design


1. Draw the design: repeat 6[repeat 360[fd 2 lt 1]rt 60]
2. Add red to the second layer: repeat 6[pu fd 150 setfloodcolor [255 0 0] pd fill pu bk 150 rt 60]
3. Add white to the inner layer: repeat 6[pu rt 30 fd 22 setfloodcolor [255 255 255] pd fill pu bk 22 rt 30]pd
4. Add blue to the outer layer: repeat 6[pu rt 30 fd 210 setfloodcolor [0 0 255] pd fill pu bk 210 rt 30]pd



LOGO Activity # 9:

Draw a circle with a circumference of 1080 pixels, and divide the circle into 12 sectors. Color every other sector red.


Repetition


Using the "cut and paste" method, enter the following into the LOGO Program Editor. Then click "save and exit."
to c1
circle 200 circle 198 circle 196 circle 194 circle 192 circle 190 circle 188 circle 186 circle 184 circle 182
circle 180 circle 178 circle 176 circle 174 circle 172 circle 170 circle 168 circle 166 circle 164 circle 162

circle 160 circle 158 circle 156 circle 154 circle 152 circle 150 circle 148 circle 146 circle 144 circle 142
circle 140 circle 138 circle 136 circle 134 circle 132 circle 130 circle 128 circle 126 circle 124 circle 122

circle 120 circle 118 circle 116 circle 114 circle 112 circle 110 circle 108 circle 106 circle 104 circle 102
circle 100 circle 98 circle 96 circle 94 circle 92 circle 90 circle 88 circle 86 circle 84 circle 82

end

to c2
circle2 200 circle2 198 circle2 196 circle2 194 circle2 192 circle2 190 circle2 188 circle2 186 circle2 184 circle2 182
circle2 180 circle2 178 circle2 176 circle2 174 circle2 172 circle2 170 circle2 168 circle2 166 circle2 164 circle2 162

circle2 160 circle2 158 circle2 156 circle2 154 circle2 152 circle2 150 circle2 148 circle2 146 circle2 144 circle2 142
circle2 140 circle2 138 circle2 136 circle2 134 circle2 132 circle2 130 circle2 128 circle2 126 circle2 124 circle2 122

circle2 120 circle2 118 circle2 116 circle2 114 circle2 112 circle2 110 circle2 108 circle2 106 circle2 104 circle2 102
circle2 100 circle2 98 circle2 96 circle2 94 circle2 92 circle2 90 circle2 88 circle2 86 circle2 84 circle2 82

end

LOGO Activity # 10:

In a sentence or two, or by drawings, show how the graphic produced by "c2" will differ from that produced by "c1".

Then, in the LOGO commander, enter "c1," examine it, then reset and enter "c2" and examine it. Were you right?

LOGO Activity # 11:

Using the LOGO editor, construct two programs that will produce a target (concentric circles) of diameters 300, 250, 200, 150, 100 and 50. Color each each layer a different color.
Hint # 1: It is best to use the "circle" command.
Hint # 2: one program should be for the target, and the second program should be to color each layer.
Answer



BONUS---LOGO BONUS Problem---BONUS




Use the repcount variable to construct a spiral design that spirals 2 degrees to the right.



Back to LOGO Tutorial
Common Color Chart
Rare Color Chart
Back to LOGO Programs
Try These LOGO Commands
sum1no1nose@yahoo.com