Lesson Notes — Flowcharting & Algorithmic Logic
Course 1: Computer Literacy / Unit 14: Computational Thinking & Problem Solving / Lesson 2: Flowcharting & Algorithmic Logic
Lesson overview
An algorithm is a set of clear steps that solve a problem. A flowchart is a diagram that shows those steps and how they connect. Drawing the steps helps you find missing pieces before you build anything.
Flowchart symbols
| Shape | Name | Meaning |
|---|---|---|
| Oval | Terminator | The start or the end |
| Parallelogram | Input / Output | Getting information in or showing a result |
| Rectangle | Process | An action or a calculation |
| Diamond | Decision | A yes or no question, with a path for each answer |
| Arrow | Flow line | The direction to go next |
Three building blocks of logic
- Sequence: steps happen one after another, in order.
- Decision: the path changes based on a yes or no answer.
- Repetition: some steps go back and repeat until a condition is met.
Example: a thermostat
Here is a thermostat algorithm. Draw it with the symbols above.
- Start (oval).
- Read the room temperature (parallelogram).
- Decision (diamond): is the temperature below 68 degrees?
- If yes, turn the heater on (rectangle).
- If no, turn the heater off (rectangle).
- Go back to step 2 and keep checking (arrow looping back).
This one never reaches an end because a thermostat keeps running. Many algorithms do end, and then you would finish with an oval labeled End.
Tips for good flowcharts
- Use exactly one Start. Every path should lead to something.
- Label every arrow that leaves a decision with Yes or No.
- Keep each step small and specific.
- Test your chart by following it with your finger, pretending to be the machine.
Check your understanding
- Which shape would you use for the question “Is it raining?”
- Draw a flowchart for your morning routine that includes at least one decision.
- What happens in the thermostat example if the room is exactly 68 degrees?
Use this lesson’s Key Terms page to build your glossary.