Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please show work 1. (20 points) Obtain the l\'s and 2\'s complements of the foll

ID: 3748865 • Letter: P

Question

please show work

1. (20 points) Obtain the l's and 2's complements of the following binary numbers: a. 00100000 b. 00000000 d. 10010010 2. (20 points) Convert the following decimal numbers to 8-bit signed 2's complement number representation: a) 39 b) -39 c) 115 d)-90 3. (30 points) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the result should be negative, find its 2's complement and affix a minus sign. a. 10010 - 10001 b. 100011 100110 c. 1000- 110101 4. (30 points) Convert decimal +49 and +29 to binary, using the signed-2's-compliment representation and enough digits to accommodate the numbers. Then perform the binary equivalent of (+29)+(-49), (-29)+(+49), and (-29)+(-49). Convert the answers back to decimal and verify that they are correct.

Explanation / Answer

1.

1's complement for a binary number

2's complement for a binary number

a) 00100000

1's complement: 11011111

2's complement: 11011111+1 =11100000

b)00000000

1's complement: 11111111

2's complement: 11111111+1 =100000000

c)11111111

1's complement: 0

2's complement: 0+1 =1

d)10010010

1's complement: 1101101

2's complement: 1101101+1 =1101110

---------------------------------------------------------------------------------------------------------------------------------