Flowchart Symbols & Decision Logic

A flowchart represents an algorithm using shapes and directional arrows. An oval marks start/end, a rectangle marks a process such as assignment, a parallelogram marks input/output, and a diamond marks a decision. Label the decision branches Yes/No or True/False. Arrows show execution order and can return to an earlier step for a loop.

Flowchart: input Age; decision Age at least 12; yes outputs ELIGIBLE and no outputs WAIT; both end

Worked trace

For Age=11, the condition is false and the output is WAIT. For Age=12, it is true and the output is ELIGIBLE. Both branches reach End. Replacing >= with > would wrongly reject the boundary value 12.

Amend and construct

On paper amend the chart so eligibility begins at 15. Only the comparison threshold needs changing. Then draw a new chart which repeatedly asks for a value until it lies from 1 to 5 inclusive.

Self-review: Start leads to an input parallelogram; a decision tests Value >= 1 AND Value <= 5; No returns to input, and Yes reaches a success output and End. Returning to the decision without another input would repeat the same invalid value forever. Use the correct shapes, labelled branches and arrowheads.

AI Socratic Tutor

All-Access
Sign in or create an account. AI Tutor is an All-Access benefit.
Sign Up

Need guidance? Ask a question or use the hint below.

AI Socratic Tutor is an All-Access Benefit

Unlock step-by-step Socratic hints, algorithm trace table walkthroughs, and error diagnostics for every Cambridge exercise.

You're chatting with an AI tutor, not a person. AI can make mistakes, so double-check its answers.

Exam-Style Question: Trace Flowchart Decision Branching

+35 XP

Task

The flowchart below evaluates student marks:

Flowchart: Student Marks Evaluation

Trace the execution for two inputs: Mark = 65 followed by Mark = 40. Complete the trace table rows.

Trace Table Matrix
# Mark Mark >= 50 Mark >= 40 Result OUTPUT
1
2

All-Access Required

Interactive exercises for Module 2 and beyond require an active plan.

Trace Table Assertions
○ Flowchart decision trace matches expected values