CSCI 130

Homework 1

Due Thursday, January 22, 2009

 

For full credit, show all work!

 

Consider the following binary number:  1010 1001

 

What is the decimal number in the following binary number schemes?

 

1.)    Unsigned Positive Integer

2.)    Negative Integer using Sign Magnitude

3.)    Negative Integer using Two’s Complement

4.)    Floating Point

 

5.)    Represent the number -89 in Two’s complement binary.

 

6.)    Represent the numbers 146,506,784 and –0.073405 in decimal scientific notation.

 

7.)    2 Points: Represent the number 4.45 in Binary Floating Point – show intermediate steps.

 

8.)    Convert the numbers 41 and –79 to two’s complement binary – add them together using binary addition – convert the result back to decimal.

9.)    Is there an underflow or overflow situation adding the following two binary numbers in two’s complement?  How do you know?

1001 1001
1100 1110