A parameter is like a fill-in-the-blank for a procedure. We can do this by using something called a "parameter".
#Draw atriangle msw logo youtube how to
Let's teach the turtle how to draw squares of any size. Right now, the turtle only knows how to draw squares that are pixels long on each side. We are going to create a procedure that draws squares of any size.Īnd we are going to create a procedure that draws other shapes. In this lesson, we are going to improve upon this procedure. We ended up with a procedure that looks like this. Please send Transum pictures of anything magnificent you produce with this application or describe your programming.In the first lesson, we taught the turtle how to draw a square.
#Draw atriangle msw logo youtube code
This version of Logo Logo Interpreter has been adapted from source code kindly made available by Joshua Bell and other contributors. Notice in the top right corned of the input box there is a small arrow.Ĭlick that to enlarge the input box and transform it into a place where you can type in a number of commands that won't execute until you press the Run button. Pagtaas ng presyo ng bilihin sa palengke on the information tab above to see details of the Levels and a very useful 'history' feature which records all of the commands you type into Logo. You can use the snipping tool to capture pictures of your work which you can paste into your notes. Click the blue buttons to move through the challenges. You can find in the left panel above instructions and a series of challenges. It is recommended that you do Level 1 before starting on Level 2 or Level 3. ONLINE LOGOĬlicking on commands will send them back to the input box so you can either run them again or modify them before running them.Īnswers to this exercise are available in this panel when you are logged in to your Transum account. More on Angles including lesson Starters, visual aids and investigations. History - See all of the commands you have typed into Logo this session. Level 3 - Use Logo procedures to draw more complex diagrams. Level 2 - Some more Logo commands to draw more complex shapes. Level 1 - Basic use of Logo commands to draw shapes. Many other online mathematical activities are available free at Transum Software. Use wrap to make the turtle reappear on one side of the screen if it disappears off the other. Example: rt random 1 rotates the turtle right though a random number of degrees.
If you type pent 70 you will see a pentagon with sides of length Outputs a random number between the two given numbers.
This procedure includes a variable so it will draw a pentagon of any size. However the turtle will not draw anything until you type the word triangle.
Running the code above teaches the computer how to draw a triangle.