- 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.
- Each flowchart represents ONE sub-function from Level 2 of your decomposition
- Example: If your decomposition has "2.1 Group sales by car model", create a flowchart showing HOW to group sales by model
- The flowchart title should match the decomposition function name
- Examiners check that your flowcharts align with your decomposition
What to Create Flowcharts For
Create flowcharts covering:
- Data input: Reading CSV file (from decomposition: 1.1-1.4)
- Data processing: Calculating totals, grouping by model (from decomposition: 2.1-2.5)
- User interface: Menu system with validation (from decomposition: 4.1-4.4)
- Data output: Displaying results or generating graphs (from decomposition: 3.1-3.5)
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
- Shape: Rounded oval
- Use: Mark beginning and end of flowchart
- Text: "Start" or "End"
- Example: Every flowchart starts with "Start" oval
2. Rectangle (Process) - Actions
- Shape: Rectangle box
- Use: Any processing step, calculation, or operation
- Text: "Calculate total", "Set count = 0", "Add value to list"
- Example: "total = total + value"
3. Diamond (Decision) - Yes/No Questions
- Shape: Diamond
- Use: Any decision or condition check
- Text: Question with yes/no answer
- Exits: MUST have exactly 2 paths labeled "Yes" and "No"
- Example: "Is file found?", "count < 10?"
4. Parallelogram (Input/Output) - Data In/Out
- Shape: Slanted rectangle
- Use: Reading input or displaying output
- Text: "Read CSV file", "Display total", "Get user choice"
- Example: "Input: user selection"
5. Arrow (Flow Line) - Direction
- Shape: Line with arrowhead
- Use: Show direction of flow
- Rule: Always point in direction of flow
6. Circle (Connector) - Link Parts
- Shape: Small circle with letter/number
- Use: Connect flowchart parts or avoid crossing lines
- Text: Single letter (A, B, C) or number
- Example: Use "A" to jump to another "A" connector
Example Flowcharts for Task 3
Example 1: Reading CSV File
Algorithm: Load sales data from CSV file
Steps in flowchart:
- Start (Oval)
- Open "sales_data.csv" (Parallelogram - Input)
- Is file found? (Diamond - Decision)
- No → Display "File not found error" (Parallelogram) → End
- Yes → Continue
- Create empty list "sales_records" (Rectangle - Process)
- Read first line (skip header) (Rectangle - Process)
- Are there more lines? (Diamond - Decision)
- No → End
- Yes → Continue
- Read next line (Parallelogram - Input)
- Split line into: date, model, value, salesperson (Rectangle - Process)
- Add record to sales_records list (Rectangle - Process)
- 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:
- Start (Oval)
- Create empty dictionary "model_totals" (Rectangle)
- Set index = 0 (Rectangle)
- Is index < length of sales_records? (Diamond)
- No → End
- Yes → Continue
- Get current record (Rectangle)
- Extract model and value (Rectangle)
- Is model in model_totals? (Diamond)
- No → Set model_totals[model] = 0 (Rectangle)
- Yes → Continue
- Add value to model_totals[model] (Rectangle)
- Increment index by 1 (Rectangle)
- Loop back to "Is index < length?"
Example 3: Display Menu and Get Choice
Algorithm: Show menu options and validate user input
Steps in flowchart:
- Start (Oval)
- Display menu options (Parallelogram - Output)
- Get user choice (Parallelogram - Input)
- Is choice between 1-4? (Diamond)
- No → Display "Invalid choice" (Parallelogram) → Loop back to "Get user choice"
- Yes → Continue
- Return choice (Rectangle)
- End (Oval)
Flowchart Rules and Conventions
Essential Rules
- Every flowchart starts with "Start" and ends with "End" (ovals)
- Flow top to bottom, left to right
- Decision diamonds have exactly 2 exits: Yes and No (or True/False)
- Label all decision paths clearly
- Use arrows to show direction (especially for loops)
- Avoid crossing lines where possible (use connectors if needed)
- One entry, one exit per symbol
Writing Good Text in Symbols
- Process boxes: Use action verbs ("Calculate", "Set", "Add")
- Decision diamonds: Ask yes/no questions ("Is count > 10?", "File found?")
- Input/Output: Be specific ("Read CSV file", "Display total sales")
- Keep it brief: Short, clear phrases
- Be consistent: Use same variable names throughout
Common Patterns
Loop Pattern (Count-controlled):
- Set counter = 0
- Decision: counter < limit?
- Yes → Process → Increment counter → Back to decision
- No → Continue
Loop Pattern (Condition-controlled):
- Decision: More data available?
- Yes → Read data → Process → Back to decision
- No → Continue
Validation Pattern:
- Get input
- Decision: Input valid?
- No → Display error → Back to get input
- Yes → Continue
Tips for High Marks
What Examiners Look For
- Correct symbols: Using the right shape for each step
- Clear logic: Algorithm makes sense and solves the problem
- Complete flow: All paths lead somewhere (no dead ends)
- Proper labeling: Decision paths labeled Yes/No
- Neat presentation: Easy to read and follow
- Appropriate detail: Not too vague, not too detailed
Common Mistakes to Avoid
- Wrong symbols: Using rectangle for decisions or diamond for processes
- Missing labels: Decision paths not labeled Yes/No
- No Start/End: Forgetting terminal symbols
- Infinite loops: Loops with no exit condition
- Vague text: "Do stuff" instead of specific actions
- Too complex: Trying to show everything in one flowchart
- Crossing lines: Messy flowchart with lines crossing everywhere
Linking to Decomposition Diagram
Your flowcharts must directly relate to your decomposition:
- Match function names: "Flowchart: Group Sales by Car Model" matches decomposition "2.1 Group sales by car model"
- Show the detail: Decomposition says WHAT to do, flowchart shows HOW to do it step-by-step
- Include prerequisites: If a function needs data loaded first, show that in the flowchart
- Cover all major branches: Create flowcharts for different types of functions (input, process, output, UI)
Choosing What to Flowchart
Pick algorithms that are:
- Important: Core functionality of the system
- Complex enough: Show decisions, loops, or interesting logic
- Different types: Mix of input, processing, output
- From your decomposition: Match your Level 2 sub-functions
Good choices:
- Reading and parsing CSV file (shows file handling + loop)
- Calculating totals by category (shows loop + dictionary/grouping)
- Menu system with validation (shows loop + decisions)
- Sorting or finding maximum values (shows algorithm logic)
Avoid:
- Too simple (just "Display message" - no logic)
- Too complex (entire system in one flowchart)
- Repetitive (don't do 3 similar calculation flowcharts)
Exam Strategy
Step-by-Step Process
- Choose your algorithms from decomposition diagram
- List the steps in plain English first
- Identify decisions and loops in your steps
- Sketch the flowchart with correct symbols
- Check the logic - trace through with sample data
- Create neat final version
- Label everything (especially Yes/No on decisions)
- Save as PDF with correct filename
Testing Your Flowchart
Before finalizing, trace through with example data:
- Follow each arrow from Start to End
- Check all decision paths work correctly
- Verify loops have exit conditions
- Ensure all paths reach an End
- Confirm logic matches requirements
Presentation Tips
- Use drawing software or neat hand-drawing
- Keep symbols uniform in size
- Align symbols in columns where possible
- Use connectors to avoid crossing lines
- Leave white space - don't cram everything
- Add title: "Flowchart: [Algorithm Name]"