# hw1_sol - CDA 3101 Assignment 1 Fall 2009 Due in class on...

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

CDA 3101 Assignment 1, Fall 2009 Due in class on Friday, Sept. 11 Graded by: Meizhu Liu Regrade Req. Deadline: Sep. 28 Turn hardcopy in class, stapled, with your name (last name followed by first name) and “CDA 3101 Assignment 1” clearly printed on it. Show your work for all problems to get full credit. Assignments submitted after Sept. 11, 12:35 pm but before Sept. 14 before 12:35 pm will be considered one day late. 1. (6 points) Convert -72 10 into 72 10 = 0100 1000 2 a. 8-bit two’s complement number -72 10 = 1011 1000 2 b. 8-bit one’s complement number -72 10 = 1011 0111 2 c. 8-bit sign-and-magnitude number -72 10 = 1100 1000 2 2. (8 points) What decimal number does 1110 1001 2 represent assuming it is a. an unsigned integer 2 7 + 2 6 + 2 5 + 2 3 + 2 0 = 233 10 b. a sign-magnitude integer -(2 6 + 2 5 + 2 3 + 2 0 ) = -105 10 c. two’s complement integer 1110 1001 2 = -(0001 0111 2 ) = -(2 4 + 2 2 + 2 1 + 2 0 ) = -23 10 d. ones’ complement integer 1110 1001 2 = -(0001 0110 2 ) = -(2

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.

{[ snackBarMessage ]}

### Page1 / 3

hw1_sol - CDA 3101 Assignment 1 Fall 2009 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