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.

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

How to calculate the area of a circle.
Find the circumference of the following circles: (Write the formula that you will use.)
Objects in Alice: Positioning and Moving Them By Jenna Hayes under the direction of Professor Susan Rodger Duke University July
First things first – open SketchUp. You may be asked to choose a ‘Template’ For everyday use, choose the Simple Template – Meters Do not choose the Template.
Computer Science 1000 LOGO I. LOGO a computer programming language, typically used for education an old language (1967) the basics are simple: move a.
Using Logo and Logic Please use speaker notes for additional information!
Logo Lesson 4 TBE Fall 2004 Farah Fisher. Prerequisites Create basic and complex shapes using Logo procedures Create Logo procedures that use variables.
Logo Lesson 3 TBE 540 Fall 2004 Farah Fisher. Prerequisites for Lesson 3 Before beginning this lesson, the student must be able to… Use simple Logo commands.
Logo Lesson 2 Logo Procedures
Area/Perimeter Of Combined or Partial Shapes
B.A. (Mahayana Studies) Introduction to Computer Science November March Logo (Part 1) An introduction to Logo: drawing, moving,
10 Suggestions for Improving your Scientific Talks Larry Fagan.
Datasheets II: Sum, sort, filter, and find your data Overview: Sum it up, and more Access 2007 makes it easier than ever to perform math functions on your.
EXAM TIPS What to do and What not to do!. ALWAYS SHOW YOUR WORKING OUT Most questions are worth two or more marks, so even if you make a slip and get.
Surface Area Lesson 8.7 – Surface Area HW: 8.7/1-10.
Tutorial for Arrays and Lists By Ruthie Tucker. Description This presentation will cover the basics of using Arrays and Lists in an Alice world This presentation.
Area (geometry) the amount of space within a closed shape; the number of square units needed to cover a figure.
Click your mouse for next slide Flash – Introduction and Startup Many times on websites you will see animations of various sorts Many of these are created.
Popcorn Prisms Surface Area & Volume. To do the next two lessons, you need to know... That a prism is a 3-dimensional shape with 2 identical parallel.
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.
Microsoft ® Office Access ® 2007 Training Datasheets II: Sum, sort, filter, and find your data ICT Staff Development presents:
Getting Started With AutoCAD ENGR 2 Week #1 Laboratory.
A SIMPLE COMPUTER LANGUAGE LOGO. LOGO Introduction Logo is the simplest programming language. It.
Agent P, I have been hearing some rumours about a Python Turtle.
TURTLE GRAPHICS IP MR. MELLESMOEN. LOGO IN THE 1970’S THERE WAS A SIMPLE BUT POWERFUL PROGRAMMING LANGUAGE CALLED LOGO THAT WAS USED BY A FEW.
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.
Logo Programming Fall 2011 – Session 4 Programming Class Teacher: M. Taghizadeh Sobhan Highschool.
Calculating sector areas and arc lengths. Look at these relationships. What do you notice? Radius = R π R/2 R π 3 π R/2 2 π R Degrees Circumference.
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
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
1.To begin click: File, New, then select Design 2.Draw a circle, then use the dimension tool to set it’s size to 84 diameter or 42 radius. 3. Next draw.
Variables. Todays Lesson  In todays lesson you are going to:  Learn to use variables  Learn to ask for user input  Learn to save the users response.
The Measure of an Angle measure an angle In geometry, we measure an angle by the smallest amount of rotation about the vertex from one side to the other.
RADIAN THE UNIT CIRCLE. REMEMBER Find the circumference of a circle that has a radius of 1. C = 2πr C = 2π(1) C = 2π.
Design Studies 20 ‘Show Off’ Project How to make a computer monitor In Google Sketchup By: Liam Jack.
Alice Learning to program: Part Two Writing Your Own Methods by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University,
Graphics Concepts CS 2302, Fall /17/20142 Drawing in Android.
By Liam Lane How To Use MSW LOGO.
Tutorial for Arrays and Lists. Description This presentation will cover the basics of using Arrays and Lists in an Alice world It uses a set of chickens.
Week 6. Statistics etc. GRS LX 865 Topics in Linguistics.
HOW THEY WORK AND WHAT THEY DO. Jay Jay 9S. A control program is a type of programming that allows you to control systems. Control programs are used in.
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.
Algebra Tiles How to sort, making the equation smaller and easier: 2x+1x+3 to 3x+3 How to make zero pairs, 1x+-1x=0, then take them away from the equation.
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.
Functions. functions: a collection of lines of code with a name that one can call. Functions can have inputs and outputs.
Do Now:. Circumference What is circumference? Circumference is the distance around a circle.
Search for it on your computer
LOGO WHAT IS IT? HOW TO USE IT AND HOW USEFUL CAN IT BE?
Learning to use a ‘For Loop’ and a ‘Variable’. Learning Objective To use a ‘For’ loop to build shapes within your program Use a variable to detect input.
Using Logo to explore spiral patterns. Paul Broadbent Spiral patterns This is a (1,2,3) spiral path. It repeats lines of three.
SOLVING ALGEBRAIC EXPRESSIONS
Using Logo to develop logical thinking
LOGO BY Kaotip 9S.
LOGO 32 By: Xenon 9S.
Intro CS – Loops & Creating Shapes
L.O.2 To understand and use angle measure in degrees,
Evgeniya Gushchina EPAM e-kids volunteer computer science teacher
Agent P, I have been hearing some rumours about a Python Turtle.
Learning to program with Logo
Google SketchUp – How to
Go to =>
Go to =>
Mr Watson’s Introduction to Spreadsheets
Lesson One: Objects in Alice: Positioning and Moving Them
By the end of the lesson, I want you to be able to say…
Presentation transcript:

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 your procedures. Under that you have the large window, called ‘Graphics’ where you can see what effect your commands are having. Underneath that you have the ‘Listener’ where you actually give your commands. Talking of commands, lets have a look at a few of the more basic ones, and get your ‘turtle’ doing something.

The very first, most used commands you will need are incredibly simple. FD ‘X’ commands your turtle to go forwards by value ‘X’ RT ‘X’ commands your turtle to turn to the right by ‘X’ degrees. Lets do something simple, how about a square. Type fd 50 and then rt 90 four times. Your listener should look like this after you have finished.

As you can see, this method, while hard to get wrong, takes quite a lot of typing to get any sort of shape, imagine trying to draw a circle like this. There is a far easier way to do this however. Type CS to clear your screen, so we can start on something slightly more advanced. Now, lets make a circle. Unless you want your hands to fall off though, we are going to have to find a slightly faster way to do this. Lets make a procedure.

Now, lets decide what to call your procedure. We’re going to draw a circle, so lets call our procedure ‘circle’. Type edit circle This should open up a new window, like this. It should be titled Circle, and start with TO CIRCLE. Now, lets make it do something shall we. We want it to draw a circle, without having to do lots of typing. The answer to this is the Repeat command.

As the name suggests, the repeat command repeats whatever you tell it to. What we are going to do is tell it to draw a circle. So, type: repeat 360 [fd 1 rt 1] This tells the procedure to repeat 360 times the commands fd 1 then rt 1. So the repeat command can be summed up like this: repeat X [Y] Which means repeat command ‘Y’, ‘X’ times. Press F2 to leave the editor. You should see ‘circle defined’ in your listener.

Now, lets test our procedure. Type circle into your listener, and press enter. You should see this. To vary the size of your circle, change how much the turtle moved in the FD command in your procedure. However, that takes time, and you aren’t sure of what it will look like until you have done it. Lets speed this up shall we. Lets use variables.

A variable is something we can change in the procedure, without having to edit it every time. Lets call our variable ‘X’. So, open your procedure with edit circle, and lets change it around a bit. Where it says, TO CIRCLE, change it so it says TO CIRCLE :X. This means that when you type circle, you must also give a value of X. Now, change your procedure, so is says repeat 360 [fd :X rt 1] Now you can vary how far the turtle moves every repeat. Press F2, and try typing circle 2. You should see this.

Now, with variables, a whole new world of possibilities has opened up for us. If we put our minds to it we could make any shape we could ever imagine. You can have as many variables as you like in a procedure, for example you could have a procedure called SHAPE :X :Y :Z Or any other combination. Now lets make a procedure that will make a shape with a number of sides :X and a side length :Y As you may know, the exterior angle of a shape is 360/No. of sides. So our procedure would look something like this. First, lets call it POLYGON. 90 ⁰ 120 ⁰ 30 ⁰

Now, type edit POLYGON into your listener. We need the top to say TO POLYGON :X :Y Then, type repeat :X [fd :Y rt 360/:X] This lets us set the number of sides, and the length of each side. Lets give it a go shall we? Lets start with a square, of side length 50, and of course with 4 sides. You should get this, if not, go back and check for any typo's in your procedure. Now, one more thing before we get onto some really hard stuff.

With all the circles we’ve drawn, we have set the circumference, not the radius. Lets see if we can try and make a procedure where we set the radius, of the circle, and the program works out the rest. So first, we’re going to need a variable, :X, and the value of pi. Logo takes this value to 3.14, which is close enough for our means. Lets call our procedure CircleR – meaning it is a circle where you set the radius. So, type ‘edit circler’ in your listener, and type this: Give the procedure a variable :X Tell it to repeat 360 times: forward 2*π*:X then right turn by 1. Remember, to multiply use * not x. R Circumference Circumference = π*R*2 π*D D

So, with all that done, does your procedure look like this: TO CIRCLER :X REPEAT 360 [FD ((PI * 2 * :X) / 360) RT 1] END If so – well done, you have made a procedure where the value :X is the radius, and the circumference is done by Logo. Try is out, and you should get this, set :X to 50. This is useful for making a drawing significantly more precise. Now, lets move onto something even better – spirals!