Turtle Graphics Solutions
Turtle Graphics Solutions
Page 1
1.
PENUPFORWARD 70PENDOWNFORWARD 60PENUPFORWARD 80RIGHT 90PENDOWNRIGHT 90FORWARD 80RIGHT 90FORWARD 100
2.
RIGHTREPEAT 86586090
FORWARD 50LEFTEND REPEAT
3.
PENDOWNFORWARD 70PENUPFORWARD 70PENDOWNFORWARD 40
4.
RIGHT 90FORWARD 50RIGHT 90FORWARD 80PENDOWNFORWARD 70FORWARD 70REPEAT 4RIGHT 90FORWARD 40
PENUPRIGHT 90FORWARD 70END REPEATPENDOWN
Page 2
5.
PEN DOWNEND REPEATLEFT 9690PENUPREPEAT 2FORWARD 90FORWARD 50
RIGHT 5580PENDOWN90FORWARD 70
6.
PEN DOWNFORWARD 886RIGHT 80PENUPFORWARD 90PENDOWNFORWARD 7636REPEAT 703060
60ENDREPEAT
7. Error Corrections
(a) Missing Instructions and Placement
FORWARD 10is missing:- Before the first
PENUP - As the 5th instruction overall
- After the 4th instruction
- Before the first
RIGHT 90 - Between the 4th and 5th instruction
- Before the first
(b) Incorrect Values
- First
FORWARD 20(instruction 6) should beFORWARD 10 - Second
PENUP(instruction 8) should bePENDOWN FORWARD 90(instruction 9) should beFORWARD 35RIGHT 35(instruction 10) should beRIGHT 90