Hey all please I need help with this question and for 2c ple

Hey all please I need help with this question, and for 2c please I need a good excplantion.

Thank you in advance!

  2a. Convert unsigned binary 1101 1010 0001 1010 to decimal.

2b. Convert 16-bit two’s complement binary 1101 1010 0001 1010 to decimal.

2c. Do the results of #2a and #2b have the same decimal value? Why or why not?

Solution

2a.

Unsigned binary number is 1101 1010 0001 1010.

1101 1010 0001 1010

= 1*215 + 1*214 + 1*212 + 1*211 + 1*29 + 1*24 + 1*23 + 1*21

= 55834

Threfore 1101 1010 0001 1010 = 55834.

2b.

16-bit two’s complement binary number is 1101 1010 0001 1010.

Find 1\'s complement of the number.

Find 2\'s complement of the number.

0010 0101 1110 0101

1

..............................................................................

0010 0101 1110 0110

The original binary number is 0010 0101 1110 0110.

Convert binary to decimal number :

The value of 0010 0101 1110 0110 is

= 1*213 + 1*210 + 1*28 + 1*27 + 1*26 + 1*25 + 1*22 + 1*21

= 9702

Therefore the decimal value of 16-bit two’s complement binary is 9702.

2c.

Answer is NO.

Reason :

The decimal value of 2a is 55834.

The decimal value of 2b is 9702.

Since 55834 is not equal to 9702, #2a and #2b have no same decimal value.

215 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20
1 1 0 1 1 0 1 0 0 0 0 1 1 0 1 0
Hey all please I need help with this question, and for 2c please I need a good excplantion. Thank you in advance! 2a. Convert unsigned binary 1101 1010 0001 101
Hey all please I need help with this question, and for 2c please I need a good excplantion. Thank you in advance! 2a. Convert unsigned binary 1101 1010 0001 101

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site