Problem:
In a 3-story building, a stairwell is illuminated by a single light, L. The light can be toggled on or off
from each floor by flipping an electrical switch on that floor. S1, S2, and S3 are the switches on the 1st,
2nd, and 3rd floors, respectively.
Required:
Question 1- Design and draw a circuit implementing this system using 2-input XOR gates.
Question 2- Design and draw the circuit using a decoder with AND, OR, NOT gates. Implement your design using as few gates as possible.
Question 3- Design and draw the circuit using the smallest MUX possible.
Please show your work and explain it.