1. Engineering
  2. Computer Science
  3. 15 points assume there are two computer systems i one...

Question: 15 points assume there are two computer systems i one...

Question details

[15 points] Assume there are two computer systems: (i) One that uses fixed-point decimal arithmetic with 2 digits after the decimal point and 3 digits before the decimal point (i.e. ddd.dd). The digit required for the sign is separate and you dont need to worry about it. (ii) Another that uses floating-point decimal arithmetic with 3 digits mantissa (after the decimal point) and i digit for the exponent (i.e. .ddd x10). The digits required for the sign of the mantissa and the sign of the exponent are separate and you dont need to worry about them. Compute the results of the following five arithmetic operations on each computer system. Assume that all computer operations return the correctly rounded result (i.e. the number closest to the correct answer in the representation being used). Indicate if rounding, overflow or underflow occurs. 260 +1.27)+0.1260+ 260(1.27 0.1) 3.08 x 0.1 3.08 0.01 -900-100 What is the range of representable numbers (i.e. the range of numbers for which no overflow happens) in each of the two systems? What are the ranges of numbers for which underflow happens in each of the two systems? (Assume that, in the fixed- point system, the first decimal digit can be zero, while, in the floating-point system, only normalized mantissae are allowed.)

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution