"but "went "on "with "a :adjective1 "but :adjective2 "pace.\ "The :loser "laid "down "and "fell "asleep.\ "When "the :loser "woke "up,\ "he "went "as :opposite1 "as "he "could, "but "the\ :winner "had "already "won "the :contest "\ "and "was "comfortably "dozing.\ "\ "The "moral "of "the "story "is\ :adjective1 "and :adjective2 "wins "the :contest ".\ ) END There are some commands in the Mad Libs program that we have never seen. Here's what they do. Command Example What Happens LOCALMAKE name LOCALMAKE Creates a variable named :length and assigns it the value 100. value "length 100 PRINT [Hello PRINT list Displays "Hello World!" in the Commander window. World!] LIST value1 value2 (LIST "Hello Creates a list from whatever follows it. Each element is ... "World!) evaluated before being put into the list. Write your own Mad Libs using the program above as a model. You can use a Activity: story or make one up yourself. Just be sure to replace some of the words with blanks. When you are done, give the program to a friend and let them fill in the blanks with their own words. Lesson 10: English Sentences In this lesson, we are going to teach the turtle to write English. The turtle already knows how to write every letter in the alphabet, so all we have to do is each him English.
"but "went "on "with "a :adjective1 "but :adjective2 "pace.\ "The :loser "laid "down "and "fell "asleep.\ "When "the :loser "woke "up,\ "he "went "as :opposite1 "as "he "could, "but "the\ :winner "had "already "won "the :contest "\ "and "was "comfortably "dozing.\ "\ "The "moral "of "the "story "is\ :adjective1 "and :adjective2 "wins "the :contest ".\ ) END There are some commands in the Mad Libs program that we have never seen. Here's what they do. Command Example What Happens LOCALMAKE name value LOCALMAKE "length 100 Creates a variable named :length and assigns it the value 100. PRINT list PRINT [Hello World!] Displays "Hello World!" in the Commander window. LIST value1 value2 ... (LIST "Hello "World!) Creates a list from whatever follows it. Each element is evaluated before being put into the list. Activity: Write your own Mad Libs using the program above as a model. You can use a story or make one up yourself. Just be sure to replace some of the words with blanks. When you are done, give the program to a friend and let them fill in the blanks with their own words. Lesson 10: English Sentences In this lesson, we are going to teach the turtle to write English. The turtle already knows how to write every letter in the alphabet, so all we have to do is each him English.
FMSLogo_workshop_tutorials.docx