Nov 232016
 
  1. Log into j2e – j2code – LOGO
  2. Click on Level 3
  3. Start your program with
    • reset
      setpensize 5
  4. Draw a simple pattern on a whiteboard and then create the instructions in LOGO to draw it.
    1. For each instruction you add, test it
    2. Make sure:
      1. the arrow finishes at the original level and across to the right a bit
      2. the arrow is pointing UP at the end of your instructions
  5. ScreenHunter_19 Nov. 21 10.46
  6. Put this above your instructions (to move it to the top corner)
    • pu setxy -240 180 pd
    • Test your code – you might need to change the numbers so that your shape fits on the screen.
  7. Repeat your shape by adding in this:
    • repeat 4
    • [
    • your instructions
    • ]
  8. Edit your code.  Can you:
    1. Make the shape smaller by changing the fd numbers? (** See the bottom of this post for another way to make your shape smaller)
    2. Make more shapes so it takes up the whole length of the screen?
  9. Now put your code inside another repeat to get the four sides of the square:
    1. repeat 4
    2. [
    3. all of your shape code so far including the repeat
    4. rt 90  (to turn the corner)
    5. ]

Success steps:

  • Copy instructions carefully
  • Use fd, lt, rt with a space and a number
  • Press play to run program
  • Make instructions to draw simple shapes including forward, left and right
  • Check instructions carefully for mistakes (bugs)

download (2) download (3) download (4) download (5)

Make your shape smaller:

Put this at the beginning of your code

  • make “scale 2

In your shape code, after every fd number, put this

  • / :scale

so it looks like this:   fd 50 /:scale

Now change the number at the top of the code to change the size.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.