Curriculum

Curriculum

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.

Flowchart Your first decision

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.
Apply this decision to the last available seat
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.