Task 3 · Flowcharts
up to +100 XP
Stop 3.2 · Task 3 · 7 min

Flowcharts

Create clear algorithm designs using flowchart symbols

Learning Objectives:
  • Understand flowchart symbols for Task 3
  • Learn which algorithms to create flowcharts for
  • Master flowchart conventions for the exam
  • Apply flowcharts to data processing problems
  • Create exam-ready flowchart designs

Flowcharts in Task 3

After creating your decomposition diagram, you'll create flowcharts for specific algorithms. Flowcharts show the step-by-step logic using standard symbols.

Flowcharts Show Steps from Your Decomposition

Critical: Your flowcharts must match the sub-functions in your decomposition diagram.

What to Create Flowcharts For

Create flowcharts covering:

Remember: Many flowcharts will start with "Load CSV data" because you always need the data first before processing it.

Flowchart Symbols You Need

You only need these 6 symbols for Task 3:

1. Oval (Terminal) - Start/End

2. Rectangle (Process) - Actions

3. Diamond (Decision) - Yes/No Questions

4. Parallelogram (Input/Output) - Data In/Out

5. Arrow (Flow Line) - Direction

6. Circle (Connector) - Link Parts

Example Flowcharts for Task 3

Example 1: Reading CSV File

Algorithm: Load sales data from CSV file

Steps in flowchart:

  1. Start (Oval)
  2. Open "sales_data.csv" (Parallelogram - Input)
  3. Is file found? (Diamond - Decision)
    • No → Display "File not found error" (Parallelogram) → End
    • Yes → Continue
  4. Create empty list "sales_records" (Rectangle - Process)
  5. Read first line (skip header) (Rectangle - Process)
  6. Are there more lines? (Diamond - Decision)
    • No → End
    • Yes → Continue
  7. Read next line (Parallelogram - Input)
  8. Split line into: date, model, value, salesperson (Rectangle - Process)
  9. Add record to sales_records list (Rectangle - Process)
  10. Loop back to "Are there more lines?"

Example 2: Calculate Total Sales by Model

Algorithm: Group sales and calculate totals for each car model

Steps in flowchart:

  1. Start (Oval)
  2. Create empty dictionary "model_totals" (Rectangle)
  3. Set index = 0 (Rectangle)
  4. Is index < length of sales_records? (Diamond)
    • No → End
    • Yes → Continue
  5. Get current record (Rectangle)
  6. Extract model and value (Rectangle)
  7. Is model in model_totals? (Diamond)
    • No → Set model_totals[model] = 0 (Rectangle)
    • Yes → Continue
  8. Add value to model_totals[model] (Rectangle)
  9. Increment index by 1 (Rectangle)
  10. Loop back to "Is index < length?"

Example 3: Display Menu and Get Choice

Algorithm: Show menu options and validate user input

Steps in flowchart:

  1. Start (Oval)
  2. Display menu options (Parallelogram - Output)
  3. Get user choice (Parallelogram - Input)
  4. Is choice between 1-4? (Diamond)
    • No → Display "Invalid choice" (Parallelogram) → Loop back to "Get user choice"
    • Yes → Continue
  5. Return choice (Rectangle)
  6. End (Oval)

Flowchart Rules and Conventions

Essential Rules

Writing Good Text in Symbols

Common Patterns

Loop Pattern (Count-controlled):

Loop Pattern (Condition-controlled):

Validation Pattern:

Tips for High Marks

What Examiners Look For

Common Mistakes to Avoid

Linking to Decomposition Diagram

Your flowcharts must directly relate to your decomposition:

Choosing What to Flowchart

Pick algorithms that are:

Good choices:

Avoid:

Exam Strategy

Step-by-Step Process

  1. Choose your algorithms from decomposition diagram
  2. List the steps in plain English first
  3. Identify decisions and loops in your steps
  4. Sketch the flowchart with correct symbols
  5. Check the logic - trace through with sample data
  6. Create neat final version
  7. Label everything (especially Yes/No on decisions)
  8. Save as PDF with correct filename

Testing Your Flowchart

Before finalizing, trace through with example data:

Presentation Tips

Quick check · 12 questions · up to 100 XP

Check what stuck.

+10 XP each
Question 1

Question 1 of 12

What symbol represents Start and End in flowcharts?

Question 2

Question 2 of 12

What symbol represents decisions (Yes/No questions)?

Question 3

Question 3 of 12

How many exit paths must a decision diamond have?

Question 4

Question 4 of 12

What symbol represents input/output operations?

Question 5

Question 5 of 12

What is the primary flow direction in flowcharts?

Question 6

Question 6 of 12

How must flowcharts relate to decomposition diagrams?

Question 7

Question 7 of 12

How must decision paths be labeled in flowcharts?

Question 8

Question 8 of 12

What is a common flowchart mistake?

Question 9

Question 9 of 12

What should flowchart titles match?

Question 10

Question 10 of 12

Why is "Load CSV data" often the first step in flowcharts?

Question 11

Question 11 of 12 · Coding

Flowchart to code: START → set count to 0 → for each value in the list → is value over 20000? → if yes, add 1 to count → after the loop, output count → END. Write it as count_big_sales(values) that returns the count.

Open the IDE
Hint

"Over 20000" means value > 20000.

Question 12

Question 12 of 12 · Coding

Flowchart to code: START → set highest to the first value → for each value → is value bigger than highest? → if yes, set highest to value → output highest → END. Write highest(values) without using max().

Open the IDE
Hint

Start with highest = values[0], then compare each value in a loop.