Computers & Coding

Flowcharts, functions, data, networks and staying safe online

Skills

  • Algorithms and flowcharts
  • Loops, conditionals and variables together
  • Functions — reusable steps
  • Debugging like a detective
  • Collecting data and making charts
  • Networks and packets
  • Strong passwords and spotting phishing
  • Copyright and giving credit
  • Your online reputation

Lessons

Algorithms and flowcharts

An algorithm is a step-by-step set of instructions to solve a problem. A flowchart draws an algorithm as shapes connected by arrows. Ovals show start and end, rectangles show steps, and diamonds show yes-or-no decisions. Examples: Oval → "Start" ⭕; Rectangle → "Put bread in the toaster" ⬜; Diamond → "Is the toast brown?" → Yes: take it out / No: wait 🔷. Tip: Draw a flowchart for brushing your teeth, and use a diamond for one decision!

Loops, conditionals and variables together

Real programs mix three big ideas. A variable stores information that can change, like a score. A loop repeats steps, and a conditional (if… then… else) makes a choice. Examples: Variable → score = 0 📦; Loop → repeat 10 times: shoot a ball 🏀; Conditional → if the ball goes in, then score = score + 1 ✅. Tip: Think of a video game you know and find its variable, its loop and its "if… then."

Functions — reusable steps

A function is a named group of steps you can use again and again just by calling its name. Functions make programs shorter, easier to read and easier to fix. Some functions take an input, like a number, that changes what they do. Examples: Function "drawSquare" → repeat 4 times: move 50, turn 90° 🟥; Call drawSquare 3 times → 3 squares, without rewriting the steps; Function "clap(n)" → clap(3) claps 3 times, clap(5) claps 5 times 👏. Tip: Make up a dance move, give it a name, and "call" it whenever the music plays!

Debugging like a detective

A bug is a mistake in a program, and debugging means finding and fixing it. Good debuggers act like detectives: they check what the program should do, what it really does, and test one step at a time. Every coder makes bugs, so finding them is part of the fun. Examples: Expected: the cat walks right. Actual: it walks left → check the direction step 🐱; Run the program one step at a time to find where it goes wrong 👣; Change one thing, then test again 🔁. Tip: Read your steps out loud; bugs often show up when you hear them!

Collecting data and making charts

Data is information we collect, like answers to a survey. Computers help us sort data and turn it into charts so we can spot patterns quickly. A bar graph is great for comparing groups. Examples: Survey: favorite fruit → apple 8, banana 5, grapes 7 🍎🍌🍇; Bar graph → the tallest bar shows apple is the favorite; Pattern → more people bike to school when it is sunny ☀️🚲. Tip: Take a class survey with tally marks, then turn it into a bar graph!

Networks and packets

A network is a group of computers connected so they can share information. The internet is a giant network of networks. When you send a message or picture, it is broken into small pieces called packets that travel different paths and are put back together in order at the end. Examples: A photo → split into many packets, each with a number and an address 📦; Routers → pass packets along like mail carriers 📡; At the end → packets are put back in order to rebuild the photo 🖼️. Tip: Try it unplugged: write a sentence on numbered cards, mix them up, and rebuild it in order!

Strong passwords and spotting phishing

A strong password is long and hard to guess; a silly phrase made of several words mixed with numbers and symbols works well. Never share your password with anyone except a parent or guardian. Phishing is a trick message that pretends to be someone you trust so it can steal passwords or personal information. Examples: Weak → "password" or "1234" ❌; Strong → a long, silly phrase you make up yourself, mixing words, numbers and symbols ✅; Phishing clue → "You won a prize! Click now and type your password!" 🎣. Tip: If a message asks for your password or rushes you, don't click; show a trusted adult.

Copyright and giving credit

Copyright means the person who creates a picture, song, story or video owns it and decides how others can use it. Before using someone else's work, ask permission or use work marked free to use. Always give credit by saying who made it. Examples: Using a photo in a school project → write "Photo by…" under it 📷; Copying a whole story and calling it yours → not okay ❌; Your own drawings are your creations, and you own them too 🎨. Tip: When you use someone's work, say thank you by giving them credit!

Your online reputation

Everything you post online leaves a digital footprint that can last a very long time, even if you delete it. Your online reputation is what others think of you based on that footprint. Post things that are kind and true, and keep personal information private. Examples: Before you post, ask: Is it true? Is it kind? Is it helpful? 🤔; Never post your address, phone number or school online 🔒; A mean comment can hurt feelings and stick around → choose kindness 💛. Tip: Only post something online if you'd be happy for your grandparents to see it!

For parents