#### Assignment 5

##### Due: 9:00am, Thu Feb 23rd, 2023

Note: Make reasonable assumptions where necessary and clearly state them.
Feel free to discuss problems with classmates, but the only written material
that you may consult while writing your solutions are the textbook
and lecture slides/videos.
Solutions should be uploaded on Gradescope.
** Show your solution steps ** so you receive partial credit for incorrect
answers and we know you have understood the material. Don't just show us the
final answer.

Every homework has an automatic penalty-free 1.5 day extension to
accommodate any covid/family-related disruptions. In other words, try to
finish your homework by Thursday 9:00am to keep up with the lecture
content, but if necessary, you may take until Friday 11:59pm.

- Convert the decimal number -42.765625 into the IEEE 754 format for a single-precision floating-point number. (20 points)
- Convert the following IEEE 754 single-precision floating-point register into a decimal number: 0 10000111 10011100000000000000000. (20 points)
- Convert the following IEEE 754 double-precision floating-point register into a decimal number: 1 10000000101 0011000000000000000000000000000000000000000000000000. (20 points)
- What is the result of adding the following two IEEE 754 single-precision floating-point registers? Show your steps as you perform the math in binary
and produce the final IEEE 754 value that will be placed in the register. (20 points)

0 10000100 11010000000000000000000

0 10000101 00110000000000000000000

- Compute the truth table for a logic block that takes in a 3-bit input
and produces a 2-bit output that represents the number of 0's in the 3-bit
input. For example, if the input is 001, the output should be 10, i.e.,
there are two 0's in the input 001. Express each output bit with a
sum-of-product Boolean equation.
(20 points)