Computational Thinking & AI
Flowcharts, loops, variables, debugging, AI and online safety.
Skills
- Algorithms and flowcharts
- Loops and conditions together
- Variables (keeping score)
- Debugging like a detective
- How computers use data
- How AI makes guesses (and mistakes)
- Strong passwords and online safety
- Giving credit for others' work
Lessons
Algorithms and flowcharts
An algorithm is a set of steps. A flowchart draws it: ovals for start and end, rectangles for steps, diamonds for questions. Examples: Start → Wake up → Is it a school day? → Yes: get ready; Diamond has two exits: yes and no; End in an oval. Tip: Draw a flowchart for making a cup of tea.
Loops and conditions together
Loops and conditions work together. A loop repeats; a condition decides what to do each time. Examples: Repeat 10 times: if the number is even, clap; Keep walking until you reach the wall; Repeat for each student: if marks ≥ 40, write "pass". Tip: Act out a loop with a condition in a game.
Variables (keeping score)
A variable is a named box that stores a value that can change, like a score in a game. Examples: score = 0 at the start; Each goal: score = score + 1; lives = 3; lose one: lives = 2. Tip: Give variables clear names, like score or lives.
Debugging like a detective
Debugging is detective work: find where the program goes wrong, guess why, fix it and test again. Examples: The score never changes: the add step is missing; The loop never stops: no end condition; Test small parts one at a time. Tip: Explain your steps aloud to a friend: it often reveals the bug.
How computers use data
Computers take in data (input), process it and give results (output). Good data gives good answers. Examples: Input: marks of 30 students; Process: find the average; Output: a chart of results. Tip: Check data for typing mistakes before using it.
How AI makes guesses (and mistakes)
AI makes guesses based on patterns it has learnt. It can be wrong, especially with things it has not seen before. Examples: A photo app may mistake a dog for a wolf; AI can sound sure but still be wrong; People must check AI's answers. Tip: Never believe something just because a computer said it.
Strong passwords and online safety
A strong password is long and hard to guess, with letters, numbers and symbols. Keep it secret from everyone except your parents. Examples: Weak: your name or "12345"; Strong: a long mix like a made-up phrase with numbers and symbols; Do not share passwords with friends; Log out on shared computers. Tip: Never click links or chat with strangers online; tell an adult.
Giving credit for others' work
If you use someone else's picture, words or idea, give them credit. Copying without credit is not fair. Examples: Write "Photo by…" under a picture; Name the book you got facts from; Ask before using a friend's drawing. Tip: Always say where you found something.