Students: do this first!
  1. Open a web browser and go to www.cca.ac
  2. Login with your codeCampus username and password
  3. Choose 4.1.1 - Multiplication Word Problems for the lesson and starter project
Overview

This project will let us animate our very own multiplication word problems. We will use sequence to create a step by step animation.

Planning

  1. How many sprites are in this project?
  2. How many backdrops?
  3. What is the functionality, i.e., what happens?

Step 1: Initialize (start) the project

  1. Click on the Events tab.
  2. Drag out a “When Green Flag Clicked” block.

Step 2: Set the starting costume

There are two costumes in our sprite. Let's make sure it starts with the correct one.

  1. Click on the Looks tab.
  2. Bring out a “switch costume to [ ]” block.
  3. Attach it to the "when green flag clicked" block.
  4. Click on the dropdown arrow, and select "buildings" from the menu.

Test your work

Click on the green flag. What happens? Why?

Step 3: Set the starting position

We want our sprite to start below the stage, then glide upwards.

  1. Click on the Motion tab.
  2. Bring out a “go to x:0 y:0” block.
  3. Attach it to the "switch costume" block.
  4. Next to "y:", change the number to -200.

Step 4: Glide upwards

We want our sprite to start below the stage, then glide upwards.

  1. Bring out a “glide 1 secs to x:0 y:0” block.
  2. Attach it to the "go to x:0 y: -200" block.
  3. Next to "y:", change the number to 0.

Test your work

Click on the green flag. What happens? Why?

Recap

  1. The "switch costume" block sets our sprite to the correct costume.
  2. The "go to x:0 y: -200" block sets our sprite below the bottom of the stage.
  3. The "glide 1 secs to x:0 y:0" block makes our sprite glide upwards by 200 steps.

Step 5: First word problem

  1. Click on the Looks tab.
  2. Bring out a “say 'Hello' for 2 seconds” block.
  3. Attach it to the bottom of the code.
  4. Change the text from "Hello!" to: "An office building is 35 meters tall. The office building across from it is three times taller."

Step 6: First word problem

Now we will ask a question to the person using our program.

  1. Click on the Sensing tab.
  2. Bring out a “ask, 'What's your name?' and wait” block.
  3. Attach it to the bottom of the code.
  4. Change the text from "What's your name?" to: "How big is the second office building?"

Test your work

Click on the green flag. Then, try typing something into the box that appears at the bottom of the screen. What happens? Why?

Recap

  1. The "say" block shows our word problem to the user.
  2. The "ask" block asks a question. It allows the user to type in an answer.

Step 7: First word problem

Now, let's show the correct answer.

  1. Click on the Looks tab.
  2. Bring out a “say 'Hello!' for 2 seconds” block.
  3. Attach it to the bottom of the code.
  4. Change the text from "Hello!" to: "If you answered 105 meters, you are correct!"

Step 8: Glide downwards

It is time for the second question. So, let's make our original costume go away.

  1. Click on the Motion tab.
  2. Bring out a “glide 1 secs to x:0 y:0” block.
  3. Attach it to the bottom of the code.
  4. Change the y value to -200.
  5. What do you think will happen when we press the green flag? Will the sprite move up or down?

Step 9: Change the costume

  1. Click on the Looks tab.
  2. Bring out a “switch costume to cheesypuffs” block.
  3. Attach it to the bottom of the code.

Step 10: Glide upwards again

Now that the sprite has moved below the bottom of the stage, it is time to bring it back up.

  1. Click on the Motion tab.
  2. Bring out a “glide 1 secs” block.
  3. Attach it to the bottom of the code.
  4. Change the y value to 0.

Test your work

Click on the green flag. What happens? Why?

Preparation

The cheesy puffs costume shows an equation with a missing number. The missing number is represented by a picture of cheesy puffs. The person using our program will have to figure out what number the cheesy puffs represent to solve the equation.

Step 11: Second word problem

  1. Click on the Looks tab.
  2. Bring out a “say 'Hello!' for 2 seconds” block.
  3. Attach it to the bottom of the code.
  4. Change the text from "Hello!" to: "The cheesy puffs represent a number."

Step 12: Second word problem

Now we will ask a question to the person using our program.

  1. Click on the Sensing tab.
  2. Bring out a “ask, 'What's your name?' and wait” block.
  3. Attach it to the bottom of the code.
  4. Change the text from "What's your name?" to: "What must the cheesy puffs be equal to to solve the equation?"

Step 13: Second word problem

Now, let's show the correct answer.

  1. Click on the Looks tab.
  2. Bring out a “say 'Hello!' for 2 seconds” block.
  3. Attach it to the bottom of the code.
  4. Change the text from "Hello!" to: "If you answered 5, you are correct!"

Test your work

Click on the green flag. What happens? Why? Is everything working correctly? Check your code against the finished code to make sure you got everything.

Recap

  1. What does each block of code do?
  2. Does the order of the code matter?
  3. What would happen if you switched the blocks into a different order?

Good job! Time to submit your work.

  1. Click "remix", then click "share"
  2. Copy the Scratch project link
  3. Go back to your student dashboard
  4. Make sure you have selected the correct lesson name
  5. Paste the Scratch project link in the last box
  6. Click "Submit to teacher"