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

l. (20%) Integer Representations. I) Write the hexadecimal representation of the

ID: 3871742 • Letter: L

Question

l. (20%) Integer Representations. I) Write the hexadecimal representation of the word 2) For the word 0000 0000 0000 0000 0000 0000 0001 1001to what decimal (base 10) number does it represent, assuming that it is an unsisned integer? 3) For the word 0000 0000 0000 0000 0000 0000 0001 1001two what decimal (base 10) number does it represent, assuming that it is a twos complement integer? 4) For the word what decimal (base 10) number does it represent, assuming that it is a two's complement integer?

Explanation / Answer

Binary             Decimal         Hexadecimal

0000                0                    0

0001                1                     1

0010                2                     2

0011                3                     3

0100                4                     4

0101                5                    5

0110               6                     6

0111               7                     7

1000              8                     8

1001              9                     9

1010              10 A

1011               11                  B

1100               12                  C

1101               13                  D

1110                14                 E

1111                15                 F

Using above representation we can convert the below binary to hexadecimal

1) 0xDFB7AA31

Binary:      1101 1111 1011 0111 1010 1010 0011 0001
Hexadecimal: D    F    B    7    A     A    3      1

2)

0000 0000 0000 0000 0000 0000 0001 1001=   1*24+1*23 +0*22+0*21 +1*20

                                                                                     =     16+ 8+0+0+1=25