Skip to main content
AP CSP course

F09 · Topic 3.5 · 3.6

Eligibility decision

Translate an inclusive age requirement and positive-capacity requirement into a Boolean condition, then compare AND with a faulty OR.

1. Predict first

The rule requires age at least 14 AND places greater than 0. Predict eligibility for(13,2),(14,0),(14,1).

Change it · step through · explain

Change an input, predict what will happen, then advance one step. Read why the state changes, reset and experiment. This fixed teaching model does not save progress or award XP.

Ready · Make a prediction

Ready to experiment
  1. Input 114Waiting
  2. Input 20Waiting

Ready to experiment

Why: Predict the first change, then advance one step.

Try this: Compare ages 13 and 14 with places 0 and 1.

2. Build your procedure

Write a truth table, a correct condition and two boundary tests. Explain which counterexample exposes an OR substitution.

Use AP CSP pseudocode, a language you know, or precise plain language. Your code is not executed here. Use the classroom assignment to save your response.

3. Check boundaries

Public worked tests for the fixed model
InputExpectedWhy this case
13,2AND false; OR trueOnly capacity is sufficient.
14,0AND false; OR trueOnly age is sufficient.
14,1Both trueA passing case alone conceals the operator defect.

4. Explain and reflect

Give an equivalent condition describing ineligibility and justify it.

Model limits: A fictional two-condition rule, not an actual decision about admission or a person’s rights. No real applicant data is collected.

Teacher guidance and scoring