How to solve turtle logo questions
-
Upload
sadman-sameer -
Category
Documents
-
view
217 -
download
0
Transcript of How to solve turtle logo questions
-
7/25/2019 How to solve turtle logo questions
1/13
-
7/25/2019 How to solve turtle logo questions
2/13
Starting "it# Logo LanguageYou $an start %rograing t#e oveent o' turtle () using
t#e 'ollo"ing "e( lin*:
#tt%:++turtlea$a,e).$o+learn.%#% A ver) si%le language $onsisting o' ver) 'e" $oan,s.
Forward n "#ere nis distanceturtle "ill $over in
forwarddirection. So 'or e-a%leForward 10 eans turtle "ill ove/0 units,istan$e in 'or"ar, ,ire$tion.
Backward n "#eren isdistance turtle "ill $over inbackward direction. So 'or e-a%leBackward10 eansturtle "ill ove /0units ,istan$e in (a$*"ar, ,ire$tion.
http://turtleacademy.com/learn.phphttp://turtleacademy.com/learn.php -
7/25/2019 How to solve turtle logo questions
3/13
Starting "it# LogoLanguage
Right n "#ere nis angleat "#i$# turtle "ill turn in righthanddirection. So 'or e-a%leRight 90 eans t#e turtle "ill turn 10,egreesin rig#t #an, ,ire$tion.
2%ortant to ree(er Right 90 = Left 270
Left n "#ere nis angleat "#i$# turtle "ill turn in left
handdirection. So 'or e-a%leLeft 90 eans t#e turtle "ill turn 10,egrees inle't #an, ,ire$tion.
2%ortant to ree(er Left 90 = Right 270
Penup "#en soe oveent or turn is to (e %er'ore,
-
7/25/2019 How to solve turtle logo questions
4/13
"it#out tra$ing it.
Pendown "#en soe oveent or turn is to (e %er'ore,
() tra$ing it.
-
7/25/2019 How to solve turtle logo questions
5/13
Starting "it# Logo Language
Repeat n 2t is a %rograing $o,e use, to re%eat onesae
line o' $o,e or ulti%le sae lines o' $o,e 'or n ties. 3#ere n
is t#e nu(er o' ties "e "ant to re%eat 'or e-a%le 4 or 5 or6 et$.
ndrepeat 2t tells t#eend o' aRepeat n stateent. 2t ust(euse, a'ter ea$# Repeat nstateent.
-
7/25/2019 How to solve turtle logo questions
6/13
E-a%le/ 3rite ,o"n t#e Logo Language instru$tions 'or ,ra"ing
t#e 'ollo"ing s#a%e.
Pendown
Forward 2
Right 90
Forward !
Right 90
Forward 2
Right 90
Forward !
Right 90
Penup
-
7/25/2019 How to solve turtle logo questions
7/13
Pro(le E-a%le/Alternative
7o,eT#e alternative $o,e 'or %ro(le / $an (e as (elo":Pendown
Repeat 2
Forward 2
Right 90Forward !
Right 90
ndrepeat
-
7/25/2019 How to solve turtle logo questions
8/13
Penup
-
7/25/2019 How to solve turtle logo questions
9/13
E-a%le 8
3rite ,o"n t#e Logo Language instru$tions 'or ,ra"ing t#e 'ollo"ing s#a%e.
Pendown
Forward !Left 90
Forward !
Left 90
Forward 2
Left 90
Forward 2
Right 90
Forward 2
Left 90
Forward 2
Left 90
Penup
-
7/25/2019 How to solve turtle logo questions
10/13
E-a%le 4
3rite ,o"n t#e Logo Language instru$tions 'or ,ra"ing t#e 'ollo"ing
s#a%e.Pendown
Left 90
Forward !0
Right 90
Forward 70
Right 90 or Repeat 2
Forward "0 Right 90
Right 90 Forward "0
Forward "0 ndrepeat
Left 90Forward 20
Right 90
Forward 20
Right 90
Forward 20
Left 90
Penup
-
7/25/2019 How to solve turtle logo questions
11/13
E-a%le 5
3rite ,o"n t#e Logo Language instru$tions 'or ,ra"ing t#e 'ollo"ing
s#a%e.
Pendown
Left !"
Forward 2#
Right !"
Forward 20
Right 1$"
Forward 2#
Left 90
Forward 2#
Right 1$"
Forward 20
Right !"
Forward 2#
Penup
-
7/25/2019 How to solve turtle logo questions
12/13
Pra$ti$e Pro(le/ 3rite ,o"n t#e Logo Language instru$tions 'or ,ra"ing
t#e 'ollo"ing s#a%e.
-
7/25/2019 How to solve turtle logo questions
13/13
Pra$ti$e Pro(le 8 3rite ,o"n t#e Logo Language instru$tions 'or ,ra"ing
t#e 'ollo"ing s#a%e.