6.7 Shape Maker Day 1

Ask user to input the "number of sides" of a shape, and then create that shape!

Use make-a-block with parameter "number of sides" to create a shape that the the user asked for.

OBJECTIVES:




OBJECTIVES: By the end of this lesson, students will:

    • realize that if you know how many sides a shape has, you can construct it with the pen tool.

    • observe that you can generate many outcomes, by changing the input parameter to a block.

    • allow user to input number of sides.

TEACHER RESOURCES:

Standards

    • CSTA 2-AP-13: Decompose problems and subproblems into parts to facilitate the design, implementation, and review of programs.

    • CSTA 2-AP-14: Create procedures with parameters to organize code and make it easier to reuse.

CSTA

DO NOW:

Students watch the video Aracely (3:10) then

Could Computer Science skills help Aracely get a well paying job?

What does Aracely want to do with technology.

Teacher Guidance

  • Yes, Computer science offers a well paying job. Aracely would like to use technology to change the world and make it a better place.

Mini-Lesson (5-10 minutes)

Mini-Lesson (5-10 minutes)

Today students will make a Shape block with an input parameter of "Number of sides".

  • Shape(4) draws a shape with four sides - a square.

  • Shape(3) draws a shape with three sides - triangle.

Project (20-30 minutes)

Direct students to student site, with handout.


Step 0: ( Optional) Change sprite to a pencil sprite, change it's origin to the pencil tip.

Screen Shot 2017-05-26 at 6.49.58 AM.png
Screen Shot 2017-05-26 at 6.50.12 AM.png

Students should explore making different shapes using this formula:

Turn angle is equal to ( 360 / number of sides)

Close-Out (5 minutes)

Close-Out (5 minutes)

    • Did you notice your could have a lot of shape outcomes from a small amount of code? This is the power of using input parameters!

      1. Why do you think it is helpful to use Make-a-Block?

      2. The pen tool paints pixels directly on stage. What is the command to erase pen tool drawings?

Potential Responses

1: It makes code readable;

  • Scripts become smaller, (instead of duplicating code, just call the block again);

  • Passing arguments to Make-a-Block allows for more outcomes, making it very flexible.

2: Clear command.