Write a Circuit Tester class that tests all switch combinations in Exercise E3.4, printing out actual
Question:
Write a Circuit Tester class that tests all switch combinations in Exercise •• E3.4, printing out actual and expected states for the switches and lamps.
Data from Exercise E3.4
Simulate a circuit for controlling a hallway light that has switches at both ends of
the hallway. Each switch can be up or down, and the light can be on or off. Toggling
either switch turns the lamp on or off.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: