Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A stair light X has a switch A at the bottom and a switch B at the top. It is wired through an XOR gate, so X = A XOR B.
A = 1 and B = 0. Somebody at the top changes B. What is the light now?XOR (EOR) gives 1 when the two inputs are different and 0 when they are the same: column 0, 1, 1, 0. It differs from OR only in the row 1 1. The symbol is the OR shape with an extra curved line behind its back.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. The truth table. The column is 0, 1, 1, 0. The light is on in rows, 0 1 and 1 0.
Step 2. The change. Now A = 1 and B = 1. The inputs are the same, so the light is , off.
Check. Either switch changes the light. That is what a person on the stairs needs.
Answer: (a) rows. (b) .
Log in to join the discussion.
Loading…