Create a folder in your account called “Logomation”
Open logomation
Type in the following code:
// make the sign of Zorro
Forward 100
Right 125
Forward 100
Left 125
Forward 100
Click on the Go button to run the program.
Return to the code and add this at the bottom:
// move to the right
Up
Forward 200
Down
// mark it correct
Right 55
Forward 50
Left 95
Forward 120
Run the program by clicking Go
Pixels and Degrees
- The number after Forward is in pixels
- The number after Right or Left is in degrees
Comments
- The line beginning with “//” is a comment
- A comment does not do anything
- A good comment does inform anyone reading the code the purpose of the next few lines of code. It doesn’t try explain how the code works. Rather in announces the purpose of the next few lines of code—the goal you hope to reach.
- A good comment is a title that is put over the code to describe its purpose not a footnote that follows and explains the code.
Save the demo called Zorro
On your own #1:
Square and Triangle :
draw a square and a separate triangle including 2 or 3 good comments