CSC 362 Homework Assignment #1



CSC 362 Homework Assignment #1

Due Date: Thursday, September 6

Word Processor all answers (figures or answers that are too awkward to type can be hand-drawn or hand-written). Each problem (e.g,. 1a, 1b, 2a, 3b, etc) is worth 5 points. Show your work for a chance at partial credit – if you don’t show your work and you get an answer wrong, you get it all wrong!

1) Convert 10110011 to decimal assuming the number is stored in each of the following representations:

a. Unsigned magnitude

b. Signed magnitude

c. One’s complement

d. Two’s complement

2) Convert 1101100110101000 to decimal assuming that the number is stored in

a. Signed magnitude

b. Two’s complement

3) Do the following conversions

a. -25 to 8-bit 2’s complement

b. -1678 to 16-bit 1’s complement

c. -17235 to 16-bit signed magnitude

d. 1111000011111101 from 1’s complement to decimal

e. 1101101100111000 from 2’s complement to decimal

4) Using the 14-bit floating point representation from chapter 2 (figure 2.2) where exponents are represented using excess-16, convert the following

a. 01011110000111 to decimal

b. -3.15625 to binary

c. 10111011011000 to decimal

d. 9.8 to binary

5) Do the following binary multiplication and division problems. Use the tabular approach (as covered in class, see the sample problems on the web site and power point notes). For a, d & e, the numbers are unsigned magnitude. For b & c, the numbers are two’s complement – use Booth’s algorithm for these two.

a. 11010 * 10111 (unsigned)

b. 10110 * 00101 (two’s complement, use Booth’s algorithm)

c. 10101 * 10011 (two’s complement, use Booth’s algorithm)

d. 110011 / 000101 (unsigned)

e. 111101 / 000011 (unsigned)

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download