# MCS-284 Chapter 3 Homework

When turning in a homework problem, mark it with the exercise number shown in bold here. These will be the reference numbers I use in reporting back your standing on the homework.

• 3.x1: All numerals in this problem are given in six bit wide two's complement signed notation, and your answers should be too. Answer each of the following arithmetic problems, and in each also indicate whether overflow occurred, and if so, how far off the answer is.

1. 011010 + 000011 =

2. 010111 + 110001 =

3. 011010 - 101101 =

4. 101001 - 000011 =

• 3.10.4 on page 292.

• 3.x2: Write the 32 bits for the floating point number that results from multiplying by eight the floating point number

```1000 1010 1010 1010 0000 0000 0000 0000
```

(Note that this is divided into chunks of four bits just to help you count positions more accurately. The chunks do not correspond to the logically significant portions of the representation.) Be sure to explain how you arrived at your answer.

• 3.x3: The number x is less than −32. When its value is written as a single precision floating point numeral, three of the bits are 1 (and so the other 29 bits are 0). Find one possible value for x and state it in both decimal form and as a single precision floating point numeral.

Instructor: Max Hailperin