182k views
2 votes
Without changing their values, convert the following 2's complement binary numbers into 8-bit 2's complement numbers. (12 points) a. 1010 b. 011001 c. 1111111000

User Zts
by
5.5k points

1 Answer

6 votes

Answer:

a) 8-bit representation = 11111010

b) 8-bit representation = 00011001

c) 8-bit representation = 11111000

Explanation:

a. 1010

4-bit 2's complement binary representation

decimal value = -6

Since the number is negative pad with 1 to the left of MSB

8-bit representation = 11111010

b. 011001

6-bit 2's complement binary representation

decimal value = 25

Since the number is positive pad with 0 to the left of MSB

8-bit representation = 00011001

c. 1111111000

10-bit 2's complement binary representation

decimal = -8

Since the number is negative discard left most two bits

8-bit representation = 11111000

User Peter Fortuin
by
6.3k points