Lesson 5: Changing someone's program and saying so

Unit overview - Previous: Lesson 4

About 45 minutes.

Goal

Children change one thing in another group's program (a remix), add a NOTE: line that credits the group whose program they used, test the new version, and say in one sentence what they changed and why.

Materials

Steps

Opening (5 min)

  1. Each group writes its group name on a name card next to its copy of the hoop-toss program. Copies are passed to the next group.
  2. Say: "Programmers often start from someone else's program and change it. That is called a remix. When we use someone's work, we say whose it was. That is called giving credit."
  3. Teach the new card: NOTE: ... is a note for people. The computer skips it, like a sticky note on a recipe.

Main activity (30 min)

Part 1: an example remix (7 min). Put up:

NOTE: Based on the hoop-toss program by Group B.
NOTE: We changed GOLD to 2 points so the scores are closer.

WHEN GAME STARTS:
    SET score TO 0

WHEN IN HOOP:
    CHANGE score BY 1

WHEN GOLD:
    CHANGE score BY 2

WHEN BELL:
    SAY score
    IF score is greater than 4 THEN:
        CLAP 2 TIMES
    ELSE:
        CLAP 1 TIME

Run lesson 3's List 1 with it: GAME STARTS, IN HOOP, MISS, GOLD, IN HOOP, BELL. (0, 1, 1, 3, 4; says 4; 4 is not greater than 4, so clap 1 time. The original said 5 with two claps.) Ask: "Did the NOTE lines change the score?" (No. The computer skips them.)

Part 2: groups remix (12 min). Each group changes one thing in the program it was given. Choices:

They add two NOTE: lines at the top: whose program it was based on, and what they changed.

Part 3: test (6 min). Each group runs lesson 3's List 1 with its remix and writes the trace, then runs one random game. (If they added BULLSEYE, they shuffle it in with the other cards.) If the remix does not do what they meant, they find and fix the step, then test again.

Part 4: show and say (5 min). Each group says one sentence: "We changed ... because ...", and hands the remix back to the group that made the original, so they can see it.

Discussion questions (with answers) (5 min)

Closing check (with answers) (5 min)

Show the example remix from Part 1.

  1. "GAME STARTS, GOLD, GOLD, IN HOOP, BELL. What is said, and how many claps?" (2, 4, 5; says 5; clap 2 times.)
  2. "What does the computer do with the NOTE lines?" (Skips them.)
  3. "Whose program was this remix based on?" (Group B's.)

Vocabulary

remix, credit, note (comment), original

Differentiation

Safety

Teacher notes and misconceptions