Please help with the following converting computer science questions. Thanks! 1.
ID: 3768503 • Letter: P
Question
Please help with the following converting computer science questions. Thanks!
1.Convert the following numbers to indicated bases.
a.(1011110000010110)2 = ( )16
b.(3AF2)16 = ( )8
1. A computer handles signed integers in the range -128 to +127 in 2’s complement form, using eight bits. Determine the 8-bit representation for the following signed integers. Show all work.
+ 39 __________________________________________________________________
– 42 __________________________________________________________________
Explanation / Answer
1011110000010110 = BC16 base 16
3AF2 = 35362 base 8
+39 = 00100111
2|39 - 1
2|19 -1
2|9 -1
2|4 -0
2|2 -0
2|-1
100111
since it is + the resultant 8 bit starts with 0 = 0010 0111
-42 = 10101010
2|42 - 0
2|21 -1
2|10 - 0
2|5 - 1
2|2 -0
2|1
101010
Since it is -ve number the resultant 8 bit will start with 1 = 1010 1010