Avery has six cookie.

Summary:

Students create and illustrate a Scratch activity that explains their thinking when solving a problem such as Avery’s Cookies: I have 6 cookies. Mary has 2.5 times as many cookies as I have. How many cookies does Mary have? They create a block and use input to generalize the problem so the activity will find the answer no matter how many of cookies there were at the start of the problem.

Materials:

Programing Skills with Scratch:

  • Make a Block from the More Blocks category
  • Generalize a script to answer any similar problem
  • Input a value or parameter into a block
  • Join and nest addition, multiplication, join, say blocks
  • Broadcast and receive a message
  • Scratch blocks used: (Make and define a block, say, change color effect, join, addition, multiplication, repeat, wait, forever, broadcast, receive a message, turn, move, point in direction)

Lesson:

  1. Open and discuss the Balloons Scratch activity.
  2. Press the stop sign by the green flag after the problem has been stated on the second backdrop and allow time for students to answer the problem before continuing on to see how the script solves the problem.
  1. Ask how many backdrops are used in this activity? (There are 3 backdrops. To see them click the Stage 3 A screenshot of the stage menu showing that the number of backdrops used is indicated by the stage, just above the new backdrop menu.backdrops shown below the stage. Then click the Backdrops tab. Notice two of the backdrops are used to state the problem.)
  2. Which sprite controls when the backdrops change? (Avery)
  3. Pass out copies of the Balloon Planning Page. Allow students to complete this page with a partner or individually. Collect, approve, and save these for students to use later.
  4. Open and discuss the Avery’s Cookies Scratch activity.
  5. Run the activity several times.A Scratch snippet that updates the variable Avery's cookies when the script starts.
  6. Change the input number from 6 to 10 in the Avery’s cookies block. Run the program again. Notice what happens.
  7. Change the input number and run the program several times. What is the advantage of having an Avery’s cookies block?

Teacher Information:

A key concept in computer science is generalization. When you use generalization you find one way to solve different versions of the same problem. If you generalize the problem, you only need to write one script to solve similar problems.

  1. Be sure students know how to create and define the new block Avery’s cookies to generalize the problem. (Watch the 1st screencast tutorial.)
    1. Click the More Blocks category.
    2. Click Make a Block.A screenshot of the interface students look at to create a new block in step 10. Click options, then click the button next to add number input.
    3. Type a name for this new block in the space by the blinking cursor. (Always give it a name that makes it clear what the block will represent or do.)
    4. Click Options, then click the oval after Add number input.
    5. Click inside the white oval to name the parameter. (Parameters are like variables except they belong to a particular script. Always give them a name that makes it clear what the block will represent or do.)
    6. Attach script to the new block to define it.
  2. Be sure students know how to use join blocks to join words with variables. (Watch the 2nd tutorial.)
  3. Be sure students know how to use join blocks with addition and multiplication blocks. (Watch the 3rd tutorial.)
  4. Be sure students know how to use the green flag to start a script. (Watch the 4th tutorial.)
  5. Pass out copies of the Generalize the Problem Worksheet. Allow time for students to work with a partner or individually to complete this worksheet. As they finish allow them to use the Scratch activity Avery’s Cookies to check their answers.
  1. Tell student they are going to create their own activity that will create a generalized solution for the problem they created on their Balloon Planning Page they finished in #5 above.
  2. Decide if you want students to work alone or with a partner.
  3. Allow time for students to create and illustrate their problem with Scratch.

Extensions:

  • Ask students to create a generalized script that will answer a problem such as this:

    I have 20 dollars.
    Matthew has 3 and 3/4 times as much money as I have.
    How much money does Matthew have?

Accommodations:

Common Core:

5.NF.4, 5.NF.4a, 5.NF.6

CT/CS Standards:

CT-Solve problems by decomposing them into smaller parts, Write programs that accomplish specific goals, Work with various form of input/output, functions
CS– Abstractions, Generalization, Algorithmic Design

Champaign Unit 4 School DistrictKenwood Elementary School: bright stars, bright futures
College of Education at IllinoisUChicago STEM EducationNSF
These lessons were written by Judy Rocke based on lessons developed at Kenwood Elementary School in the Champaign Unit 4 school district. Funding was provided by the National Science Foundation under award number 1542828. These lessons are intended to be used alongside the EM-4 curriculum.

Lessons prepared as web documents in Summer 2017. Contact us for updated lesson plan materials.