60 min read
Flowcharts and Pseudocode Worksheet
Mixed practice: symbols, drawing, reading, completing and tracing flowcharts, and writing pseudocode.
About This Worksheet
Work on paper (or in a flowchart tool). Draw every flowchart neatly, trace it with at least two inputs, then check your work against the lessons. The problems are practice problems — your assignment will have its own.
Section A — Symbols
Section B — Draw the Flowchart
Section C — Complete the Flowcharts
A car park charges LKR 100 for up to 2 hours, then LKR 80 for each extra hour.
Fill in A and B
Read this flowchart as text
- Terminator: Start (then → INPUT hours)
- Input/output: INPUT hours (then → hours <= 2?)
- Decision: hours <= 2? (Yes → [blank A]; No → [blank B])
- Process: [blank B] (then → OUTPUT fee)
- Process: [blank A] (then → OUTPUT fee)
- Input/output: OUTPUT fee (then → Stop)
- Terminator: Stop
This flowchart counts down in twos from 10 and then outputs "Lift-off!".
Fill in C and D
Read this flowchart as text
- Terminator: Start (then → n = 10)
- Process: n = 10 (then → [blank C])
- Decision: [blank C] (Yes → OUTPUT n; No → OUTPUT "Lift-off!")
- Input/output: OUTPUT n (then → [blank D])
- Input/output: OUTPUT "Lift-off!" (then → Stop)
- Process: [blank D] (then → [blank C])
- Terminator: Stop
Section D — Pseudocode and Tracing
More lessons in Algorithms, Flowcharts and Pseudocode · Next: Course Exam · Previous: Trace Tables
