An example of a Multiplication Dance with 3 moves and 4 dances.

Summary:

Students use a partially completed project that asks how many times a sprite should move in one dance and how many times the sprite should perform the dance. When all the dances are complete, the sprite asks how many moves it made in all of its dances. In the example shown in this picture, the sprite had 3 moves in each dance and danced 4 times. 3 x 4 = 12. The sprite made 12 moves total in its 4 dances.

Materials:

Programming Skills with Scratch:

  • Open, remix, save, and share a Scratch project
  • Complete a partial script
  • Set a variable to the answer of an ask and wait block
  • Nest repeat blocks inside if_ then_ else blocks
  • Nest a less than block with a variable as an input into an if_ then_ else block
  • Nest a multiplication block with variables and an answer block into an equal block
  • Change a sprites position using a change x by block and a go to x: y: block
  • Scratch blocks used: (less than, multiplication, clear, stamp, set variable to, ask and wait, answer, repeat, repeat until, if_ then_ else, wait, change color effect by, say, switch costume to, next costume, go to x: y:, change x by)

Lesson:

  1. Open and discuss the completed Dance and Moves link.
  2. Try the activity several times using different numbers for the number of moves and the number of dances.
  3. Explain that in this project the script is divided into 4 main parts.
  4. Pull the script apart to look at part one shown below. Discuss what each block does. Each are explained below.
  5. Allow time for students to complete Scratch Blocks Part 1 with a partner or alone.A screenshot of the four separate Scratch blocks. The go to block tells the sprite where to start. The clear block clears all stamps. (try removing this from the script. All the stamps will remain on the stage when the green flag is clicked.) The switch costume to block is used to start the sprite in its standing costume.
  6. Pull the script apart and look at part two shown below. Discuss what each block does. Each are explained below.
  7. Allow time for students to complete Scratch Blocks Part 2 with a partner or alone.A Scratch Snippet showing how to use ask and set blocks to assign starting values to variables.
    1. Blocks 1 and 3 asks for input about the number of dances and the number of moves in each dance.
    2. Blocks 2 and 4 set already created variables to the number of moves and the number of dances given as the answer to the ask and wait blocks.
  8. Pull the script apart and look at part three shown on the follow page. Discuss what each block does. Each are explained below.
  9. Allow time for students to complete Scratch Blocks Part 3 with a partner or alone.A Scratch snippet showing how to conditionally execute the dancing loop only if the variable number of dances has been assigned a value less than 8.
    1. Block 1 is a conditional block. If the number of dances is less than 8 then the sprite will dance. Else, if the number of dances is 8 or greater the sprite will say, “The number of dances must be less than 8.” Try changing this input to allow for more than 8 dances. Change 8 to 10. Try the script and ask the sprite to dance 9 times. Notice that the sprite does not have room on the stage to dance more than 7 times.
    2. Block 2 tells the sprite to repeat the dance the number of dances given as the input in the ask and wait block in part 2 of the script.
    3. Block 3 tells the sprite to do the number of moves given as the input in the ask and wait block in part 2 of the script.
    4. Block 4 tells the sprite to wait .4 of a second between each move.
    5. Block 5 tells the sprite to stamp.
    6. Block 6 tells the sprite to change colors. This helps you see each of the move the sprite makes. Try taking it out. Without this block, it is difficult to see each of the moves.
    7. Block 7 tells the sprite to switch to its next costume.
    8. Block 8 moves the sprite 75 steps between dances. Without this the sprite would dance all the dances in the same place. Try removing this block. Notice it is not easy to tell how many times the sprite danced.
    9. Block 9 tells the sprite what to say if there are too many dances requested. Remember too many dances will not fit on the stage area.
  10. Pull the script apart and look at part four shown on the following page. Discuss what each block does. Each are explained below.
  11. Allow time for students to complete Scratch Blocks Part 4 with a partner or alone.A Scratch snippet used to reset the sprite's position and prompt the student for how many total moves were in all of the dances. The prompt is repeated until the correct answer is given.
    1. Block 1 moves the sprite to a new location after it has finished all of its dances.
    2. Block 2 changes the sprite back to its original costume.
    3. Block 4 ask, “How many moves did I have in all my dances?” This problem is solved with a multiplication problem. Multiply the number of moves in each dance by the number of dances in all. In the example shown at the beginning of this lesson, there were 3 moves in each dance and 4 dances. 3 x 4 = 12. So the answer for that example is that the sprite had 12 moves in all of its dances.
    4. Block 4 uses variables to show the multiplication steps. Variables are used because the input to the ask and wait blocks in part 2 could be any number. The answer to the question in block 3 must equal the number of moves times the number of dances. This block says that the answer to the question in block 3 must be correct before the sprites does the step shown in block 6.
    5. Block 5 tells the sprite what to say something each time the answer is incorrect. The sprite will say, “No, that is not correct. Try again?” It repeats until the answer is equal to the number of moves times the number of dances.
    6. Block 6 tells the sprite to say, “Yes.” This will only happen when the input given in block 4 equals the correct answer.
  12. Decide if you want students to work with a partner or individually.
  13. Ask students to open, remix, and compete the partially completed link to Dances and Moves Scratch activity (student version)
    • This is a partially completed script.
    • All the blocks needed to complete the script are already shown in the script area.
    • Student should use the worksheets they completed for parts 1, 2, 3, and 4 to complete the script.
    • Students should test their script when they are finished.

Extensions:

  1. Ask student to add sound to their project. The music should play while the sprite is dancing.A screenshot shot showing the sounds menu tab. The Sounds tab is the third tab from the left, the choose sound from library button is to the far left in the new sound menu, the play button is to the far left next to the stop button and above the microphone volume slider.
    1. Click the Sounds tab.
    2. Click the horn icon to open the Sound library.
    3. Click on a sound.
    4. Click the triangle to hear the sound.
    5. Use blocks from the SOUND category to play the sound in a sprites script area.
  2. Ask students to open the link to the Dance Complete Teacher Demo project
    • This project uses conditional statements to control the sprite. Student either clap their hands or shake their head to make the sprite dance and move.A dialogue box indicating a program is attempting to us the camera and microphone. The allow button is located on the bottom left of the dialog box next to the deny button.
    • Students will have to click allow if this message appears on their screens. This allow Scratch to use the computer’s camera and microphone.
    • Allow time for students to explore this project. Ask them to look for a if_ then_ , else conditional. Ask them to explain that conditional to a partner.

Optional Unplugged Activity:

Common Core:

3.OA, 3.NF, 3.MD

CT/CS Standards and Skills:

CT—Decomposition,
CS– write programs that accomplish specific goals, use sequence in programs, work with various forms of input/output, Conditional (if_then, else)

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.