Flowchart Examples in CS Thinking

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Flowchart.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in CS Thinking.

Concept Recap

A visual diagram that represents the steps of an algorithm using standard shapes (ovals for start/end, rectangles for processes, diamonds for decisions, arrows for flow).

A flowchart is a map of your algorithm โ€” you can trace the path from start to finish and see every decision point along the way.

Read the full concept explanation โ†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: Flowcharts make control flow visible. They're especially useful for understanding loops and branching logic.

Common stuck point: Diamonds are for decisions (yes/no questions) only. Rectangles are for actions/processes.

Worked Examples

Example 1

easy
Name the four standard flowchart symbols and what each represents.

Solution

  1. 1
    Step 1: Oval (rounded rectangle) = Start/End (terminator). Rectangle = Process (an action or calculation).
  2. 2
    Step 2: Diamond = Decision (a yes/no question that creates a branch). Parallelogram = Input/Output (data entering or leaving the system).
  3. 3
    Step 3: Arrows connect the symbols to show the flow of control from one step to the next.

Answer

Oval = Start/End, Rectangle = Process, Diamond = Decision, Parallelogram = Input/Output. Arrows show flow.
Flowcharts use standardised symbols to visually represent algorithms. They are especially useful for showing branching logic and loops in a way that is easy to follow.

Example 2

medium
Describe the flowchart for a program that keeps asking the user to enter a password until they enter the correct one ('secret123'), then outputs 'Access granted'.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

medium
Describe the flowchart for a program that reads a number and outputs whether it is positive, negative, or zero.

Example 2

hard
Compare the strengths and weaknesses of flowcharts vs pseudocode for designing algorithms. When would you choose each?

Background Knowledge

These ideas may be useful before you work through the harder examples.

pseudocodealgorithm