[go: up one dir, main page]

Jump to content

Logo (programming language)

From Simple English Wikipedia, the free encyclopedia
The article about graphical symbols is at Logo
A graphic created with Logo

Logo is a programming language that is easy to learn. It is used to teach students and children to program a computer. It was developed to process lists of words. It was like the language LISP.

In 1967, the first Logo ran on a mainframe computer, a machine called a teletype was used to type in and printout the results.[1] There was no screen.

In 1969, it was used to control a Floor Turtle. Commands were added to send the turtle forwards and backwards, and to turn the turtle to left or right. This turtle had pen with different colors. When it moved, it left a trail on the floor.

Versions

[change | change source]

When a new version of Logo was developed to draw graphics on a screen, it used the same commands. This was called Turtle graphics.

There are 170 versions of Logo. Many of them are open source and free. There are three Logo textbooks that can be downloaded free. Logo is usually an interpreted language.

Examples

[change | change source]

Hello World

[change | change source]

Load the Logo program. Type the next line in the command box.

print [Hello World!]

The computer replies.

Hello World!

Example Showing Graphics and Functional Programming

[change | change source]

A spiral drawn using recursion. Using the editor, type in this new definition.

to spiral :size
   if  :size > 30 [stop] ; a condition stop
   fd :size rt 15        ; many lines of action
   spiral :size *1.02    ; the tailend recursive call
end

Type this in the command box.

spiral 10

On the screen you will see.

Other websites

[change | change source]

Logo Programs

Online books

  • A Logo Tutorial Archived 2007-07-16 at the Wayback Machine for the OLPC project
  • The Great Logo Adventure, Jim Muller A book for children.
  • Computer Science Logo Style, Brian Harvey, MIT Press (3 volumes) ISBN 0-262-58148-5, ISBN 0-262-58149-3, ISBN 0-262-58150-7. Advanced books.

References

[change | change source]
  1. http://logothings.wikispaces.com/ Archived 2008-09-14 at the Wayback Machine Early History Wikispace