An automated garden irrigation system turns on the sprinkler (SSS) if the soil is dry (DDD) or the temperature is high (HHH), and it is not currently raining (RRR).
The table identifies the three inputs:
| Input | Description |
|---|---|
| D | Soil is dry |
| H | Temperature is high |
| R | It is currently raining |
The logic system is represented by the expression:
S=(D OR H) AND NOT R S = (D \text{ OR } H) \text{ AND NOT } R S=(D OR H) AND NOT RComplete the logic diagram below by identifying which logic gate (AND, OR, or NOT) belongs in each of the dashed boxes labeled Box 1, Box 2, and Box 3.

Specify the gate for each box:
Practise OCR GCSE Computer Science Boolean logic with exam-style questions for GCSE Computer Science. 27 questions, matched to the OCR GCSE Computer Science (J277) specification and written in Component 01 and Component 02 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.