Starting up

Notes:

  1. 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.

  1. Square
  2. Triangle

scratch square scratch 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].)

  1. Square
  2. Rectangle
  3. Pentagon

Submit: screenshots and the Scratch code file.

Part 3: Variables

  1. 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"]
  2. 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?
  3. 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?)

Five squares of increasing size in Scratch

Submit: Screenshots and the Scratch code.

Links:

Scratch Guide

Copyright © 1999-2010| Gene Rohrbaugh | Privacy Statement