assignment2_sol - CDA 3101 Assignment 2 Due in class on...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CDA 3101 Assignment 2 Due in class on Sept. 10 (Friday) Turn hardcopy in class, stapled, with your name (last name followed by first name) and “CDA 3101 Assignment 2” clearly printed on it. Show your work for all problems to get full credit. Assignments submitted after Sept. 10 , 12:35 pm but before Sept. 13, 12:35 pm will be considered one day late. 1. (5 points) Consider the bit pattern: 0010 0100 1001 0010 0100 1001 0010 0100 What decimal value does it represent, assuming that it is a single-precision floating point number? Sign: 0 Biased Exponent: (01001001) 2 = 73 10 Significand: (1.001 0010 0100 1001 0010 0100) 2 = 1+2 -3 +2 -6 +2 -9 +2 -12 +2 -15 +2 -18 +2 -21 Decimal Value: (-1) 0 *2 (73-127) *(1+2 -3 +2 -6 +2 -9 +2 -12 +2 -15 +2 -18 +2 -21 ) 2. Convert the (-15.25) 10 to (-15.25) 10 = - 1111.01 2 = (-1.11101 2 *2 3 ) a. (5 points) IEEE 754 single-precision representation. Sign: 1 Biased Exponent: (3+127) 10 =(10000010) 2 Significand: 11101 followed by 18 zeros b. (5 points) IEEE 754 double-precision representation
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

assignment2_sol - CDA 3101 Assignment 2 Due in class on...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online