Due in class by start of class :
Frideay 30 January 2015
65 points
For the sanity of your TA, limit your solutions to 1 to 2 number conversions on any page side of paper. Be neat. You may use both sides of the paper. Circle and number (1a., 1b, etc.) the answer. You must do all numbers.
Integers. ( points - 1 point per step per number)
Click on the "List Generator" link below to access a web page that will generate the list of numbers to convert. To get the list for you, enter the digits of your z-id. Don't enter the 'z'.
This will display a page with 10 values, 5 integer values for Part 1 and 5 binary values for Part 2. List generator
Part 1.
The numbers are in decimal base and are to be stored in a 2 byte (16 bit) signed storage. Perform the following actions :
For each number, write down the number to be converted.
Ex.
divide by 2
123
61 1
30 1
15 0
7 1
3 1
1 1
0 1 1111011
shift and add
1111011
1 1
1 2+1 = 3
1 6+1 = 7
1 14+1 = 15
0 30+0 = 30
1 60+1 = 61
1 122+1 = 123
0000 0000 0111 1011
1111 1111 1000 0100
+ 1
-------------------
1111 1111 1000 0101 ( -123 signed 16-bit integer)
For each number, write down the number to be converted.