Your first decision
Scenario
A student passes when their score is 60 or higher. Follow the flowchart step by step and check every branch with real numbers.
Start at the top. Read the score, answer the yes-or-no question, and follow the matching branch until it reaches End.
Start at the top. Read the score, answer the yes-or-no question, and follow the matching branch until it reaches End. 59 goes to No and shows “Try again.” Both 60 and 61 go to Yes and show “Pass.” Checking 60 proves that the exact cutoff (60) counts as passing.
Try it yourself
Follow the flowchart for scores 59, 60, and 61. Which branch does each score take?
Check your answer
59 goes to No and shows “Try again.” Both 60 and 61 go to Yes and show “Pass.” Checking 60 proves that the exact cutoff (60) counts as passing.
Work with an AI agent
Give the agent your flowchart and expected results. Ask it to explain the plan before changing code, make one small change, and run the tests. Review the diff and the actual test output before you commit.
Implement this flowchart in my chosen language. A score of 59 should show “Try again.” Scores of 60 and 61 should show “Pass.” Outline your plan, add the three tests, and show the results.
Download shared test cases
Your turn
Trace 59, 60, and 61, then apply the same reasoning to zero and one free seat.
Common mistake Leaving the boundary score out of the prediction.
Check your work
Five predicted decisions match their traces, including both exact boundaries.
This browser could not save your progress. Changes last until you leave the page.