0 views

Uploaded by Shumaila Akhtar

You are on page 1of 11

Solving Turtle

Questions

Starting with Logo Language

You can start programming the movement of turtle by using the

following web link:

http://turtleacademy.com/learn.php

A very simple language consisting of very few commands.

direction. So for example, Forward 10 means turtle will move 10 units

distance in forward direction.

direction. So for example, Backward10 means turtle will move 10

units distance in backward direction.

Starting with Logo Language

Right n where n is angle at which turtle will turn in right hand

direction. So for example, Right 90 means the turtle will turn 90 degrees

in right hand direction.

Important to remember Right 90 = Left 270

direction. So for example, Left 90 means the turtle will turn 90 degrees in

left hand direction.

Important to remember Left 90 = Right 270

without tracing it.

by tracing it.

Starting with Logo Language

Repeat n It is a programming code used to repeat one

same line of code or multiple same lines of code for n times. Where

n is the number of times we want to repeat for example 3 or 4 or 8

etc.

used after each Repeat n statement.

Example1

Write down the Logo Language instructions for drawing the

following shape.

Pendown

Forward 2

Right 90

Forward 4

Right 90

Forward 2

Right 90

Forward 4

Right 90

Penup

Problem Example1– Alternative

Code

The alternative code for problem 1 can be as below:

Pendown

Repeat 2

Forward 2

Right 90

Forward 4

Right 90

Endrepeat

Penup

Example 2

Write down the Logo Language instructions for drawing the following shape.

Pendown

Forward 4

Left 90

Forward 4

Left 90

Forward 2

Left 90

Forward 2

Right 90

Forward 2

Left 90

Forward 2

Left 90

Penup

Example 3

Write down the Logo Language instructions for drawing the following shape.

Pendown

Left 90

Forward 40

Right 90

Forward 70

Right 90 or Repeat 2

Forward 50 Right 90

Right 90 Forward 50

Forward 50 Endrepeat

Left 90

Forward 20

Right 90

Forward 20

Right 90

Forward 20

Left 90

Penup

Example 4

Write down the Logo Language instructions for drawing the following shape.

Pendown

Left 45

Forward 28

Right 45

Forward 20

Right 135

Forward 28

Left 90

Forward 28

Right 135

Forward 20

Right 45

Forward 28

Penup

Practice Problem 1

Write down the Logo Language instructions for drawing the

following shape.

Practice Problem 2

Write down the Logo Language instructions for drawing the

following shape.

- fUploaded byVansh Kapoor
- Remove Initial StateUploaded byapi-26309129
- CSCI06 LoopingUploaded byMadz Laviña Flores
- CodeUploaded bysumukhs
- 03_TriggerTutorial_CBUploaded byGaluh Redirectionz
- Practice for entranceUploaded byKumar
- ymwputqutyuutpokadoqr.txtUploaded byJuan Arnao Perez
- java codeUploaded bysrramk
- Zfagl Copy Leading LedgerUploaded bySandra Yaneth Bedoya
- rtlUploaded byKen Johnson
- Calculator 3Uploaded byNeha Gupta
- ATTREDEFUploaded byRodrigo Antunes
- Mb23 Full CodeUploaded byVeerla Balu
- Variante en DynproUploaded byotracuentaaux6
- Space Invaders SniptUploaded byWagner Calcina
- f(1)Uploaded byAmy Oliver
- C++Uploaded byRamanBhatoa
- eventcheckersUploaded byapi-280451617
- Ejemplo ALV BásicoUploaded byRaul
- Recursive Word Extract v5Uploaded byrty2
- Pdfwrite.psUploaded byAndrija Dragojevic
- Implement Circular Link List Using Templates. Include Function for Insertion, Deletion, Search of a No., Reverse the List.Uploaded bysristisagar
- vcUploaded bysristisagar
- Logic Note 2Uploaded byVikas
- exp1Uploaded byMathew
- Code (Do Loop)Uploaded bycruz marco
- Angularjs Provider Cheat SheetUploaded byRanjit Sachin
- SubroutineUploaded byMd Shazman Anwar
- Kelly Code Mq4Uploaded byCardoso Penha
- Number CheckerUploaded byMuhammad Imran

- Introduction to Vb Net Prerelease Material 2015Uploaded byJohn Winchester Domingo
- 16-Types-of-programming-languages-translators.pdfUploaded byShumaila Akhtar
- Operating SystemUploaded byL N
- pseducodeUploaded byZareena Carrim
- 4-number-system.pdfUploaded byShumaila Akhtar
- 14-Program-flowchart-trace-table.pdfUploaded byShumaila Akhtar
- 7-Types-of-buses-in-computer.pdfUploaded byShumaila Akhtar
- 12-Program-flow-chart-theory.pdfUploaded byShumaila Akhtar
- 5-The-von-neumann-machine.pdfUploaded byShumaila Akhtar

- Wi Sprites a4Uploaded bysdshailesh
- Doc ViewUploaded byVipin Sharma
- 722-9-5-2011-reviewUploaded bymbscribd2011
- Algorithm Questions SolutionUploaded byDuaa Al-Hasan
- Creating a C# Application Using SAP HANA and ADO.netUploaded byVicente Arellano
- ECE3362 Syllabus Fall 2014Uploaded byGershom Benjamin
- LogUploaded byMartin Christensen
- Sample Questions of OCJPUploaded byPrem Nath R
- apnt_253Uploaded byAtakan OzturK
- Software-Testing-11Uploaded byvinitajenny
- Lab01 HandoutUploaded byBatman
- ch3Uploaded bytazeb Abebe
- ZKFinger SDK 5.0_enUploaded byMiguel Nieva
- ssd3-Chapter0Uploaded byapi-3714422
- C# BestUploaded byanalese1
- C Language Calling SequenceUploaded byapi-3700012
- Symfony Cookbook 3.0Uploaded byPruebas
- Workflow GuideUploaded byMohammed Manzoor Anwar
- CS 2305 — PROGRAMMING PARADIGMSUploaded byAnitha JS
- Mpu6050 RawUploaded byAman Kumar
- Third year sixth semester CS6660 compiler design two mark with answerUploaded byPRIYA RAJI
- 13891 ProgramsUploaded byÆ Reddy Vïñød
- Code Blocks InstructionsUploaded byChiranjivi Kottam
- Cheatsheet Redaxo 42Uploaded bypubsqdrat
- Bit ManipulationUploaded byKiran Kumar
- Design Patterns_Tushaar GUploaded byTushaar Gangarapu
- Softice Cracking CommandsUploaded bySarahCampos
- Data Models AssignmentUploaded byAlice Portman
- 300 Google Dork SQLi Vuln Fresh 2019Uploaded bywakilmu.com
- Net s7-1200 Isoontcp EnUploaded byjamaza