{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Homework1Solution

# Homework1Solution - Homework Assignment#1 Number...

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

Homework Assignment #1 – Number Representations The purpose of this assignment is to let you be familiar and become comfortable with binary representations which are used heavily in computer organization.  Problem 1 (30 points, 10 points each) Convert the following decimal numbers into (a) 8-bit, (b) 16-bit, and (c) 32-bit binary numbers. For negative numbers, use the 2’s complement. State “overflow” if a number cannot be represented correctly. Hint: You may want to use the sign extension rule. 1) 45 ten . 2) -81 ten . 3) -3,000 ten . Solution: Decimal number 8-bit two’s complement binary number 16-bit two’s complement binary number 32-bit two’s complement binary number 45 0010 1101 0000 0000 0010 1101 0000 0000 0000 0000 0000 0000 0010 1101 -81 1010 1111 1111 1111 1010 1111 1111 1111 1111 1111 1111 1111 1010 1111 -3,000 Overflow 1111 0100 0100 1000 1111 1111 1111 1111 1111 0100 0100 1000

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 / 4

Homework1Solution - Homework Assignment#1 Number...

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

View Full Document
Ask a homework question - tutors are online