You are on page 1of 1

ELEC 2420

Homework 4

Issued: Oct. 27, 2014 (Monday)


Due: Nov. 7, 2014 (Friday)

(1)

Convert the decimal numbers +61 and +27 to their 8-bit 2's complement
representations. Then perform the binary equivalent of
(a)
(+27) + (61);
(b)
(27) + (+61); and
(c)
(27) + (61).
Convert the answers back to decimal and verify that they are correct.

(2)

Convert the decimal numbers +65 to its 8-bit 2's complement representation. Then
perform the binary equivalent of
(a)
(+65) + (+65); and
(b)
(65) + (65).
Convert the answers back to decimal and discuss the result.

(3)

Convert the decimal numbers 85 and 108 to their base-8 representations. Then
perform the base-8 equivalent addition of (85) + (108). Convert the answer back to
decimal and verify that they are correct.

(4)

Convert the decimal numbers 85 and 108 to their base-16 representations. Then
perform the base-16 equivalent addition of (85) + (108). Convert the answer back to
decimal and verify that they are correct.

HKUST 2014 Fall

HW 4 - 1

Ki

You might also like