Using Logo and Logic Please use speaker notes for additional information!

Slides:



Advertisements
Similar presentations
First of all – lets look at the windows you are going to use. At the top you have a toolbar, with all your various tools you can use when customising your.
Advertisements

Logo Lesson 1 TBE Fall 2004 Farah Fisher.
Computer Science 1000 LOGO I. LOGO a computer programming language, typically used for education an old language (1967) the basics are simple: move a.
© red ©
Logo Lesson 2 Logo Procedures
Introduction to TouchDevelop
Please Stand Up By Mr. Al.
Explanation of Web 6, Web 7 and Web 9 at my site Please be sure to bring up the speaker notes for the explanation Intro - Web 6, Web 7 and Web 9.
COLOURS.
LOGO SOFTWARE BY: SAVE 9S. INTRODUCTION Logo is a software that can be found at : Shared area> High School > ICT > take home software > LOGO32. This is.
Getting Started with HTML Please use speaker notes for additional information!
Introducing Scratch the Cat
Multiplication Goal 4: Squares through 25.
Logic Structure - focus on looping Please use speaker notes for additional information!
Kids S1 Vocabulary U1 Colors. Listen and say the color:
A SIMPLE COMPUTER LANGUAGE LOGO. LOGO Introduction Logo is the simplest programming language. It.
Art 321 Lecture 7 Dr. J. Parker. Programming In order to ‘make things happen’ on a computer, you really have to program it. Programming is not hard and.
Turtle see, turtle do Lesson 1 – Welcome to LOGO.
Introduction to Algorithms using Netlogo. What’s an Algorithm Definitions of Algorithm on the Web: –A procedure or formula for solving a problem.
Introduction to TouchDevelop
MSW Logo By Awin 9s.
Logo For beginners By Dali Matthews 9S What is logo?
An introduction to Logo Mike Warriner Engineering Director, Google Note: This course is not an endorsement of Logo by Google. All views in this document.
Programmming Class Fall 2011 Sobhan Highschool Teacher: M.Taghizadeh.
Logo Programming Fall 2011 – Session 4 Programming Class Teacher: M. Taghizadeh Sobhan Highschool.
Hello, I am Vincent. I am a painter. I like to draw.
CONTROL SYSTEMS Control Systems A command is a directive that performs a specific task An argument is a variable that can be used by the function reveiving.
Programmming Class Fall 2011 – Session 2 Teacher: M.Taghizadeh
The Hare Raising Experience of Logo in the Classroom
Loops & Graphics IP 10 Mr. Mellesmoen Recall Earlier we wrote a program listing numbers from 1 – 24 i=1 start: TextWindow.WriteLine(i) i=i+1 If.
Logo Programming Fall 2011 – Session 7 Programming Class Teacher: M. Taghizadeh Sobhan Highschool.
If you say 8 color the ones in your picture purple. If you say 9 color the ones in your picture blue.
Algorithms Writing instructions in the order they should execute.
By Liam Lane How To Use MSW LOGO.
Monkey, Monkey In the Tree. Monkey, monkey in the tree Throw the yellow coconut down to me!
Logo for Beginners By Chris 9S.
Sight Word Practice and big down a come help.
Popcorn Words blue orange eight red purple nine.
Pablo Revelo. Birds: to 3birds pu home pd lt 80 pu fd 250 pd setpensize 2 setpc "white st bird pu bk random 100 bird pu lt 90 fd random 40 bird ht.
First of all – lets look at the window’s you are going to use. At the top you have a toolbar, with all your various tools you can use when customising.
Procedures and Variables Control Logo 1. What you will do today  You will make your code more efficient by using procedures  You will create shapes.
Turtle Graphics Lesson 2 1. There are 3 homeworks to complete during the six lessons of this unit. Your teacher will let you know when a homework has.
Search for it on your computer
LOGO WHAT IS IT? HOW TO USE IT AND HOW USEFUL CAN IT BE?
What is it? How to use it and how useful can it be?
Students, Learning, and Technology for the 21 st Century Young Scholars Program Summer 2007 Educational Technology Policy, Research and Outreach Davina.
Using the Python Turtle
Using Logo to develop logical thinking
LOGO BY Kaotip 9S.
LOGO 32 By: Xenon 9S.
Watch Pete the Cat here:
Young Scholars Program 2003
Learning to program with Logo
Colors/Color Words.
Algorithms and Flow Charts
Like.
I decided to put both the 9:00 and 10:00 class in one presentation to give you a little more information. Be sure to look at the information under notes.
Average Number of Photons
Powerpoint Review.
Colors/Color Words.
What Color is it?.
©
Institute for Entrepreneurship and Career Development (IECD)
C c Cc is for cat. © ©
©
Using Logo and Logic This presentation uses a version of Logo called StarLogo available through MIT. It can be downloaded for free and installed on your.
creating a ecosystems model in net logo
What color is it ? By 林小玉.
Help Gina and Tina color the numbers
Presentation transcript:

Using Logo and Logic Please use speaker notes for additional information!

StarLogo starts with 30 turtles on top of each other in the center of the screen (note that the black portion of the screen where the turtles are is somewhat truncated in this slide).

In this example, I keyed in the command fd 5 in the Turtle Command Center. FD 5 means that each of the turtles moves forward 5 steps. Each of the turtles moved out from the center by 5 commands.

I am issuing commands using the sequence structure - one command after another. I have now told the turtles to move forward another 2 steps. The two commands I have issued are: fd 5 FD 2

Commands (SEQUENCE): fd 5 FD 2 PD FD 2 In this example, I used PD for pen down and then told the turtles to take two steps forward. The result are lines drawn by each of the 30 turtles.

Commands: fd 5 FD 2 PD FD 2 PU FD 3 The last two commands I issued lifted up the pen so the turtle does not draw as it moves and then moved the turtles forward 3.

I did a File/Save Project As and seved the project in a directory/folder I created as movedraw.slogo.

Commands: FD 5 PD RT 90 FD 5 When I executed the sequence of commands shown here, I moved each of the turtles forward by 5, then I put the pen down, then I made the turtles all turn right by 90 degrees and then I made each of the turtles step forward 5 in the direction they were now pointing.

There are two tabs in the Control Center: one for turtle and one for observer - up until now we have been using the one for turtle. Now I am switching to the one for observer to change the number of turtles. Commands: ct crt 1 ct means clear turtles crt means create turtles. must be followed by a number to tell logo how many turtles to create.

SETC YELLOW FD 10 PD RT 60 FD 10 RT 90 FD 20 SETC PINK RT 90 FD 15 RT 20 FD 5 RT 10 FD 5 SETC BLUE FD 10 RT 90 FD 10 RT 90 FD 10 LT 90 FD 20 These commands are executed in sequence. If I changed the sequence, I would get different results.

PD SETC ORANGE FD 10 RT 90 BK 5 LT 90 SETC LIME FD 5 LT 90 FD 10 LT 90 PU FD 5 PD FD 5 I pasted a copy of the commands in the white area to show you the commands I used - the actual commands are hard to read.

PD SETC ORANGE FD 10 RT 90 BK 5 LT 90 SETC LIME FD 5 LT 90 FD 10 LT 90 PU FD 5 PD FD 5 JUMP 5 FD 10

Commands: PD FD 10 RT 90 FD 10 RT 90 FD 10 RT 90 FD 10 RT 90 Following this sequence, the turtle draws a square. Notice that I am repeating the sequence FD 10, RT 90. In the next slide I will use a loop to make this happen.

Commands: PD REPEAT 4 [FD 10 RT 90]

SETC LIME PD REPEAT 3 [FD 10 RT 120] RT 180 SETC PINK REPEAT 4 [FD 10 RT 90]

SETC LIME PD REPEAT 3 [FD 10 RT 120] RT 180 SETC PINK REPEAT 4 [FD 10 RT 90] Start Set color to lime Have not done 3 times FD 10RT120 Y Increase # times done by 1 RT 180 Set color to pink Have not done 4 times FD 10RT 90 Y Increase # times done by 1 End

COMMAND: IF COLOR = PINK [FD 10] I am using the default of 3 0 turtles and I only want the ones that are PINK to move forward. The code here is checking to see if the color is equal to PINK. If it is those turtles and only those turtles will move forward 10 steps. Note that the FD10 must be enclosed in square brackets because the syntax of logo requires it.

Commands: IF COLOR = PINK [FD 10] IF COLOR = YELLOW [PD FD 5]

Commands: IF COLOR = PINK [FD 10] IF COLOR = YELLOW [PD FD 5] IF COLOR = BLUE [FD 15 PD RT 90 FD 5]

Command: IFELSE COLOR = PINK [FD 10] [FD 5]

COLOR = PINK FD 10 FD 5 IFELSE COLOR = PINK [FD 10] [FD 5] YES NO

IFELSE COLOR = PINK [FD 10] [FD 5] IFELSE COLOR = YELLOW [FD 15] [FD 2] IFELSE COLOR = BLUE [FD 7] [BK 3] IFELSE COLOR = ORANGE [FD 4] [BK 2] IFELSE COLOR = PINK [FD 10] [FD 2] IFELSE COLOR = LIME [FD 5] [FD 1] IFELSE COLOR = PURPLE [FD 3] [BK 1] IFELSE COLOR = MAGENTA [FD 8] [BK 1] IFELSE COLOR = BROWN [FD 5] [FD 2]

IFELSE (COLOR = PINK OR COLOR = LIME) [FD 10] [FD 5]

COLOR = PINK FD 10 FD 5 COLOR = LIME YES NO FD 10 IFELSE (COLOR = PINK OR COLOR = LIME) [FD 10] [FD 5]

IFELSE (COLOR = PINK OR COLOR = ORANGE OR COLOR = LIME) [FD 10] [HT] IFELSE COLOR = ORANGE AND SHOWN? [FD 10] [FD 5]