Skip to content
Tactiverge

Olympiad · Practice · public practice problem

When should the vent open?

Difficulty 3 of 510 points in 4 partsSuggested time ~15 min (never timed here)

The problem

A greenhouse roof vent has three inputs: H = 1 when it is too hot, R = 1 when it is raining, M = 1 when someone presses the manual override. The rule is: the vent opens when (H AND NOT R) OR M.

  1. Part (a) · 2 points

    How many rows does the full truth table have?

    (pure number)Tolerance: exact

  2. Part (b) · 3 points

    In how many of those rows is the vent open?

    (pure number)Tolerance: exact

  3. Part (c) · 2 points

    It is hot and raining, and nobody presses the override (H = 1, R = 1, M = 0). The vent is…

  4. Part (d) · 3 points · rubric with 2 criteria

    Why should the builder test every row of the table, not just the 'hot and dry' case?

    Written parts stay in your browser. Reveal the worked solution to mark yourself against the rubric.

Checked so far: 0 of 7 automatically marked points, plus 3 for written parts you mark yourself against the rubric. Nothing is saved.

Stuck? Hints, then the worked solution

Written with AI assistance. Review status: technically-checked (answers recomputed independently with units verified by automated tests); not yet reviewed by an educator or judge.