You are on page 1of 4

Godwin M.

Labaya (23-0246-135) CSIT132


BSIT-1 G3

1. Convert each decimal number to binary and write the negative binary value using
signed magnitude:

a. 110110
negative binary value: 1110110

b. 10001101
negative binary value: 110001101

c. 10001
negative binary value: 110001

d. 11111111
negative binary value: 111111111

e. 11000011
negative binary value: 111000011
2. Convert each decimal number to binary and write the 1's complement:
a. 10011010
1's complement: 01100101

b. 1110
1's complement: 0001
c. 10110001
1's complement:01001110

d. 11001
1's complement: 00110

e. 101100011
1's complement: 010011100

3. Convert each decimal number to binary and write the 2's complement:
a. 1001010
2's complement: 0110110

b. 11000010
2's complement: 00111110

c. 11101000
2's complement: 00011000

d. 1100011
2's complement: 0011101

e. 100011
2's complement: 011101

4. Convert each decimal number to binary and perform binary subtraction using 2's
complement. Show the solution:
1) 74 - 14
Binary: 74 (01001010)
14 (00001110)
2's complement of 14: (11110010)
74 01001010
- 14 - 11110010
60 00111100

2) 194 - 99
Binary: 194 (011000010)
99 (01100011)
2's complement of 99: (10011101)
194 011000010
- 99 - 10011101
95 001011111

3) 232 - 230
Binary: 232 (011101000)
230 (011100110)
2's complement of 230: (100011010)
232 011101000
-230 - 100011010
2 00000010

4) 99 - 50
Binary: 99 (01100011)
50 (00110010)
2's complement of 50: (11001110)
99 01100011
-50 - 11001110
49 00110001
5) 35 - 23
Binary: 35 (00100011)
23 (00010111)
2's complement of 23: (11101001)
35 00100011
- 23 - 11101001
12 00001100

You might also like