<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>4858</id>
  <path>/www/nrich/html/content/id/4858/</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;strong&gt;Previous&lt;/strong&gt;:&lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=4854&amp;amp;part=&quot;&gt; FF4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;This article introduces the idea of a procedure. Procedures allow you to save instructions in LOGO, creating primitives of your own, which you can use elsewhere. Once you have &quot;taught &quot; LOGO what the word &quot;PATTERN&quot; means - it will remember what to do whenever you type in &quot;PATTERN&quot;. Providing you save your procedure at the end of you session you can call it up again the next time you wish to do
some work.&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;/br&gt;
Consider the following procedure:&lt;br&gt;&lt;/br&gt;
TO PATTERN&lt;br&gt;&lt;/br&gt;
REPEAT 12 [PU FD 60 PD REPEAT 4 [FD 45 RT 90]PU BK 60 LT 30]&lt;br&gt;&lt;/br&gt;
END&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
What do you think is happening?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
The command PU means Pen Up and PD means Pen Down.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Try tracing out the instructions step by step:&lt;br&gt;&lt;/br&gt;
* You have something to do - 12 times!&lt;br&gt;&lt;/br&gt;
* In doing that something you have to repeat something else 4 times!&lt;br&gt;&lt;/br&gt;
Strange ...&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Type in the procedure and run it?&lt;br&gt;&lt;/br&gt;
&lt;mdo:image alt=&quot;ring of squares&quot; height=&quot;405&quot; src=&quot;logo10.gif&quot; width=&quot;426&quot;&gt;&lt;/mdo:image&gt;&lt;br&gt;&lt;/br&gt;
Were you right?&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Now, try changing different parts of the procedure. Can you anticipate what is going to happen to your diagram in each case?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Next:&lt;/strong&gt;&lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=4855&amp;amp;part=&quot;&gt; FF6&lt;/a&gt;&lt;br&gt;&lt;/br&gt;
 &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;/mdoxml&gt;</indexXML>
  <solutionXML/>
  <noteXML/>
  <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 5: Pen Up, Pen Down</title>
  <description>Learn about Pen Up and Pen Down in Logo</description>
  <spec_group>Information and Communications Technology
    <specifier>Logo</specifier>
  </spec_group>
  <spec_group>Using, Applying and Reasoning about Mathematics
    <specifier>Practical Activity</specifier>
  </spec_group>
</resource>