Video LessonsReference
Testing for UnderstandingRelated LinksLogo How-TosLogo SoftwareLogo OrganizationsLogo ForumsThe work on this shelf is powered by you andMicroWorlds Web Player is officially supported under Internet Explorer or Netscape 4 or higher |
Commands and ReportersA procedure can be either a command or a reporter. Either kind of procedure can have zero or more inputs, but commands always have zero outputs and reporters always have exactly one output. Tank diagramsOne way to tell commands and reporters apart is from their tank diagrams. The tank diagram of a reporter has an outgoing pipe that carries its output. For example, here is the tank for the reporters sum, xcor and first:
Since commands don't report anything, they have no output pipe. Here are tanks for the fd, home and glide commands:
CommandsCommands are procedures that are used to change the state of projects, pages, turtles, buttons, sliders, text boxes, colors, hyperlinks, media objects, dialog boxes, choosers and the Command Center. Commands don't report output to other procedures. Examples of commands: presentationmode, page1, setx, fd, setslider1, set. The following procedures are not commands: xcor, sum, word, get.ReportersA procedure that reports output to other procedures is called a reporter. The OP command is used to report output from procedures that you write yourself. Examples of reporters: color, quotient, first, text1, get. The following procedures are not reporters: freezebg, page1, setc, fd, settext1, set. InputInput is the information a procedure needs before it can be invoked. For example, in the following instruction fd 50 50 is the input to the fd command OutputOutput is the information reported by a reporter. For example, in the instruction below fd product 5 10 the output of the product reporter is 50. Setters and GettersAll the setters and getters below either set or get information from the turtle's backpack
|
||||||||||||
Leone Learning Systems, Inc. (LLS) is a North Shore company that provides online courses for kids anywhere and local teaching and tutoring services for students in Chicago and the Northern Suburbs of Chicagoland. LLS also provides a free geometry software package for children age 6 and up, and free resources for teachers and parents. This site includes information about classes taught, availability for tutoring, learning activities for kids, lesson plans, and ongoing software and curriculum research and development efforts. |
|||||||||||||




