<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 07/24/2012 11:43 AM,&nbsp; wrote:
    <blockquote
cite="mid:CA765D0D95A04D449667AFA14377899C555B5CDA33@MERCERMAIL.MercerU.local"
      type="cite">
      <div style="direction: ltr;font-family: Tahoma;color:
        #000000;font-size: 10pt;">Thanks.
        <div>Another thing concerning the Programming Assignment. I ran
          the program and see the shapes drawn, but I'm not too certain
          about what to do next. The directions say "Now look at the
          code itself," but I think that is where I am getting stuck
          because I'm not sure what code I am looking at.</div>
        <br>
      </div>
    </blockquote>
    <br>
    <br>
    Here are the two functions that I wrote...<br>
    <br>
    # This function draws a polygon&nbsp; <br>
    def polygon(length_of_side, number_of_sides):<br>
    &nbsp;&nbsp;&nbsp; for i in range (number_of_sides):<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; turtle.forward(length_of_side)<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; turtle.left(360/number_of_sides)<br>
    <br>
    # This function positions the turtle<br>
    def position(x,y):<br>
    &nbsp;&nbsp;&nbsp; turtle.penup()<br>
    &nbsp;&nbsp;&nbsp; turtle.setposition(x,y)<br>
    &nbsp;&nbsp;&nbsp; turtle.pendown()<br>
    <br>
    Later in the code you will see things like...<br>
    <br>
    position(100,100)<br>
    polygon(100,5)<br>
    <br>
    <br>
    If you compare these back to the two functions you will see that the
    first of these<br>
    sets the POSITION of the turtle in x and y coordinates.&nbsp;&nbsp; The second
    of these draws<br>
    a POLYGON with the first argument defining the size of the polygon
    and the second one<br>
    defining the number of sides.<br>
    <br>
    turtle.circle(100)<br>
    <br>
    is similar but only has one argument, the size of the circle.<br>
    <br>
    <br>
    Your job is to change the arguments to the position, polygon, and
    circle functions<br>
    to meet the requirements of the exercise. <br>
    <br>
    &nbsp;For example -- try this<br>
    <br>
    position(125,-10)<br>
    polygon(50,5)<br>
    <br>
    and see what happens to your pentagon.<br>
    <br>
    <br>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Andrew J. Pounds, Ph.D.  (<a class="moz-txt-link-abbreviated" href="mailto:pounds@theochem.mercer.edu">pounds@theochem.mercer.edu</a>)
Associate Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627
</pre>
  </body>
</html>