Computer Science, asked by usaiddgr8, 19 days ago

Solve: 56(10) + 22(10) using 2’s complement method.​

Answers

Answered by tkomatineni
1

Answer:

Explanation:

(56)₁₀ - (22)₁₀

Find:

Solve (56)₁₀ - (22)₁₀ using 2’s complement method.

To find:

(56)₁₀ = (111000)₂

(22)₁₀ = (010110)₂

Now, find 2's complement of (010110)₂.

To find 2's complement, first find 1's complement and then add 1 to the result.

1'complement =     1 0 1 0 0 1

                             +             1

2's complement = 1 0 1 0 1 0

Then, add 111000 and 101010

   1 1 1 0 0 0

+   1 0 1 0 1 0

1 1 0 0 0 1 0

The left most bit of the result is called carry and it is ignored.

So, the answer is 100010.

Now, convert 100010 to decimal.

(100010)₂ = (34)₁₀

Similar questions