Thursday, February 23

Logo - a programming language; crossword puzzle

You can turn your crossword puzzle in today if you have it completed.  However, it is not due until the beginning of class tomorrow.  Also, if you have not completed your discussion on Edmodo I highly encourage you to get that done as soon as you can.  Both of these are homework assignments, which means that you will complete them outside of class.  As usual, you are welcome to come in before school, during lunch recess, during REAL time (if you have it), or stay after school if you need time to get it done. 


LOGO!!


Logo is a computer programming language created at MIT (Massachusetts Institute of Technology), and is designed to give individuals an introduction into computer programming.  What you are going to learn with Logo is how a computer programmer thinks abstractly and sequentially in order to get their program to run correctly.  We will NOT be creating a program as you know it (however, we will be using Logo to create what I call "mini-programs" that will challenge you to understand the nature of what a computer programmer goes through in designing software).  

FORWARD, RIGHT, LEFT, BACK

You can use these 4 primitives to move Logo (your turtle, but it actually looks like a triangle on your screen) by typing in FORWARD or BACK followed by a number that you want your turtle to move.  Actually, you can give Logo multiple commands.  RIGHT and LEFT tell Logo to turn; when you follow these commands with a number, the number you type in tells Logo what degrees to turn.  For example, if I type in "RIGHT 75" (don't use quotes!) Logo will turn 75 degrees to the right.  Get it??!!  Alright, now it's your turn.  See if you can create a square!

In addition to those 4 primitives that help to move your turtle, here are several others that will be useful to you while using Logo:

HIDETURTLE, SHOWTURTLE, PENUP, PENDOWN, HOME, CLEARSCREEN

After creating a design in Logo, you'll probably want to get rid of it on your screen so that you can move on and do what's next.  That's what the CLEARSCREEN command does - it clears the screen.  Typing in HOME moves your turtle back to the starting point and points it "up" on the screen.  HIDETURTLE - should be self explanatory, as should SHOWTURTLE.  The PENUP command allows you to move Logo on your screen without drawing any lines.  PENDOWN is used after you have used the PENUP command (PENDOWN is actually how Logo starts when you bring up the program).  You may want to try these commands to see how they work.

After creating a square, see if you can create other shapes - triangles, rectangles, circles, hexagon etc.

No comments:

Post a Comment