Homework #1
January 4, 2011
1
Homework #1
due January 19 at noon
ECE 15a
Winter 2011
1. Do the following conversion problems:
(5p)
(a) Convert decimal 35.4377 to binary. Assume the fractional part of the number
can use only 8 bits.
(5p)
(b) Calculate the binary equivalent of 1/3 out to 8 places. Then convert from
binary to decimal. How close is the result to 1/3?
2. A computer has a word length of 8 bits, including sign. Obtain 1’s and 2’s complement
of the following binary numbers:
(2p) (a) 11101010
(2p) (b) 01111110
(2p) (c) 00000001
(2p) (d) 10000000
(2p) (e) 00000000
3. A computer has a word length of 8 bits, including sign.
(5p) If 2’s complement is used to represent negative numbers, what range of integers
can be stored in the computer?
(5p) If 1’s complement is used to represent negative numbers, what range of integers
can be stored in the computer?
Express you answer in decimal.
4. A computer has a word length of 8 bits including sign. A= 10111001, B = 01101111 are
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview.
Sign up
to
access the rest of the document.
 Winter '08
 M
 Binary numeral system, Decimal, word length

Click to edit the document details