Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write the logical expressions, using logical operators, to determine if bulbs A

ID: 3744963 • Letter: W

Question

Write the logical expressions, using logical operators, to determine if bulbs A and B are on or off for the following circuit using the variables SW1, SW2, SW3, where closed is true and open is false. (Hint: write two expressions: one for bulb A, and one for bulb B; the results are independent of whether bulb C is on or not.). STORE THE RESULTS IN A 1X2 ARRAY. For example, if A is on and B is off, the array would be [true, falsel (or [1, o) 2. Show the results for the following test cases: a) SW1 1, SW2 0, SW30 e) SW10, SW2 1, SW31

Explanation / Answer

a) sw1 = 1, sw2 = 0, sw3 = 0

[false,false]

b) sw1 = 1, sw2 = 1, sw3 = 0

[true,true]

c) sw1 = 1, sw2 = 0, sw3 = 1

[true,false]

d) sw1 = 1, sw2 = 1, sw3 = 1

[true,true]

e) sw1 = 0, sw2 = 1, sw3 = 1

[false,false]