CS计算机代考程序代写 Assignment8 Solution

Assignment8 Solution
Due No due date Points 1 Questions 1 Available Mar 8 at 8am – May 2 at 11pm about 2 months Time Limit 50 Minutes Allowed Attempts 5
Instructions
Once you request the solution, you will not be allowed to re-submit the assignment under any circumstance.
Your request of the solution will be recorded.
Take the Survey Again
Score for this attempt: 1 out of 1 Submitted Mar 16 at 4:22am This attempt took 50 minutes.
Question 1
nanswered
Once you request the solution, you will not be allowed to re-submit the assignment under any circumstance. Your request of the solution will be recorded.
Please type “I agree” in the answer, and push “Submit” to see its solution
Your Answer:

1.
Multiplicand/Multiplier/Product
init M 0101 M 0110 Prod 0
1st M 01010 M 011 Prod 0
2nd M 010100 M 01 Prod 1010
3rd M 0101000 M 0 Prod 11110 4th M 01010000 M — Prod 11110 —-
2.
Quotient/Divisor/Remainder
init Q 0000 D 01010000 R 00110101(=Dividend) 1st Q 0000 D 00101000 R 00110101
2nd Q 0001 D 00010100 R 00001101
3rd Q 0010 D 00001010 R 00001101
4th Q 0101 D 00000101 R 00000011
5th Q 1010 D 00000010 R 00000011
—-
3.
3897 -> 0000 0000 0000 0000 00000 1111 0011 1001 Invert: 1111 1111 1111 1111 1111 0000 1100 0110
Add 1: 1111 1111 1111 1111 1111 0000 1100 0111
4.
Subtract 1: 1111 1111 1111 1111 1110 1111 0101 0011
Invert: 0000 0000 0000 0000 0001 0000 1010 1100 -4268 ten
5.
a). 39405.44921875 ten = (39405 + 0.44921875) ten =

1001100111101101.01110011two
b). 1.00110011110110101110011two x 2 15
c) biased exponent 15 + 127 = 142 ten -> 10001110 two
d). 0 10001110 00110011110110101110011 two -> 4 7 1 9 e d 7 3 (hex)
6.
a). 9320.421875 ten= (9320 + 0.421875) ten = 10010001101000.011011 two
b). 1.0010001101000011011 two x 2 13
c). biased exponent 13 + 127 = 140 ten ->
10001100
d). 1 10001100 0010001101000011011 0000 two
-> c 6 1 1 a 1 b 0 (hex)
7.
0x C623AD60 -> 1100 0110 0010 0011 1010 1101
0110 0000
Sign = -1
Biased exponent 1000 1100 two -> 140
Non biased expo -> 140 – 127 = 13
fraction 010001110101101011 two
two
-1.010001110101101011two x 2 13 = -10100011101011.01011two two -> -10475.34375 ten
= -1.047534375 x 10 4
ten

8.
Step1: 1.1101 two x 2 -9 = 0.011101 two x 2 -7
Step2: 0.011101 + 1.1001 = 10.000001 two x 2 -7
Step3: 1.0000001 two x 2 -6 (-126 <= -6<= 127, no overflow nor underflow) Step4: 1.0000 two x 2 -6 9. Step1: exponent (-7) + (-9) = -16 Step2: 1.1001 x 1.1101 = 10.11010101 two x 2 -16 Step3: 1.011010101 two x 2 -15 (-126 <= -15 <= 127, no overflow nor underflow) Step4: 1.0110 two x 2 -15 10. a). 7.89 ten x 10 7 = 0.0789 ten x 10 9 0.0789 ten x 10 9+ 8.67 ten x 10 9= 8.7489 x 10 9 rounding 8.75 x 10 9 b). 7.89 ten x 10 7 = 0.07 ten x 10 9 0.07 ten x 10 9+ 8.67 ten x 10 9 = 8.74 x 10^9 Survey Score: 1 out of 1