Problem solving and first programs · 5 / 5

Build and Show: a moving story

Today you will show what you can do without help, then plan, build and show a short animated story in Scratch.

builders 120 min

Build and Show: a moving story

Today you will show what you can do without help, then plan, build and show a short animated story in Scratch.

Teacher block: Akello asks Ocen to show her

It is Friday. Akello says to Ocen:

Akello says: On Monday you said the school trip was too big. Show me what you can do now.

Ocen takes a pencil. He cuts the trip into five small problems. He draws a flowchart with a loop. He writes 13 in binary on the ground with five bottle tops: 01101.

Ocen says: And I can tell a cat to walk a square.
Akello says: Then tell it a story.

What can you do today that you could not do on Monday?

Teacher block: Recall from the week

Warm up your brain. Show with your fingers.

Warm upQuestion 1 of 4

What is one binary digit called?

Teacher block: Checkpoint on paper

Work alone. Quietly. Write short answers. If you do not know, write what you think.

Checkpoint: problem solving and first programsName:

Name:

1. Write the four steps for solving a problem, in order.

2. What is 01101 as an ordinary number?

3. Write 22 in binary, with five digits.

4. Which flowchart shape is used for a decision?

5. What is the next number? 3, 6, 12, 24, …

6. Follow this flowchart.

Box Shape Words inside Arrow goes to
1 Oval Start 2
2 Rectangle Set n to 1 and sum to 0 3
3 Diamond Is n greater than 3? Yes to 6. No to 4
4 Rectangle Add n to sum 5
5 Rectangle Add 1 to n back to 3
6 Rectangle Say sum 7
7 Oval End none

What does it say?

7. On a computer, A is 65. What number is stored for D?

8. A Scratch script says: repeat 6, move 15 steps. How many steps in all?

9. This script should draw a square: repeat 4, move 100 steps, turn right 45 degrees. What is wrong, and what must change?

10. The path is Documents/akello/projects/week2/plan.txt. How many folders is the file inside?

Teacher block: Mark it together

Take a different coloured pencil. Mark your own paper while we read the answers. Put a tick for each answer that is right.

Where you are wrong, write the right answer next to it. A wrong answer is a bug. We fix it.

Do not compare marks with others. The mark is for you.

Teacher block: Wonder, a windmill from scrap

William Kamkwamba grew up in a village in Malawi. When he was 14, there was a hunger in his country, and his family could not pay for his school. He did not stop learning. He went to a small library and found a book about energy with a picture of a windmill.

He wanted electricity for his home. So he planned, and he built a windmill from scrap, including parts of a bicycle, and wood from trees. It made electricity to power lights in his family’s house.

Before he built anything, what did he do?

Teacher block: Plan my moving story

Plan on paper first. After the break you build it in Scratch.

Your story needs two sprites, at least one loop (repeat), and at least one event (for example the green flag, a key, or a sprite clicked). Keep it short: about 10 seconds.

My story planName:

My name:

1. My story is called:

2. My story in one sentence:

3. Sprite 1 is: Sprite 2 is:

4. The event that starts each sprite (green flag, a key, or a click):

Your teacher will read this answer. Choose who is learning (top of the page) to save this answer.

5. The loop: what repeats, and how many times?

6. Draw the flowchart for Sprite 1 in the box below. Use oval, rectangle, diamond and arrows.

Your teacher will read this answer. Choose who is learning (top of the page) to save this answer.

7. My prediction: where will Sprite 1 be at the end?

8. One thing that could go wrong, and what I will check:

Here is a model plan for Sprite 1, the cat in “Welcome to the market”. The loop has a counter, so you can see how many times it goes round.

YesNoStart (green flagclicked)Go to x minus 150, y0Say Hello for 2secondsSet count to 0Move 10 steps, nextcostume, wait 0.2secondsAdd 1 to countIs count 10?Say I am here for 2secondsEnd

Check stations: practical check, one at a time

Each of you does the practical check alone, on the Lenovo. Your teacher watches and writes. He does not help. Wait for your name on the board. While you wait, finish your plan and practise your talk on paper.

The practical check. Do these 6 things alone:

  1. Switch on the laptop. Wait for the screen. Sign in.
  2. Open Scratch.
  3. Build this script: when green flag clicked, repeat 3, and inside it move 50 steps and say Hi! for 1 seconds.
  4. Click the green flag. Say aloud where the cat is now on the x line. (It is 150.)
  5. Save it: File, then Save to your computer. In the save box, go to Documents and make a new folder called check2- and your name (Windows: New folder. Mac: New Folder). Open it and save the project as check2. Close Scratch.
  6. Shut down the right way.
Practical check record (Builders)Name:

Date:

Write A (alone), H (with a hint), or N (not yet).

Step Learner 1 Learner 2 Learner 3 Learner 4
Name
1. Switch on and sign in
2. Open Scratch
3. Build the script, with the move inside the repeat
4. Run it and say where the cat is (x 150)
5. Save as check2 in a new check2 folder
6. Shut down the right way

Notes for next week:

Laptop block: Task card, build my moving story

With no teacher. Read the card. Follow it. Ask your partner first.

You start when your practical check is done and a laptop is free. The Lenovo is free after the last Builder check. The MacBook is free after the Pioneers’ checks.

Your pair: one driver and one navigator. Swap at the half. Rule: do not change another person’s project.

Your job: build the story from your paper plan. At 2:00 you show it.

  1. If the laptop is off, switch it on. Open Scratch. (Windows: Start, type Scratch. Mac: Command and Space, type Scratch.)
  2. Add the second sprite. Under the stage, in the bottom right corner, hover over the round blue button Choose a Sprite. Pick one from the library, or choose Paint to draw your own.
  3. Click a sprite in the sprite pane to select it. Build Sprite 1’s script from your plan.

4. Click the second sprite. Build its script. 5. Check your list:

  1. Predict first. Where will Sprite 1 end? Then click the green flag. Did you guess right? If not, find the bug and fix it.
  2. Save. File, then Save to your computer. Choose your week2 folder inside projects. Name it moving-story- plus your name. The file ends in .sb3.

Swap at the half. The other learner builds their own story.

At 1:58: save everything. Close Scratch if the Show does not need it. Wipe the keys. Leave the laptops on for the Show.

Stuck? Before you ask anyone, try three things:

  1. Read the step again, slowly, out loud.
  2. Ask your partner: “What do you see? Which sprite is selected?”
  3. Look at your paper plan and flowchart. Check each block against it. If it still fails, write the problem on paper and carry on.

Laptop block: Challenges

Choose one level, if you have time on a laptop. If not, do it on paper.

Bronze

Add a backdrop (the round button in the Stage area, to the right of the sprite pane, is Choose a Backdrop) and one more say block. Run the story from the beginning. Save.

Silver

Make the two sprites talk to each other. In Sprite 1, add the Events block broadcast message1 at the end. In Sprite 2, start a script with when I receive message1 and a say block. Run it. Save.

Gold

Add a second loop to your story, for example a sprite that draws a shape with the pen or walks back. Write a trace of the loop on paper: the values after each round. Then write one thing you would change if you had one more day.

Build and Show, everyone together

Build and Show. Each of you speaks for one minute.

  1. Say the name of your story.
  2. Show it on the big screen. Click the green flag.
  3. Point to the event block and to the loop. Say what the loop repeats.
  4. Tell us one bug you found and fixed.

When we listen, we give two things: One thing that was clear. One question.

Say: “One thing that was clear to me was … . My question is … .”

Exit question

Show with your fingers.

Which Scratch block lets you do the same steps many times?

  1. when green flag clicked
  2. repeat
  3. say

Then say one sentence: “This week I learned that …”

Tick your five skills on your passport.

Home mission

Paper (everyone). Think of a game where one person thinks of a number from 1 to 10 and another guesses. Write the steps to play it, and draw the flowchart with a loop that repeats until the guess is right. Play it with someone at home, and check that your steps work. Bring it on Monday.

Phone (only if a family phone is free, and you have asked). Find something on the phone that counts, for example the battery number, a stopwatch or a step counter. Write what number it shows, and what makes the number change.

I can...

Pick your name first, at the top of the page.

← Scratch: your first program

Use the arrow keys