<?xml version="1.0" encoding="UTF-8" ?>
  <resource>
  <id>4859</id>
  <path>/www/nrich/html/content/id/4859/</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=4856&amp;amp;part=&quot;&gt;FF7&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;&lt;/br&gt;
You might like to learn some more Logo by going to &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=4863&amp;amp;part=index&quot;&gt;Muggles, Logo and Gradients&lt;/a&gt; where you will use Logo to throw light on a very puzzling problem called &lt;a href=&quot;http://nrich.maths.org/public/viewer.php?obj_id=782&amp;amp;part=index&quot;&gt;Muggles Magic&lt;/a&gt; .&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Consider the following procedure:&lt;br&gt;&lt;/br&gt;
TO PATTERN :SIZE&lt;br&gt;&lt;/br&gt;
REPEAT 5 [FORWARD :SIZE RT 144]&lt;br&gt;&lt;/br&gt;
END&lt;/p&gt;
&lt;br&gt;&lt;/br&gt;
&lt;table style=&quot;&quot; border=&quot;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;div&gt;What is different about this procedure?&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;Did you notice :SIZE ?&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;It is called a VARIABLE .&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;It is always written in a particular way using a colon.&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;What do you think this is about?&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;What does the word variable suggest to you?&lt;/div&gt;
&lt;br&gt;&lt;/br&gt;
&lt;div&gt;Why not type in the procedure above and then copy the following:&lt;/div&gt;
&lt;div&gt;PATTERN 30&lt;/div&gt;
&lt;div&gt;PATTERN 60&lt;/div&gt;
&lt;div&gt;PATTERN 120&lt;/div&gt;
&lt;/td&gt;
&lt;td&gt;&lt;mdo:image alt=&quot;PATTERN&quot; height=&quot;270&quot; src=&quot;logo11.gif&quot; width=&quot;244&quot;&gt;&lt;/mdo:image&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;br&gt;&lt;/br&gt;
&lt;p&gt;Or experiment with different numbers for yourself and see what patterns you can produce.&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
Are you feeling happier with the idea of a variable? If so why not explore further this idea of using a variable in those procedures you have met previously.&lt;br&gt;&lt;/br&gt;
TO SQUARE :SIZE&lt;br&gt;&lt;/br&gt;
REPEAT 4 [ FD :SIZE RT 90]&lt;br&gt;&lt;/br&gt;
END&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
TO HEXAGON :S&lt;br&gt;&lt;/br&gt;
REPEAT 6 [ FD :S RT 60]&lt;br&gt;&lt;/br&gt;
END&lt;br&gt;&lt;/br&gt;
&lt;br&gt;&lt;/br&gt;
TO DODECA :S&lt;br&gt;&lt;/br&gt;
REPEAT 12 [BK :S LT 30]&lt;br&gt;&lt;/br&gt;
END&lt;br&gt;&lt;/br&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=4857&amp;amp;part=&quot;&gt; FF9&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>0</keystage2>
  <keystage3>1</keystage3>
  <keystage4>1</keystage4>
  <keystage4plus>1</keystage4plus>
  <title>First Forward into Logo 8: More about Variables</title>
  <description>Write a Logo program, putting in variables, and see the effect when you change the variables.</description>
  <spec_group>Algebra
    <specifier>Introducing algebra</specifier>
  </spec_group>
  <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>