SOLUTION: Find the result of each operation assume A = 11110001 and B = 10101010 a. A AND B b. A NAND B This is my last question for the day! Can you explain me the steps of this

Algebra.Com
Question 1191545: Find the result of each operation assume A = 11110001 and B = 10101010
a. A AND B
b. A NAND B

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!

Answer by math_tutor2020(3835)   (Show Source): You can put this solution on YOUR website!

Part (a)

We'll be doing a bitwise "AND" operation here.
If the inputs are both 1, then the output is 1. Otherwise the result is 0.

It helps to set up a table or grid like this to line up the digits.
A11110001
B10101010
A AND B (bitwise)10100000


Answer: 10100000

============================================================================
Part (b)

The "NAND" operator means "NOT AND".
What we do is first use the "AND" like normal, but then negate the result.
Here's a reference table
ABA AND BA NAND B
0001
0101
1001
1110

The last two columns are complements of one another (aka opposites)
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.

Therefore we can form this bitwise NAND table for the given inputs
A11110001
B10101010
A NAND B (bitwise)01011111

As you can see, the bottom row for NAND is the flipped version of the result of part (a) earlier.

Answer: 01011111
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).
Though of course you could easily remove that first 0.


RELATED QUESTIONS

NAND. A NAND is an AND followed by a NOT. The notation a ↑ b means that a and b are (answered by Shin123)
let R* be the set of all real numbers except 0. define * on R* by letting a*b = |a|b. a) (answered by venugopalramana)
Let the operation § be defined for all positive integers a and b by the equation (answered by jim_thompson5910)
Suppose that the operation * is defined by a*b=ab-b for every pair if integers a and b.... (answered by fcabanski)
my question is find the slope of the line containing each pair of points? points:... (answered by rfer)
If the operation * is defined as a*b ={{{1/ab}}} then find out... (answered by josgarithmetic,ikleyn)
a*b=[{a+b}/5]-1 for all a,b in R, 1.is R closed? 2. is the operation commutative? 3.... (answered by ikleyn)
My question is about factoring. If factoring is not considered an operation on exponents, (answered by ankor@dixie-net.com)
This was a two part question. I figured out the answer for A but not B. Find... (answered by Fombitz)