Curriculum

Curriculum

Verify Every Path Produces an Output and Ends

Scenario

A student drafted the lab equipment loan flowchart (hasStudentId == true, then overdueCount == 0). The Yes branch outputs Approved and connects to End, and the first No branch outputs Declined: Missing student ID -> End, but the No arrow from overdueCount == 0 stops with no output.

Selected choicePick a choice below
Result—

Try it yourself

Trace hasStudentId = true and overdueCount = 1 in the draft flowchart and predict what goes wrong.

Reveal the explanation
  1. Path 1: hasStudentId = false, overdueCount = 0

    Declined: Missing student ID -> End

  2. Path 2: hasStudentId = true, overdueCount = 0

    Approved -> End

  3. Path 3: hasStudentId = true, overdueCount = 1

    Draft: Dead end | Fixed: Declined: Return overdue items first -> End

Count the diamonds and trace every Yes and No arrow one by one like a checklist. Fixing the dangling arrow ensures no real student request can stall without a clear decision.

Download shared test cases

Your turn

Audit a library checkout flowchart with two checks: cardActive == true and fineBalance == 0. One No arrow has no output box. Trace all 3 paths and write the missing output -> End step.

Common mistake Testing only the happy path (cardActive = true, fineBalance = 0) and assuming the whole flowchart is complete.

Check your work

A 3-path audit list showing Start -> output -> End for all three branches, including the repaired No branch.

Quick check

How can you be sure a multi-decision flowchart has no dead-end paths?
Show the answer and reasoning

Correct answer Trace both Yes and No arrows from every diamond until each path outputs a result and reaches End.

Every diamond splits flow into two arrows. Auditing every Yes and No arrow guarantees no branch is left incomplete.