{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

sp04-lw-s2

# sp04-lw-s2 - ECE 2030 H 4 problems 6 pages Problem 1(6...

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

ECE 2030 H Computer Engineering Spring 2004 4 problems, 6 pages Exam Two Solutions 18 March 2004 1 Problem 1 (6 parts, 37 points) Numbers and Arithmetic Part A (4 points) Convert these hexadecimal values into decimal notation: hexadecimal notation decimal notation 0x373 256*3 + 16*7+3 = 883 0x5B.4 5*16 + 11+ 4/16 = 91.25 Part B (4 points) Convert these binary values into octal notation: binary notation octal notation 1010011110 1236 11011010.11 332.6 Part C (10 points) For each problem below, (a) compute the addition using the rules of arithmetic, (b) indicate whether an error occurs assuming all numbers are expressed using a five bit two’s complement representation, and (c) indicate whether an error occurs assuming all numbers are expressed using a five bit unsigned representation. 1 0 1 + 1 0 1 1 1 0 0 1 + 1 1 0 1 1 result 1 0 0 0 0 0 0 1 0 0 signed error? Yes No unsigned error? No Yes Part D (12 points) Convert each subtraction problem (X-Y=Z) below to an addition problem (X+(-Y)=Z) and compute the result of the addition. Also indicate whether an error occurs assuming all numbers are expressed using a five bit two’s complement representation and then indicate whether an error occurs using a five bit unsigned 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.

{[ snackBarMessage ]}

### Page1 / 5

sp04-lw-s2 - ECE 2030 H 4 problems 6 pages Problem 1(6...

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

View Full Document
Ask a homework question - tutors are online