homework_1_ece15a_2011

homework_1_ece15a_2011 - Homework #1 due January 19 at noon...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
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
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

homework_1_ece15a_2011 - Homework #1 due January 19 at noon...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online