Assignment:
In the circuit of figure, suppose a photo detector is used to determine whether the lamp worked. if the lamp does not light when both switches are closed, the photo detector causes a buzzer to sound. Construct the ladder logic diagram for this system.

Provide complete and step by step solution for the question and show calculations and use formulas.