Assignment IT223

1. Convert the following binary numbers to a decimal number.

(a) 0111

(b) 1010

(c) 1111100

2. Convert the following decimal numbers to an 8-bit binary number.

(a) 8

(b) 33

(c) 254

3. Perform the following additions using 4-bit binary numbers.

(a) 9 + 5 = 14

(b) 2 + 2 = 4

(c) 8 + 7 = 15

(d) 9 + 11 = 20 (note: overflow)

4. Convert the following decimal numbers to an 8-bit binary number

in two's complement format.

(a) 1

(b) -1

(c) -17

(d) 0

(e) What is the range of possible numbers (smallest negative to

biggest positive, in decimal) for a 5-bit binary two's

complement representation? Express your answer as both

as both binary and base 10 numbers.

5. Perform the following computations using 4-bit two's complement

binary numbers.

(a) 2 + 2 = 4

(b) 2 - 1 = 1

(c) -7 + 2 = -5

(d) 3 - 5 = -2

(e) -7 - 7 = -14 (note: overflow)

Post a Comment

0 Comments