🔄 Looking to generate a flowchart from code? Convert your Cambridge pseudocode into editable SVG diagrams with drag-and-drop nodes.
Open SVG Flowchart Maker ➔

Interactive Diagram-to-Pseudocode Explorer

Click any algorithm pattern below:

1. Standard Cambridge Flowchart Symbols to Pseudocode Mapping

Every flowchart on Cambridge IGCSE and A-Level examinations is constructed from five standard ISO shapes. When converting to pseudocode, each shape maps to a distinct language keyword:

Terminator (Pill/Oval) START / END

Defines the algorithm boundary. Maps to the entry point and exit point of a program, procedure, or function.

START ➔ Program start
STOP ➔ ENDPROCEDURE
Input/Output (Parallelogram) INPUT / OUTPUT

Interaction with hardware or virtual files. Slanted sides denote reading keyboard input or printing to screen.

INPUT Score
OUTPUT "Result: ", Score
Process (Rectangle) ASSIGNMENT ←

Calculations and assignments. Must have sharp 90-degree corners to distinguish from rounded terminators.

Total ← Total + Score
Count ← Count + 1
Decision (Diamond) IF / WHILE / REPEAT

Evaluates a boolean condition. Must have exactly two outgoing branches, both clearly labelled Yes and No (or True/False).

IF Score >= 50 THEN
WHILE Count < 10 DO
Subroutine (Double Bars) CALL Subroutine

A process box with vertical lines inside each end, denoting a call to a modular procedure or function defined elsewhere.

CALL ValidateInput()
Result ← CalcTax(Price)
Flowlines & Arrows EXECUTION ORDER

Lines with directional arrowheads connecting nodes. Essential for distinguishing sequential flow from iteration loopbacks.

Down ➔ Sequence
Upward arrow ➔ Loop

2. Translating Decision Diamonds into IF-THEN-ELSE Statements

When a decision diamond branches in two forward directions that later rejoin, it translates directly into a Cambridge selection construct:

  1. Identify the Condition: The question inside the diamond (e.g. Marks >= 50?) becomes the boolean expression after IF.
  2. Follow the "Yes" (True) Branch: All process or I/O boxes on the Yes path are written under the THEN clause.
  3. Follow the "No" (False) Branch: If boxes exist on the No branch, write them inside the ELSE clause. If the No branch simply bypasses the process and joins the main line, omit ELSE.
  4. Close with ENDIF: When both paths converge at a common flowline junction, close the block with ENDIF.
IF Marks >= 50 THEN
    OUTPUT "Pass"
ELSE
    OUTPUT "Fail"
ENDIF

3. Translating Loop Arrows into WHILE and REPEAT UNTIL Loops

When a flowline loops upward to re-enter the algorithm above an earlier step, it represents iteration. To determine whether to use WHILE or REPEAT...UNTIL, check the position of the decision diamond:

4. Step-by-Step Worked Exam Example (IGCSE Past Paper Scenario)

Scenario: A student inputs scores between 0 and 100 until -1 is entered. The algorithm calculates the running total and outputs the average.

Flowchart Analysis:

  1. Terminator: START
  2. Rectangle: Total ← 0, Count ← 0
  3. Parallelogram: INPUT Score
  4. Diamond (Loop check): Score <> -1?
    • Yes path: Total ← Total + Score, Count ← Count + 1, INPUT Score ➔ Loops back to Diamond.
    • No path: Exits loop to calculate average.
  5. Rectangle: Average ← Total / Count
  6. Parallelogram: OUTPUT "Average: ", Average
  7. Terminator: STOP

Official Cambridge Pseudocode Solution:

DECLARE Total : INTEGER
DECLARE Count : INTEGER
DECLARE Score : INTEGER
DECLARE Average : REAL

Total ← 0
Count ← 0

INPUT Score
WHILE Score <> -1 DO
    Total ← Total + Score
    Count ← Count + 1
    INPUT Score
ENDWHILE

IF Count > 0 THEN
    Average ← Total / Count
    OUTPUT "Class Average: ", Average
ELSE
    OUTPUT "No scores entered"
ENDIF

5. Common Examiner Traps: Missing Arrowheads & Unlabelled Branches

⚠️ Mark Scheme Traps to Avoid: On Paper 2, candidates frequently lose up to 4 marks when drawing flowcharts or converting them to pseudocode due to formatting oversights.

6. Frequently Asked Questions: Flowchart to Pseudocode Conversion

How do I know what variables to declare when converting a flowchart?

Inspect every Parallelogram (INPUT/OUTPUT) and Rectangle (Process). List every identifier used on the left of an arrow (Total ← 0) or as an input target (INPUT Score). In Cambridge pseudocode, declare them at the top with their types (e.g. DECLARE Total : INTEGER).

Can PseudoStudio convert my pseudocode into a flowchart automatically?

Yes! Our Interactive Flowchart Maker parses Cambridge pseudocode and generates fully editable SVG flowchart diagrams with automatic node alignment and PNG export.

Do Cambridge examiners prefer pseudocode or flowcharts?

Paper 2 questions specify which representation to provide. Typically, questions 1 through 5 test both representation formats, while the 15-mark scenario question generally allows pseudocode or program code.

What is the difference between a flowchart process box and a subroutine box?

A standard process box is a simple rectangle for local calculations (e.g. x ← x + 1). A subroutine box has vertical double-bars on both sides, indicating a call to an external procedure (e.g. CALL SortArray()).

Practice Flowchart Past Paper Questions Online

Test your understanding with Cambridge IGCSE and A-Level past paper questions, dry-run trace tables, and instant AI grading.

Launch Flowchart Generator ➔ Practice Exam Questions ➔