Sol1 - ERG 2020C/D Assignment 1 Solution Question 1 2|147 2| 73.1 2| 36.1 2| 18.0 2| 9.0 2| 4.1 2| 2.0 1.0 16| 147 9.3 110101110 2 = 1 2 8 1 2 7 0

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

View Full Document Right Arrow Icon
ERG 2020C/D Assignment 1 Solution Question 1: 2|147 2| 73 ...... 1 2| 36 ...... 1 2| 18 ...... 0 2| 9 ...... 0 2| 4 ...... 1 2| 2 ...... 0 1...... 0 16| 147 9...... 3 10 0 1 2 3 4 5 6 7 8 2 430 2 0 2 1 2 1 2 1 2 0 2 1 2 0 2 1 2 1 110101110 = × + × + × + × + × + × + × + × + × = 16 2 16 2 16 2 16 2 1 110101110 , 1110 , 1010 , 1 0001 AE E A = = = = 10 0 1 2 16 3009 16 1 16 12 16 11 1 = × + × + × = BC 2 16 2 16 2 16 2 16 01 1011110000 1 , 0001 1 , 1100 , 1011 = = = = BC C B Therefore, we obtain the following table. Decimal Binary Hexadecimal 147 1001 0011 93 430 1 1010 1110 1AE 3009 1011 1100 0001 BC1
Background image of page 1

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

View Full DocumentRight Arrow Icon
Question 2: For converting a Decimal Value to Sign- Magnitude Representation, we put the sign of the Decimal Value at the leftmost position and put the Unsigned Representation of the magnitude at the remaining positions. (Remark: For sign, 0- positive, 1- negative) For converting a Decimal Value to Ones’ Complement Representation, we keep the Unsigned Representation if the Decimal Value is positive. We take its complement of
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/13/2010 for the course SEEM SEEM2018 taught by Professor Chan during the Spring '10 term at CUHK.

Page1 / 4

Sol1 - ERG 2020C/D Assignment 1 Solution Question 1 2|147 2| 73.1 2| 36.1 2| 18.0 2| 9.0 2| 4.1 2| 2.0 1.0 16| 147 9.3 110101110 2 = 1 2 8 1 2 7 0

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

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