document.write( "Question 254834: how would you design a circuit for ahall light that has switches at both ends of hall such that the light can be turned on or off from either switch. I have to use this problem for this question Electrical circuits are designed using truth tables.circuit consists of switches. And wired in series as p^q. two switches wired in parallel can be use as p v q. Can you show me how to do this problem using the truth table \n" ); document.write( "
Algebra.Com's Answer #187167 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
a diagram of your switch could look like this:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "                      A1                             A2\r\n" );
document.write( "                      xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n" );
document.write( "\r\n" );
document.write( "battery xxxxxxxxxxxxxxx  C1                      C2  xxxx light xxxxx ground\r\n" );
document.write( "\r\n" );
document.write( "                      xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n" );
document.write( "                      B1                             B2\r\n" );
document.write( "

\n" ); document.write( "you have battery coming in from the left going through the switches and then through the light and then to ground.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the following connections are possible through switch 1 and switch 2.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "                       switch 1              switch 2           light\r\n" );
document.write( "\r\n" );
document.write( "                       C1 to A1              C2 to A2             ON\r\n" );
document.write( "\r\n" );
document.write( "                       C1 to A1              C2 to B2             OFF\r\n" );
document.write( "                       \r\n" );
document.write( "                       C1 to B1              C2 to B2             ON\r\n" );
document.write( "\r\n" );
document.write( "                       C1 to B1              C2 to A2             OFF\r\n" );
document.write( "

\n" ); document.write( "if we let:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "C1 to A1 = UP
\n" ); document.write( "C1 to B1 = DOWN
\n" ); document.write( "C2 to A2 = UP
\n" ); document.write( "C2 to B2 = DOWN\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "then the table becomes:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "                       switch 1              switch 2           light\r\n" );
document.write( "\r\n" );
document.write( "                       UP                    UP                   ON\r\n" );
document.write( "\r\n" );
document.write( "                       UP                    DOWN                 OFF\r\n" );
document.write( "                       \r\n" );
document.write( "                       DOWN                  DOWN                 ON\r\n" );
document.write( "\r\n" );
document.write( "                       DOWN                  UP                   OFF\r\n" );
document.write( "

\n" ); document.write( "this becomes the basis for your truth table.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "in order to construct the truth tables, we will have 4 variables.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "they will be U1, U2, D1, D2\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "U1 means switch 1 is up.
\n" ); document.write( "U2 means switch 2 is up.
\n" ); document.write( "U3 means switch 3 is down.
\n" ); document.write( "U4 means switch 4 is down.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "T means True means the switch is as indicated.
\n" ); document.write( "F means False means the switch is not as indicated.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the 5th column will be L representing the light.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "T means True means the light is on.
\n" ); document.write( "F means False means the light is off.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Here's what your truth table would look like if constructed this way.\r
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "                        U1  D1  U2  D2  L\r\n" );
document.write( "                        T   F   T   F   T\r\n" );
document.write( "                        T   F   F   T   F\r\n" );
document.write( "                        F   T   F   T   T\r\n" );
document.write( "                        F   T   T   F   F\r\n" );
document.write( "

\n" ); document.write( "if the implication is that when a switch is not in the up position, then it has to be in the down position, we can simplify the truth table to be as follows:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\r\n" );
document.write( "                        U1  U2  L\r\n" );
document.write( "                        T   T   T\r\n" );
document.write( "                        T   F   F\r\n" );
document.write( "                        F   F   T\r\n" );
document.write( "                        F   T   F\r\n" );
document.write( "

\n" ); document.write( "U1 being true means that switch 1 is in the up position.
\n" ); document.write( "U1 being false means that switch 1 is in the down position.\r
\n" ); document.write( "\n" ); document.write( "Similarly for U2\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the logic statements for this truth table would look like:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "U1 & U2 => L\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "this means that the state of U1 and the state of U2 both define the state of L.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Hopefully this is what you are looking for, or at least something similar to it.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );