ECE-223, Solutions For Assignment #1: Chapter 1, Digital Design, M. Mano, 3 Edition
ECE-223, Solutions For Assignment #1: Chapter 1, Digital Design, M. Mano, 3 Edition
1.4)
Convert the following numbers with the indicated bases to decimal:
(4310)5, and (198)12.
1.7)
Express the following numbers in decimal: (10110.0101)2, (16.5)16, and (26.24)8
(14.5 = 8 * 1.8125, Reason is that 1110.10 is the same as 1.11010 shifted left 3 times; i.e.
multiplies by 8.)
1.9) Convert the hexadecimal number 68BE to binary and then from binary convert it to octal.
68BE = 0110 1000 1011 1110 = 110 100 010 111 110 = 64276 (octal)
1.10) Convert the decimal number 345 to binary in two ways: (a) convert directly to binary; (b)
convert first to hexadecimal, then from hexadecimal to binary, Which method is faster?
Results of repeated division by 2: quotients are followed by reminders:
a) 345/2 = 172 (1); 86(0); 43(0); 21(1); 10(1); 5(0); 2(1); 1(0); 0(1)
Answer 101011001.
b) Results of repeated by division by 16(much shorter):
345/16 = 21(9); 1(5); 0(1) answer = 159 (hex) = 0001 0101 1001 = 101011001 (bin)
1.16) Obtain the 1’s and 2’s complements of the following binary numbers:
a) 11101010
b) 01111110
c) 00000001
d) 10000000
e) 00000000
1.18) Perform subtraction on the following unsigned binary number using 2’s-complement of the
subtrahend. Where the result should be negative, 2’s complement it and affix a minus sign.
a) 11011 – 11001
b) 110100 – 10101
c) 1011 – 110000
d) 101010 – 101011
1.24) Represent decimal number 6027 in (a) BCD (b) excess-3 code, (c) 2421 code.
6 0 2 7
a) BCD 0110 0000 0010 0111
b) EXCESS-3 1001 0011 0101 1010
c) 2421 1100 0000 0010 1101