An automated safety system on a cargo ship triggers an emergency bilge pump if water is detected in the lower hold, provided that the main engine is running or the manual override has been activated.
This can be represented by the inputs:
The logic rule for triggering the bilge pump is given by: W and (E or M)W \text{ and } (E \text{ or } M)W and (E or M)
Complete the truth table by identifying the missing values for [A], [B], [C], [D], [E], and [F].
| WWW | EEE | MMM | E or ME \text{ or } ME or M | W and (E or M)W \text{ and } (E \text{ or } M)W and (E or M) |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | [A] |
| 0 | 0 | 1 | [B] | 0 |
| 0 | 1 | 0 | 1 | [C] |
| 0 | 1 | 1 | 1 | 0 |
| 1 | 0 | 0 | [D] | 0 |
| 1 | 0 | 1 | 1 | [E] |
| 1 | 1 | 0 | [F] | 1 |
| 1 | 1 | 1 | 1 | 1 |
Practise Edexcel GCSE Computer Science Truth tables with exam-style questions for GCSE Computer Science. 15 questions covering Applying logical operators in truth tables, matched to the Edexcel GCSE Computer Science (1CP2) specification and written in Paper 1 and Paper 2 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.