Until today, you have used software that other people built (Word, Excel, PowerPoint, Web Browsers). Today, you step across the line from being a technology consumer to becoming a technology creator: you will write your first computer program!
Computers are lightning fast, but they are as dumb as a stone—they cannot guess what you want. They can only follow an Algorithm: a step-by-step list of clear, ordered instructions to accomplish a specific goal.
Think about making spicy fried plantain (Kelewele):
Typing code by hand in languages like Python or C++. If you forget a single semicolon (;) or comma, the entire program crashes with a confusing error message.
In Scratch, instructions are shaped like colorful puzzle pieces. You drag and snap them together. If two blocks don't make logical sense, they physically refuse to snap together!
When you launch Scratch, you are looking at a digital animation and game studio:
Look closely at how Scratch blocks are built. They have notches on the top and bumps on the bottom. This guarantees that blocks connect only in ways that make logical sense to the computer:
when green flag clicked) at the very top, the computer will sit completely still. The Event block is the electrical spark plug that ignites the code engine!
| Block Name | What It Does | Real-World Result |
|---|---|---|
move (10) steps |
Moves (jumps) the sprite forward in the direction it is facing. | Walking forward 10 tiny screen pixels. |
turn clockwise (15) deg |
Rotates the sprite to its right like turning a steering wheel. | Pivots right by 15 degrees. |
say [Words] for (2) secs |
Displays a cartoon speech bubble above the sprite's head. | Shows a speech bubble (no sound). |
To tell your character where to jump, walk, or appear on the stage, the computer uses a mathematical grid called the X and Y Coordinate Plane. This is just like finding a cell coordinate in a spreadsheet!
• Positive X numbers (+10, +100) move the sprite to the RIGHT.
• Negative X numbers (-10, -100) move the sprite to the LEFT.
• Positive Y numbers (+10, +100) push the sprite UP into the air.
• Negative Y numbers (-10, -100) drop the sprite DOWN to the ground.
go to x: () y: ().Follow these 6 steps to build your very first working Scratch program:
scratch.mit.edu in your browser).
when green flag clicked hat block into the center Coding Workspace.
move (10) steps block and snap it under the event block. Click inside the white circle and change 10 to 50.
say [Hello!] for (2) seconds block and snap it directly below the motion block.
Akwaaba! Welcome to BIH Tech Club!
turn clockwise (15) degrees at the bottom of the stack.
Akwaaba_Cat_Ama.sb3.
Below are 4 steps to wash a dirty school uniform, but they are scrambled in the wrong order! Write numbers 1, 2, 3, 4 to put the algorithm into the correct sequence:
| Scrambled Task | Correct Step (1 to 4) |
|---|---|
| Hang the clean uniform on the drying line in the sun. | |
| Fill the washing basin with clean water and soap powder. | |
| Rinse the uniform in clean water to wash out the soap suds. | |
| Scrub the uniform gently to remove mud and dirt spots. |
Question 1: What is an Algorithm in computer science?
Question 2: What happens if you build a code stack in Scratch but forget to snap an Event Hat Block (like when green flag clicked) at the top?
Question 3: If you want a sprite to jump UP into the sky, do you increase its X coordinate or its Y coordinate?
Tick the column that reflects your confidence at the end of Session 16:
| Coding & Computational Thinking Competency | With Help | Almost Alone | All By Myself! |
|---|---|---|---|
| 1. I can explain what an algorithm is and why instruction sequence matters. | |||
| 2. I can identify the 5 zones of Scratch (Palette, Workspace, Stage, Sprite Pane, Flag & Stop). | |||
| 3. I understand how X (horizontal) and Y (vertical) coordinates position sprites. | |||
| 4. I can assemble an Event, Motion, and Looks script and run it using the Green Flag. |
BIH JHS Tech Club · a Bozoma Innovation Hub programme · Your answers are saved only on this computer.