Starting up
- Download and install Scratch (see instructions from Scratch Introduction lab)
- On Lab computers, you cannot install in the regular "Program Files" directory; instead install either on your K: drive, or in C:\Temp
- Files can be downloaded from one of three places: the class network directory on the Q: drive (similar to your K: drive); or directly from the Scratch Website at MIT
- Start a lab report document with a title page. Create a section for each of the tasks below, where you'll insert screenshots.
Notes:
- To clear the canvas after drawing something, click on "Stage," then "Pen," then "clear."
Part 1: Drawing
Use Scratch to draw the following figures. In each case, move the Scratch Kat away from the figure when complete. Use only pen up, pen down, move, and turn.
- Square
- Triangle

Submit: screenshots and the Scratch code file.
Part 2: Repetition
Use the Repeat control in Scratch to draw the following figures. In each case, move the Scratch Kat away from the figure when complete. The repeat control allows you to repeat a sequence of instructions a specified number of times (e.g, drawing a square involves four repetitions of [draw_a_line+turn_90_degrees].)
- Square
- Rectangle
- Pentagon
Submit: screenshots and the Scratch code file.
Part 3: Variables
- In the "Sensing" area, use the question control to ask "What's your name?" Then use the <answer> to make the Kat say "Hello, name" (where name is whatever the user types in). [Hint: to do this, you must use the "Join" operator -- see this link ; scroll down to where it shows code for saying "I am a cat" and "Good night, moon"]
- In the "Variables" area, use a variable to draw four triangles of increasing size: 10 steps, 20, 30, and 40. There should be 10 steps of space between each of the squares. Use the following logic:
- Begin by creating a variable called 'size' and setting the value to 10;
- Repeat 4 times:
- draw a triangle of size steps
- move past the triangle you just drew (hint: how many steps will you have to take to get to the end of the current triangle? then how many more steps?)
- increase size by 10 (note: let's rething the previous step -- since we're increasing size by 10 here, what would happen if we switched the order of the last two?
- Use repetition and a variable to draw five squares of increasing size, each double the size of the previous. The first square will have to be pretty small in order for all five to fit. (Hint: if *size* is the size of the first square, by how much should it increase for each subsequent square?)

Submit: Screenshots and the Scratch code.
Links:
