Docsity

Solutions to Chapter 7 Homework: Binary Representations and Logic Gates, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
Homework CH7 Solutions
CH7.1
None
CH7.2
E7.1 (a) For the whole part we have:
Quotient Remainders
23/2 11 1
11/2 5 1
5/2 2 1
2/2 1 0
1/2 0 1
Reading the remainders in reverse order we obtain:
2310 = 101112
For the fractional part we have
2 0.75 = 1 + 0.5
2 0.50 = 1 + 0
Thus we have
0.7510 = 0.1100002
Finally, the answer is 23.7510 = 10111.112
(b) For the whole part we have:
Quotient Remainders
17/2 8 1
8/2 4 0
4/2 2 0
2/2 1 0
1/2 0 1
Reading the remainders in reverse order we obtain:
1710 = 100012
For the fractional part we have
2 0.25 = 0 + 0.5
2 0.50 = 1 + 0
Thus we have
0.2510 = 0.0100002
Finally, the answer is 17.2510 = 10001.012
(c) For the whole part we have:
Quotient Remainders
4/2 2 0
2/2 1 0
1/2 0 1
Reading the remainders in reverse order we obtain:
410 = 1002
pf3

Partial preview of the text

Download Solutions to Chapter 7 Homework: Binary Representations and Logic Gates and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

Homework CH7 Solutions CH7. None CH7. E7.1 (a) For the whole part we have: Quotient Remainders 23/2 11 1 11/2 5 1 5/2 2 1 2/2 1 0 1/2 0 1 Reading the remainders in reverse order we obtain: 2310 = 10111 2 For the fractional part we have 2  0.75 = 1 + 0. 2  0.50 = 1 + 0 Thus we have 0.75 10 = 0.110000 2 Finally, the answer is 23.75 10 = 10111.11 2 (b) For the whole part we have: Quotient Remainders 17/2 8 1 8/2 4 0 4/2 2 0 2/2 1 0 1/2 0 1 Reading the remainders in reverse order we obtain: 1710 = 10001 2 For the fractional part we have 2  0.25 = 0 + 0. 2  0.50 = 1 + 0 Thus we have 0.25 10 = 0.010000 2 Finally, the answer is 17.25 10 = 10001.01 2 (c) For the whole part we have: Quotient Remainders 4/2 2 0 2/2 1 0 1/2 0 1 Reading the remainders in reverse order we obtain: 410 = 100 2

For the fractional part, we have 2  0.30 = 0 + 0. 2  0.60 = 1 + 0. 2  0.20 = 0 + 0. 2  0.40 = 0 + 0. 2  0.80 = 1 + 0. 2  0.60 = 1 + 0. Thus we have 0.30 10 = 0.010011 2 Finally, the answer is 4.3 10 = 100.010011 2 E7.7 (a) First we convert to binary 2210 = 16 + 4 + 2 = 10110 2 Because an eight-bit representation is called for, we append three leading zeros. Thus +22 becomes 00010110 one’s complement: 11101001 add 1 + 11101010 Thus the eight-bit two’s complement representation for -22 is

(b) First we convert +30 to binary form 3010 = 16 + 8 + 4 + 2 = 11110 2 Attaching leading zeros to make an eight-bit result we have 3010 = 00011110 2 Then we take the ones complement and add 1 to find the two’s complement: one’s complement: 11100001 add 1 + 11100010 Thus the eight-bit two’s complement representation for -30 10 is

E7.8 First we convert 19 10 and -4 10 to eight-bit two’s complement form then we add the results. 19 00010011 -4 111111100 15 00001111 Notice that we neglect the carry out of the left-most bit. CH7. E7.10 See Table 7.5 in the book. CH7. E7.13 The truth table for the exclusive-OR operation is A B AB 0 0 0 0 1 1 1 0 1 1 1 0