logic - Three switches, one light -


i'm not 100% stack overflow correct exchange post this; if isn't please let me know.

i have 3 switches, corresponding 1 light. when 1 of switches flipped, light should go on off or off on. implementation, i'm allowed use xor gates.

after drawing out truth table, becomes clear light in on state when 1 of switches in position, or 3 of switches in position (the light off 3 switches in down position). able deduce new state of light one-switch case xor'ing each pair of switches (3 pairs). however, i'm not sure how find out how differentiate between 3 switches in position (which corresponds light being on), , 3 switches in down position (light off). understand, impossible create , gate xor gates, i'm stuck here..

any appreciated!

let's 3 switches a, b , c : try a xor b xor c.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -