Wednesday, November 14

Logo procedures

Today you are going to be receiving a handout that we will use to help us learn how to create procedures in Logo.  A procedure in Logo is what I call a "mini-program" - if you were an actual programmer you would use these "mini-programs" to help you design the software that you are creating, and they most likely would be something that you use frequently (or at least more than once).

The purpose of creating the procedure is again to be more efficient.  That's really what this whole process in Logo has been - we started by creating a long list of instructions to create a square.  Next, we  eliminated the long list of instructions and reduced what we entered to a repeat statement; now we are going to reduce that down even further to a procedure so that we can do the same thing over and over and only type in one word (that one word becomes the "mini-program").

I also will be showing you how you can create a variable (hopefully you have already covered these in math) in a procedure so that you can manipulate the size of the shape you are creating without having to write a different procedure for each different sized shape.

No comments:

Post a Comment