background preloader

Logo

Facebook Twitter

Simon Haughton's Blog: LOGO Programming. I'm going to admit that the fourth lesson I do on LOGO is complicated - the understanding of the programming commands that is required is of a high level and any mistake made (even the tiniest one) will result in either commands not being executed properly or error messages popping up on screen. It is, however, a lesson which the children rose to the challenge of today and which they were extremely impressed with when they saw what on-screen patterns they had managed to produce by its end. The age-old saying "you only get out what you put in" was certainly true today! Last time, I showed the children how to use the REPEAT command to draw regular polygons and stars so the natural progression was therefore to teach them how to create procedures this time.

I explained a procedure as simply being a set of commands which are given a name, which when typed are run (done/executed). The next procedure I asked the children to create was one which drew a square shape. LOGO Lesson 2. As of July 1, 2013 ThinkQuest has been discontinued. We would like to thank everyone for being a part of the ThinkQuest global community: Students - For your limitless creativity and innovation, which inspires us all. Teachers - For your passion in guiding students on their quest. Partners - For your unwavering support and evangelism. Parents - For supporting the use of technology not only as an instrument of learning, but as a means of creating knowledge. We encourage everyone to continue to “Think, Create and Collaborate,” unleashing the power of technology to teach, share, and inspire. Best wishes, The Oracle Education Foundation. Common Logo Commands. Exploring Programming | Academics | Middle School | The American School in Japan Pen and Color | Move | Turtle | Program | Mathematics and Variables | Program Flow |Mouse Pen and Color Commands Short for "pen up," it lifts the "pen" from the screen so that moving the turtle doesn't draw a line.

Example: PU Puts the pen down so that moving the turtle draws a line Example: PD SetPenSize [n n] Sets the width of the pen to n pixels. Example: SetPenSize [5 5] SetPC [r g b] Sets the pen color to the appropriate RGB (Red, Green, Blue) values, where r, g,and b are numbers that range from 0 to 255. Example: SetPC [255 0 0] (Gives red) Penerase Sets the pen to down and sets the mode to erase.

Example: Penerase or pe Pennormal Sets the pen back to normal mode and cancels erase mode. Example: Penerase setfloodcolor [r g b] Sets the flood color to the appropriate RGB (Red, Green, Blue) values, where r, g,and b are numbers that range from 0 to 255. Example: setfloodcolor [255 0 255] (Gives magenta) fill Example: fill. Logo for all. The Logo Programming Language. The Logo Programming Language, a dialect of Lisp, was designed as a tool for learning.

Its features - interactivity, modularity, extensibility, flexibility of data types - follow from this goal. Interactivity Although there are some versions of Logo that compile, it is generally implemented as an interpreted language. The interactivity of this approach provides the user with immediate feedback on individual instructions, thus aiding in the debugging and learning process. Fowad I don't know how to fowad (The word fowad is not a primitive - one of Logo's built in words - nor a procedure that you've defined.) forward Not enough inputs to forward (Now that you've spelled it correctly, Logo knows the word forward, but can't run your instruction because forward requires additional information. forward 100 (Logo is happy. Modularity and Extensibility Logo programs are usually collections of small procedures. In our turtle graphics example we defined a procedure to draw a square Flexibility.

Learning LOGO. In the fall of 1995 I started teaching my son's second grade class how to program using the LOGO programming language. Logo is wonderful because for very little work you can get some great graphical feedback. One of the themes of my class has been demonstrating that some seemingly complex things are in reality created by very simple processes. We use MSW Logo implemented by George Mills. This version of LOGO is easy to install and runs on Windows 3.1 (there is also a 32 bit version available for Win95 and NT).

I prepared a number of hand-out materials and work sheets when we started the class. Logo Facts Using the Repeat Command Fun with REPEAT Making your own Words Music and Random Numbers Fun Programs March 31, 2001 If you've enjoyed learning to program in Logo and want to learn more about programming, I'd also highly recommend that you learn JavaScript. I would also recommend some of my favorite books on Programming.