6.2k views
5 votes
A long corridor has a single light bulb and two doors with light switch at each door. design logic circuit for the light; assume that the light is off when both switches are in the same position.

User Spkersten
by
3.5k points

1 Answer

3 votes

Answer and Explanation:

Let A denote its switch first after that we will assume B which denotes the next switch and then we will assume C stand for both the bulb. we assume 0 mean turn off while 1 mean turn on, too. The light is off, as both switches are in the same place. This may be illustrated with the below table of truth:

A B C (output)

0 0 0

0 1 1

1 0 1

1 1 0

The logic circuit is shown below

C = A'B + AB'

If the switches are in multiple places the bulb outcome will be on on the other hand if another switches are all in the same place, the result of the bulb will be off. This gate is XOR. The gate is shown in the diagram adjoining below.

A long corridor has a single light bulb and two doors with light switch at each door-example-1
User MrQBerrt
by
3.8k points