Question 1190308: Perform the following for each 8 bit binary addition:
> add the two binary numbers
> interpret all there 8 bit binary numbers as a signed number (2’s complement)
> interpret all three 8 bit binary numbers as unsigned numbers
Binary
Number
Number 1 - 01111001
Number 2 - 00011110
Sum
Unsigned Decimal Value? Signed Decimal Value?
Number 1 - 00011011
Number 2 - 00010100
Sum
Unsigned Decimal Value? Signed Decimal Value?
Number 1 - 11110110
Number 2 - 10000011
Sum
Unsigned Decimal Value? Signed Decimal Value?
Could you please help me with this hard homework question by explaining it step-by-step? Thank you so much!
Answer by MathLover1(20850) (Show Source):
You can put this solution on YOUR website!
Addition is done exactly like adding decimal numbers, except that you have only two digits (0 and 1). The only number facts to remember are that
0+0 = 0, with no carry,
1+0 = 1, with no carry,
0+1 = 1, with no carry,
1+1 = 0, and you carry a 1
Number 1 - 01111001
Number 2 - 00011110
Binary value:
01111001 + 00011110= 010010111
-----1|1|1
0|1|1|1|1|0|0|1
0|0|0|1|1|1|1|0
--------------------add
0|1|0|0|1|0|1|1|1
Decimal value:
121 + 30= 151
Number 1 - 00011011
Number 2 - 00010100
--------1
0|0|0|1|1|0|1|1
0|0|0|1|0|1|0|0
----------------------add
0|1|0|1|1|1|1
Binary value:
00011011 + 00010100= 0101111
Decimal value:
27 + 20= 47
Number 1 - 11110110
Number 2 - 10000011
----1--------|1|1
---1|1|1|1|0|1|1|0
---1|0|0|0|0|0|1|1
-------------------------add
01|0|1|1|1|1|0|0|1
Binary value:
11110110 + 10000011
= 0101111001
Decimal value:
246 + 131
= 377
|
|
|