Welcome to the 'Musical Story Sequencing' lesson. This engaging session introduces fundamental coding concepts such as conditional logic and sequencing through fun, music-based activities and storytelling.
Start with a high-energy, familiar song to discreetly review the concept of Conditional Logic.
Introduce new actions to the song to show that programmers can change the THEN action even if the IF (happy) stays the same.
This circle game reinforces Sequencing and Memory, ensuring the students remember the exact order of instructions.
Assemble the students into a circle around the classroom. Tell the students they are building a giant, cumulative Music Machine. The machine must run the entire sequence of instructions every time.
Execution (Starting the Sequence):
The Challenge: Continue around the circle. If a student forgets the exact order or action, the "Music Machine" breaks, and the sequence starts over. This highlights the precision needed for programming Sequencing.
Introduce a simple, four-part story about a cat's day. (Example: Wakes up, Stretches, Eats Food, Plays with Toy).
Reads the four parts of the story in order.
For each part, the class must collaboratively brainstorm a unique sound and movement that MUST accompany that part of the story.
For example:
| Part in Sequence | Action (The Code) |
| 1. The cat wakes up. | Gentle yawn sound + slowly open eyes. |
| 2. The cat stretches tall. | Loud sigh + slow, full-body stretch. |
| 3. The cat eats its food. | Quick munching noise + hand-to-mouth motion. |
| 4. The cat chases its toy. |
Read the story aloud again, and the encourage the class to perform the four actions in the correct order as the story unfolds.
Give students a printed copy of the "Cat's Day" story from Step 3, but with the four sentences completely jumbled.
Instruct the students to use numbers (1, 2, 3, 4) to put the story in the correct, logical order. They cannot move on until the sequence is fixed.
Once the sequence is fixed, the students must assign their own unique musical element (a sound, a clap, a stomp, a whispered word) to each of the four steps. They are writing their own final program.