ECE 2030 E,F
Homework #1 - Solutions
(1) Textbook #1-4 – What is the exact
number of bits in a memory that contains:
(a) 96K bits?
Ans. = 96x2
10
= 96x1024 = 98,304
(b) 640M bits?
Ans. = 640x2
20
= 640x1,024x1,024 = 640x1,048,576 = 670,088,640
(c) 4G bits ?
Ans. = 4x2
30
= 4 x 1,024 x 1,024 x 1,024 = 4,294,967,296
(2) Textbook #1-6 – What is the decimal equivalent of the largest integer that can be
obtained with
(a) 11 bits?
Ans. = 11111111111
2
= 2
11
-1 = (2x1,024)-1 = 2,047
(b) 25 bits?
Ans. 2
25
-1 = (32x1,024x1,024)-1 = 33,554,431
(3) Textbook #1-8 – Convert the following decimal numbers to binary:
(a) 193
10
= 128+64+1 = 11000001
2
(b) 751
10
= 512+128+64+32+8+4+2+1 = 1011101111
2
(c) 2007
10
= 1,024+512+256+128+64+16+4+2+1 = 11111010111
2
(d) 19450
10
= 16,384+2,048+512+256+128+64+32+16+8+2
= 100101111111010
2
(4) Textbook #1-9 – Convert the given numbers (in
bold
) to the other bases:
Decimal
Binary
Octal
Hexidecimal (Hex)
369.3125
101110001.0101
561.24
171.5
189.625
10111101.101