CS计算机代考程序代写 Quiz6

Quiz6
Due No due date Points 10
Questions 4 Available until Feb 17 at 4:20pm Time Limit 60 Minutes
Instructions
You can take this quiz only once.
Once you start the quiz, you will need to complete it.
This quiz was locked Feb 17 at 4:20pm.
Attempt History
Attempt Time Score
LATEST Attempt 1 8 minutes 8 out of 10
Score for this quiz: 8 out of 10 Submitted Feb 17 at 3:58pm This attempt took 8 minutes.
Question 1
2 / 2 pts
Add 2.85 ten x 10 3 to 7.88 ten x 10 4 using the following two different assumptions:

1-a). Assume that you have only three significant digits, with guard (2 digits) and round digits.
Your Answer:
shift 2.85*10^3=0.285*10^4
add significantly 0.285+7.88=8.165 result: 8.165*10^4
Round to result 8.17*10^4
2.85 x 10 3 = 0.285 x 10 4
0.285 x 10 4 + 7.88 ten x 10 4 = 8.165 x 10 4 -> rounding to have 3 digits, 8.17 x 10 4
Question 2
0 / 2 pts
Add 2.85 ten x 10 3 to 7.88 ten x 10 4 using the following two different assumptions:
1-b).Assume that you have only three significant digits, without guard and round digits.
Your Answer: 2.85*10^3=0.29*10^4

0.29+7.88=8.17 8.17*10^4
2.85 x 10 3 = 0.28 x 10 4 (no guard, keep only 3 digits)
0.28 x 10 4 + 7.88 ten x 10 4 = 8.16 x 10 4
Question 3
3 / 3 pts
Show the IEEE 754 binary representation for the floating point number 20.5 ten in single precision.
2-a) Single Precision:
Your Answer:

20.0 = 10100 x 20, 0.5 = 0.1 x 20 together 1.01001 x 24 Single Precision:
The exponent is 127+4 = 131 = 128 + 3 = 10000011 The entire number is
0 1000 0011 0100 1000 0000 0000 0000 000
Single Precision:
20.5 ten = 10100.1 two = 1.01001 two x 2 4
Biased exponent 4 + 127 = 131 ten = 10000011 two (8 bits)
Sign = 0 (positive)
Fraction (23 bits): 01001 00000 00000 00000 000
Single Precision representation:
0 1000 0011 01001 00000 00000 00000 000
Question 4
3 / 3 pts
Show the IEEE 754 binary representation for the floating point number 20.5 ten in double precision.

Quiz Score: 8 out of 10
2-b) Double Precision:
Your Answer:
Double Precision:
The exponent is 1023+4 =1027=1024 + 3 =10000000011 The entire number is:
0 1000 0000 011 0100 1000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000