Friday, July 22, 2005

Computer Programming for fun!

Time to learn a bit about computer programming!! Sound daunting? We're going to start learning the basics of computer programming by commanding a stoopid turtle (or triangle!) around the screen!

Open up the Turtle Graphics WebPage and after the intro message displays, type your first three programming commands (in the command window):
  • clearscreen
  • showturtle
  • pendown
Now try the following:
  • forward 50
  • forward 100
  • right 45
  • forward 50
Get the idea? Clear the screen again, and see if you can come up with a program for the following:
  • A Square
  • A Triangle
  • A house
  • A hexagon
  • A star (tricky!)
  • Something from your own imagination!
Have a look at the code you created for your square... what happens if you change the sequence of your commands? Try it out!

0 Comments:

Post a Comment

<< Home