Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

EE 2310 Homework #1 Solutions - Binary Numbers and Numeric Conversions

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

EE 2310 Homework #1 Solutions – Binary Numbers and Numeric

Conversions

1. Convert the following positive decimal numbers to binary (take the binary point of
non-exact fractions to at least 2x the decimal number of places):

104 110 1000 4. 25 100.01 100 110 0100

73 100 1001 0.9375 0.1111 254.75 1111 1110.11

0.5625 0.1001 127.875 111 1111.111 64.375 100 0000.011

2. Convert the following positive binary numbers to decimal:

11 1111 63 1110.11 14.75 10 1111.101 47.625

101 1111 95 0.00001 0.03125 11 0011.011 51.375

3. Convert the following binary numbers to hexadecimal (prefix the hexadecimal


number with “0x,” which means “hexadecimal number”).

100000011111101111001010.1111 0x 81fbca.f 10011.11 0x 13.c

1111.11111000111010111001 0xf.f8eb9 1011010.011 0x5a.6

10111111000.111 0x 5f8.e 0.0101 1101 111 0x 0.5de

4. Convert the following hexadecimal numbers to binary (byte form):

0x aa.f7 1010 1010.11110111 0x 2cb3.a85 10 1100 1011 0011.1010 1000 0101

0x 79ace.b 111 1001 1010 1100 1110.1011 0x c8.38 1100 1000.0011 1


5. Convert the following two’s complement binary numbers to decimal.
(Remember to show all 8 bits in 2’s complement, which includes the sign bit).

1101 1011 −37 1111 1111 −1 0100 1000 72

1000 1100 −116 0110 0110 102 1111 0001 −15

0011 1110 62 1010 0001 −95 1000 0001 −127

6. Convert the following decimal numbers to signed binary numbers, using the 2’s
complement sign convention:

−8 1111 1000 −96 1010 0000 44 0010 1100

−84 1010 1100 17 0001 0001 −111 1001 0001

−17 1110 1111 53 0011 0101 −68 1011 1100

7. Perform the indicated math operation (numbers are two’s complement binary).
Write the decimal value of the answer below the binary answer.

1000 0111 (−121) 0010 1000 (40)


+0111 1100 (+124) − 1111 1010 (−[− 6])
(1) 0000 0011 (+ 3) + 0000 0110 ( + 6)
0010 1110 ( + 46)

8. Perform the indicated math operation (numbers are two’s complement binary).
Write the decimal value of the answer below the binary answer.

0000 1111 (+15) 1111 1100 (−4)


−0101 0000 (−80) − 1111 0001 (−[−15])
These last two 1011 1111 −65 (1) 0000 1011 +11
problems are worked
out, showing how to 0000 1111 (+15) 1111 1100 (−4)
“subtract by adding.” +1011 0000 +(−80) + 0000 1111 (+15)
1011 1111 (−65) (1) 0000 1011 (+11)

Note: This problem set is not associated with any EE 2310 CLO’s.

2 EE 2310, Homework #1

You might also like