assignment2_sol

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

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

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

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 01/15/2012 for the course CDA 3101 taught by Professor Small during the Summer '08 term at University of Florida.

### 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
Ask a homework question - tutors are online