Skip to content
Cambridge AS & A Level9626

Flowcharts

Information Technology 9626 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Flowcharts notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Flowcharts notes as text: skim, search, and jump between subtopics.

~13 min read

1. Flowchart symbols

A program flowchart uses a fixed set of symbols. Each has one job. The syllabus lists the input/output, decision, terminator (start, stop), process box, subroutine, connector and flowline.

The start and stop shape is the terminator. Inputs and outputs go in parallelograms. A question goes in a diamond shape. A process box holds a calculation, written with arithmetic operators. Flowlines join the symbols and show the order.

A subroutine symbol means that a procedure is called. Use only the symbols the syllabus gives.

Examiner insight

“Candidates who showed little understanding of the meaning of the flowchart symbols were typically limited to partial credit.” “Candidates need to use the symbols provided by the board and should have practiced using them correctly.”

Worked example 14 marks

A flowchart contains these four items.

• Start • INPUT length • length > 10? • area ← length * width

Name the flowchart symbol used for each item.

  1. 1

    Start: the terminator (start and stop shape) [1]

  2. 2

    INPUT length: input/output, a parallelogram [1]

  3. 3

    `length > 10?`: decision, a diamond shape [1]

  4. 4

    `area ← length * width`: a process box [1]

2. Decisions and flowlines

A decision asks a question. It has two outcomes. Label the flowlines that leave it with Yes and No (True and False are also accepted). Show both, every time.

Write the question as a mathematical expression with a comparison operator, such as `count = 12` or `x > 5`. Prose such as 'is x between 5 and 10' is not acceptable.

The outcome must match the question. The Yes line is what happens when the expression is true. A flowline can lead back to an earlier symbol to make a loop back.

Examiner insight

“Typical, and, possibly, the easiest to fix mistake was candidates only using a YES or a NO from the decision boxes.” “Other candidates appeared to understand the concept, but then used prose in the boxes instead of mathematical expressions.”

Worked example 13 marks

A flowchart must test whether a number x is from 5 to 10 inclusive. Show how the decisions are written.

  1. 1

    first decision `x >= 5?` in a diamond, a mathematical expression and not prose [1]

  2. 2

    `x <= 10?` in a second diamond, reached from the Yes line of the first [1]

  3. 3

    every decision has both a Yes line and a No line, each labelled [1]

3. Drawing a flowchart from a description

Work down the description in order. Turn each sentence into one symbol.

Begin with a terminator for Start and stop. Each 'if' or check becomes a decision in a diamond shape with a Yes and a No line. Each input or message goes in a parallelogram. Each calculation goes in a process box.

Where an error sends the user back, draw a loop back to start from that error. Then count the checks in the description: each needs its own diamond.

Examiner insight

“If candidates are taught to recognise these symbols, and to add both YES and NO, they will be virtually guaranteed of picking up low level marks for the question.”

Worked example 18 marks

Employees log in to their company's database with a User ID and password. A user enters their User ID. If employees have forgotten their password, they click on a 'Forgot Password?' button.

Draw a program flowchart to represent the following process.

• If the 'Forgot Password?' button is clicked, a message box appears and asks them to enter their User ID. • A check will be performed to see if the system recognises the User ID. • If the User ID is not recognised, an error message is displayed and the user will be returned to the start of the process. • If the User ID is recognised, a security question is asked. • The user's response to the security question will be checked. If the user's response is correct, then an email containing the password reminder will be sent to the user's email address. • If an incorrect response is given, an error message will be displayed and the user will be returned to the start of the process.

  1. 1

    Start and stop in the correct shape (terminator) [1]

  2. 2

    two relevant questions in diamond shapes: User ID recognised? Response correct? [1]

  3. 3

    a third relevant question in a diamond: Forgot Password? button clicked? [1]

  4. 4

    Yes and No used on the lines leaving the decisions [1]

  5. 5

    Yes and No logic both correct, and matching the question asked [1]

  6. 6

    inputs and outputs (User ID, security answer, messages) in parallelograms [1]

  7. 7

    User ID error message and answer error message [1]

  8. 8

    loop back to start from each error [1]

  9. 9

    The mark scheme also credits the User ID input message, the password reminder message and the email sent. Twelve points are available, with a maximum of eight marks.

4. Editing a given flowchart

An edit question gives a flowchart and asks you to correct or complete it. Read the description of the task first. Then check each part of the flowchart against it.

Check in this order: the starting values, the counting, the calculation, the decision and the end. Make each change where it belongs on the flowchart.

For the average of 12 numbers, the mark scheme credited adding the sum initialisation, adding the iteration of count, changing the calculation, a corrected Yes/No and an end shape.

Examiner insight

“As the question asks for improvement to the flowchart, candidates had to ensure that suggested improvements were both relevant and able to be clearly placed on the flowchart.” “Where candidates answered directly on the flowchart, this location was obvious.”

Worked example 15 marks

The average (mean) of a set of 12 numbers is calculated by adding the numbers together to get a total, then dividing the total by 12.

A student has attempted to draw a flowchart of an algorithm which finds the average of 12 numbers. They have made some errors.

The flowchart has these boxes: Start; count = 0; average = sum * 12; Input first number; sum = sum + input number; Display average; Input next number; and a decision is count = 12? with No and Yes lines.

Redraw the flowchart, with the errors corrected.

  1. 1

    add `sum = 0` (sum initialisation) [1]

  2. 2

    add `count = count + 1` (iteration of count) [1]

  3. 3

    change the average calculation from `*` to `/` [1]

  4. 4

    reverse Yes and No correctly on `is count = 12?` [1]

  5. 5

    add an end shape [1]

  6. 6

    One corrected flowchart, in words:

  7. 7

    ``` START sum ← 0 count ← 0 INPUT first number sum ← sum + input number count ← count + 1 IS count = 12? NO: INPUT next number, then back to the sum box YES: average ← sum / 12 DISPLAY average END ```

5. Identifying errors

To identify an error, say what is wrong. Then say what the corrected flowchart now does, and justify the change. Naming a symbol is not enough.

The mark schemes credit these errors: a test that is wrong for the logic, so the flowchart ends on the first run through; a variable that is not initialised; no output; and a loop that goes to the wrong place.

Say where on the flowchart the correction goes.

Examiner insight

“Where the location was generally made clear within the answer, or the suggested improvement could only realistically be placed in one position, credit was awarded.”

Worked example 14 marks

The program flowchart produces the output of the sum of 10 numbers.

There are errors and omissions in the flowchart. The flowchart, in words:

``` START Count ← 0 IS Count >= 10? YES: INPUT Number Count ← Count + 1 Sum ← Sum + Number NO: STOP ```

Explain two corrections that should be made to the flowchart.

  1. 1

    error: `Count >= 10?` is wrong for the logic. Count starts at 0, so the answer is No and the flowchart stops on the first run through [1]

  2. 2

    change the test to `Count < 10?` [1]

  3. 3

    error: Sum is not initialised, so `Sum + Number` has no starting value [1]

  4. 4

    add `Sum ← 0` to the process box with `Count ← 0` [1]

Recap

  • Terminator = start and stop. Parallelogram = input and output. Diamond = decision. Process box = calculation.
  • Every decision has a Yes line and a No line, and the answer matches the question.
  • Write decisions as mathematical expressions, not prose.
  • Drawing: one symbol for each sentence, a loop back to start from each error.
  • Editing: check starting values, counting, calculation, decision and end.
  • Errors: say what is wrong, what the correction does and where it goes.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. A flowchart contains these three items. • OUTPUT total • count = 5? • STOP Name the flowchart symbol used for each item.3 marks
    Answer
    1. `OUTPUT total`: input/output, a parallelogram [1].
    2. `count = 5?`: decision, a diamond shape [1].
    3. `STOP`: terminator [1].

    Trap: A process box for an output is not credited. Outputs go in parallelograms.

  2. A student writes 'Did the student pass?' in a decision box. The pass mark is 40 and the mark is stored in score. Rewrite the decision so that it is credited, and state what must leave it.2 marks
    Answer
    1. `score >= 40?` [1].
    2. Two flowlines leave it, labelled Yes and No [1].

    Trap: `score > 40` leaves out a student who scored exactly 40.

  3. A shop reduces every price by 20%. Write the process box that sets sale to the reduced price of price.2 marks
    Answer
    1. 20% off leaves 80% of the price.
    2. `sale ← price * 0.8` [2].

    Trap: `price - 20` takes 20 off the price, not 20%.

  4. A flowchart decides whether to output a child or an adult. ``` INPUT age IS age >= 18? YES: OUTPUT "Child" NO: OUTPUT "Adult" ``` Identify the error.2 marks
    Answer
    1. The Yes and No lines are the wrong way round [1].
    2. Age 25 gives 'Child' and age 10 gives 'Adult'. Yes should lead to 'Adult' and No to 'Child' [1].

    Trap: Test both branches with a value. Checking only one branch can look correct.

  5. List the features a flowchart must have. A program inputs a temperature. It outputs 'Hot' if the temperature is above 30 and 'Not hot' if it is not.4 marks
    Answer
    1. Start and stop in terminators [1].
    2. `INPUT temperature` in a parallelogram [1].
    3. Decision `temperature > 30?` in a diamond with Yes and No lines [1].
    4. Yes leads to `OUTPUT "Hot"` and No to `OUTPUT "Not hot"`, both in parallelograms [1].

    Trap: Labelling only one of the two lines leaving the decision.

  6. A flowchart is meant to output the numbers 1, 2, 3 and 4. ``` START count ← 1 OUTPUT count count ← count + 1 IS count > 4? YES: back to OUTPUT count NO: STOP ``` Identify the error, state what the flowchart does as drawn, and correct it.3 marks
    Answer
    1. The Yes and No lines are the wrong way round [1].
    2. As drawn it outputs 1, then count is 2, 2 > 4 is No, so it stops [1].
    3. Correct it: Yes leads to STOP and No leads back to `OUTPUT count` [1].

    Trap: Reading what the flowchart was meant to do, not what is drawn.

  7. A flowchart finds the average of 4 marks. ``` START sum ← 0 count ← 0 INPUT mark sum ← sum + mark count ← count + 1 IS count = 4? NO: back to INPUT mark YES: average ← sum / 4 OUTPUT average STOP ``` Edit the flowchart so that, after the average is output, it outputs 'Pass' if average >= 50 and 'Fail' if not.4 marks
    Answer
    1. After `OUTPUT average`, add a decision `average >= 50?` in a diamond [1].
    2. Yes leads to `OUTPUT "Pass"` [1].
    3. No leads to `OUTPUT "Fail"` [1].
    4. Both lines are labelled and both outputs lead to STOP [1].

    Trap: Drawing only the Pass line, or putting the decision after STOP.

  8. A speed camera flowchart handles one speed. The limit is 50 km / h. If the speed is over 70 km / h it outputs 'Court'. If it is over 50 km / h but not over 70 km / h it outputs 'Fine'. Otherwise it outputs 'No action'. Describe the two decisions and where each output goes.4 marks
    Answer
    1. First decision `speed > 70?` with Yes and No lines [1].
    2. Yes leads to `OUTPUT "Court"` [1].
    3. No leads to a second decision `speed > 50?` with Yes and No lines [1].
    4. Yes leads to `OUTPUT "Fine"` and No to `OUTPUT "No action"` [1].

    Trap: Testing `speed > 50` first sends 80 km / h to 'Fine'.

  9. A program reads 5 numbers and outputs how many are negative. List what the flowchart needs, in order, including any initialisation.6 marks
    Answer
    1. `neg ← 0` and `count ← 0` before the loop [1].
    2. `INPUT n` in a parallelogram [1].
    3. Decision `n < 0?` with Yes and No lines [1].
    4. Yes leads to `neg ← neg + 1` [1].
    5. `count ← count + 1`, then decision `count = 5?`. No loops back to `INPUT n` [1].
    6. Yes leads to `OUTPUT neg` and STOP [1].

    Trap: Leaving `neg` with no starting value, so `neg + 1` has nothing to add to.

  10. A login flowchart gives a user three tries. ``` START attempts ← 0 INPUT password IS password = "tiger"? YES: attempts ← attempts - 1 IS attempts = 3? YES: OUTPUT "Locked", then STOP NO: back to attempts ← 0 NO: OUTPUT "Welcome", then STOP ``` Identify three errors and correct each one.6 marks
    Answer
    1. Error 1: Yes and No are the wrong way round on the password test [1]. Yes should lead to `OUTPUT "Welcome"` and No to the attempts box [1].
    2. Error 2: `attempts - 1` should be `attempts + 1`, or the count never reaches 3 [1]. Correct it to `attempts ← attempts + 1` [1].
    3. Error 3: the loop goes back to `attempts ← 0`, which resets the count every time [1]. It should go back to `INPUT password` [1].

    Trap: Correcting only the first error. Trace the corrected flowchart to find the next.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
‘is x between 5 and 10’ in a decision boxa mathematical expression, such as `x >= 5`
only a YES, or only a NO, leaving a decisionYes and No on both lines leaving every decision
a random or different shape for a question or for start and stopthe symbols provided by the board: a diamond shape for a question, a terminator for start and stop
a correction named with no reasonidentify what is wrong and justify the change

Frequently asked questions

What do the symbols in a program flowchart mean?
A terminator, the start and stop shape, marks the beginning and end. Inputs and outputs go in parallelograms, a question goes in a diamond shape, and a process box holds a calculation written with arithmetic operators. Flowlines join the symbols and show the order. A subroutine symbol means that a procedure is called.
How do you write a decision in a flowchart?
Write the question as a mathematical expression with a comparison operator, such as count = 12 or x > 5. Prose such as 'is x between 5 and 10' is not acceptable. Label both flowlines leaving the decision with Yes and No, because the outcome must match the question.
How do you test whether a number is between two values in a flowchart?
Use two decisions in diamond shapes. The first decision is x >= 5?, and its Yes line leads to a second decision, x <= 10?. Every decision needs both a Yes line and a No line, each labelled. Writing the test as prose in a single decision box does not earn the marks.
How do you draw a flowchart from a written description?
Work down the description in order and turn each sentence into one symbol. Begin with a terminator for start and stop, make each check a decision in a diamond shape with Yes and No lines, and put each input or message in a parallelogram. Where an error sends the user back, draw a loop back to the start from that error.
What errors do examiners look for when a flowchart is given to correct?
The mark schemes credit errors such as a test that is wrong for the logic, so the flowchart ends on the first run through, and a variable that is not initialised. Other credited errors are no output and a loop that goes to the wrong place. For each error, say what is wrong, what the corrected flowchart does, and justify the change.
What mistakes do students make in a flowchart that finds an average?
A common mistake is to calculate the average as sum * 12 instead of sum / 12. The flowchart also needs the sum initialised to 0 and the count increased by 1 each time a number is input. Only the Yes line or only the No line is labelled, which loses marks, so label both lines leaving the count = 12? decision.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters