<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>1532</id>
  <path>/www/nrich/html/content/99/07/logo1/</path>
  <resourceTypeID>1</resourceTypeID>
  <last_published>2011-02-01T00:00:01</last_published>
  <indexXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;p&gt;&lt;a href=&quot;https://nrich.maths.org/8045&quot;&gt;First Forward Into Logo&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
This is the first in a twelve part series of articles introducing Logo programming for beginners. Even if you have never tried LOGO it is easy to learn and here is the place to get started! The programs in this article were written using MSWLogo and you can download this excellent free software from the internet at &lt;a href=&quot;http://fmslogo.sourceforge.net/&quot;&gt;http://fmslogo.sourceforge.net/&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;With only a limited set of instructions (i.e. primitives) it is usually quite straightforward to draw the most complex of shapes on the screen or to get the `turtle&amp;#39; to manoeuvre about the floor.&lt;/p&gt;
&lt;p&gt;For example, using instructions such as:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;forward 40 (FD 40) 
  or 
backward 20 (BK 20), 
right 85 (RT 85 ) 
   or 
left 125 (LT 125)&lt;/code&gt;

&lt;/pre&gt;
&lt;p&gt;The difficulty always seems to be about remembering to put spaces between the commands - FD, BK, RT, or LT and the amount of distance or turning you want the screen or floor turtle to achieve:&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;pre&gt;
&lt;code&gt;e.g. FD 70
 
     RT 90
 
     FD 130
 
     RT 90
 
     FD 70
 
     RT 90
 
     FD 130
 
     RT 90
 
&lt;/code&gt;

&lt;/pre&gt;&lt;/td&gt;
&lt;td&gt;&lt;mdo:image src=&quot;animation.gif&quot;&gt;&lt;/mdo:image&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;div&gt;And, there is the convention of returning the screen or floor turtle to exactly the same place that it had started from.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;The NRICH site has a number of LOGO Challenges for you to think about and respond to. In many cases you will know how well you are doing by how quickly you manage to copy the drawing exactly, in others the aim is for you to investigate the code you have been given and discover what is going on.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;When you work at the problems it would be helpful to keep a simple diary of what you were thinking at the time and what you learnt while trying to respond to the challenges set. What mathematics did you learn along the way? Are you getting better at learning things independently? What did you learn about yourself?&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;e.g.&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;How impatient did you become?&lt;/li&gt;
&lt;li&gt;How did you get round the difficulties you met?&lt;/li&gt;
&lt;li&gt;Did you share what you did with others?&lt;/li&gt;
&lt;li&gt;Did other people help you solve the challenge? In what ways?&lt;/li&gt;
&lt;li&gt;What happened when the instructions you had worked out did not draw the shape required?&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;&lt;/br&gt;
&lt;h5&gt;The first LOGO Challenge&lt;/h5&gt;
&lt;p&gt;For now, a reminder of some of the PRIMITIVES (the commands) needed to start drawing:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;FD forward        BK backward
 
LT left           RT right
 
PU pen up         PD pen down
 
HT hide turtle    ST show turtle
 
CS clear screen   CT clear text
&lt;/code&gt;
Now FD to the first challenge...
&lt;/pre&gt;
&lt;hr&gt;&lt;/hr&gt;
&lt;p&gt;&lt;mdo:image align=&quot;left&quot; alt=&quot;&quot; src=&quot;square-5.gif&quot;&gt;&lt;/mdo:image&gt;&lt;/p&gt;
&lt;p&gt;Can you use LOGO to draw the 5-square?&lt;/p&gt;
&lt;p&gt;&lt;br clear=&quot;all&quot;&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;strong&gt;Next:&lt;/strong&gt; &lt;a href=&quot;http://nrich.maths.org/4852&quot;&gt;FF2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
Most of the Logo challenges do not have solutions because you will
know that your program is correct if it draws the required shapes.
In addition you could write different programs and still get the
desired result.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
In this case we give below a very simple program. It has has many
repetitions and it could be made shorter and more elegant by using
a REPEAT command which will be introduced in the next section. Here
we give just a list of commands but we shall learn to give each
short program its own name and to use that name as a command to
start the program. &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Note that the program is written here in small case letters rather
than capitals and most LOGO software allows either. It is good
practice to be consistent and stick to one or the other and we
generally use capitals because they are easier to read.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
rt 45 fd 20 &lt;br&gt;&lt;/br&gt;
lt 90 fd 40 &lt;br&gt;&lt;/br&gt;
rt 90 fd 40 &lt;br&gt;&lt;/br&gt;
lt 90 fd 40 &lt;br&gt;&lt;/br&gt;
rt 90 fd 20 &lt;br&gt;&lt;/br&gt;
rt 90 fd 20 &lt;br&gt;&lt;/br&gt;
rt 90 fd 40 &lt;br&gt;&lt;/br&gt;
lt 90 fd 40 &lt;br&gt;&lt;/br&gt;
rt 90 fd 40 &lt;br&gt;&lt;/br&gt;
lt 90 fd 20 &lt;br&gt;&lt;/br&gt;
lt 90 fd 80 &lt;br&gt;&lt;/br&gt;
lt 90 fd 80 &lt;br&gt;&lt;/br&gt;
lt 90 fd 80 &lt;br&gt;&lt;/br&gt;
lt 90 fd 80 &lt;br&gt;&lt;/br&gt;
lt 135 &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</solutionXML>
  <noteXML/>
  <clueXML>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;mdoxml version=&quot;1.0&quot;&gt;&lt;br&gt;&lt;/br&gt;
Think of the overall picture as being made of:&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
a single length and turns of 45 degrees or 90 degrees&lt;br&gt;&lt;/br&gt;
or&lt;br&gt;&lt;/br&gt;
one large square and smaller squares, the lengths of whose sides
you need to choose&lt;br&gt;&lt;/br&gt;
or&lt;br&gt;&lt;/br&gt;
small squares (you can draw one square, and the next, and the next,
but where do you start each time?) and then the large square.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
How about having a base length of 20 and start by turning through
45 degrees, something like: &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
RT 45 &lt;br&gt;&lt;/br&gt;
FD 20 &lt;br&gt;&lt;/br&gt;
FD 20 &lt;br&gt;&lt;/br&gt;
FD 20 &lt;br&gt;&lt;/br&gt;
FD 20 &lt;br&gt;&lt;/br&gt;
LT 90 ... &lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
What am I drawing?&lt;br&gt;&lt;/br&gt;&lt;/mdoxml&gt;</clueXML>
  <canonXML/>
  <end_user_role>2</end_user_role>
  <difficulty>3</difficulty>
  <keystage1>0</keystage1>
  <keystage2>1</keystage2>
  <keystage3>1</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>0</keystage4plus>
  <title>First Forward into Logo 1: Square Five</title>
  <description>A Short introduction to using Logo. This is the first in a twelve part series.</description>
  <spec_group>Information and Communications Technology
    <specifier>Logo</specifier>
  </spec_group>
  <spec_group>2D Geometry, Shape and Space
    <specifier>Squares</specifier>
  </spec_group>
  <spec_group>Sequences, Functions and Graphs
    <specifier>Iteration</specifier>
  </spec_group>
  <spec_group>Information and Communications Technology
    <specifier>Programming</specifier>
  </spec_group>
  <spec_group>Applications
    <specifier>STEM - General</specifier>
  </spec_group>
</resource>