document.write( "Question 1191545: Find the result of each operation assume A = 11110001 and B = 10101010\r
\n" );
document.write( "\n" );
document.write( "a. A AND B\r
\n" );
document.write( "\n" );
document.write( "b. A NAND B\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "This is my last question for the day! Can you explain me the steps of this question and after, I'll do others by myself? Thanks again! \n" );
document.write( "
Algebra.Com's Answer #823359 by math_tutor2020(3835) ![]() You can put this solution on YOUR website! \n" ); document.write( "Part (a)\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "We'll be doing a bitwise \"AND\" operation here. \n" ); document.write( "If the inputs are both 1, then the output is 1. Otherwise the result is 0.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "It helps to set up a table or grid like this to line up the digits. \n" ); document.write( "
\n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Answer: 10100000\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "============================================================================ \n" ); document.write( "Part (b)\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "The \"NAND\" operator means \"NOT AND\". \n" ); document.write( "What we do is first use the \"AND\" like normal, but then negate the result. \n" ); document.write( "Here's a reference table \n" ); document.write( "
\n" ); document.write( "The last two columns are complements of one another (aka opposites) \n" ); document.write( "Note the first two columns represent the sequence 00, 01, 10, 11 which is counting from 0 base 10 to 3 base 10 in binary.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Therefore we can form this bitwise NAND table for the given inputs \n" ); document.write( "
\n" ); document.write( "As you can see, the bottom row for NAND is the flipped version of the result of part (a) earlier.\r \n" ); document.write( " \n" ); document.write( "\n" ); document.write( "Answer: 01011111 \n" ); document.write( "I'm keeping the leading zero because it helps retain the same string length as all the other binary numbers (and it helps show the connection to part a better). \n" ); document.write( "Though of course you could easily remove that first 0. \n" ); document.write( " \n" ); document.write( " \n" ); document.write( " |