Answer to Question #221039 in Algorithms for NYARKO GODFRED

Question #221039

Compute the value 110111001011102-111110000011012 using 10's complement


1
Expert's answer
2021-08-01T00:29:26-0400

11 0111 0010 11102 in compliment to 2 code is 0011 0111 0010 1110

To get the compliment code of -11 1110 0000 11012 we first inverse all bits to get reverse code:

1100 0001 1111 0010 and then we add one to it. As a result, we get 1100 0001 1111 0011.

After that we perform ordinary bitwise addition (the dots indicate the carry to the most significant bit):

      .... .... ..
 0011 0111 0010 1110
+1100 0001 1111 0010
 -------------------
 1111 1001 0010 0000

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS