{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hw3sol

# hw3sol - C-355 Solutions to HW 3 Problem 9.7 r = 10 n = 5 N...

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

C-355 Solutions to HW # 3 Problem 9.7 r = 10, n = 5, N = 13250 So 10’s complement of 13250 is 10 5 - 13250 = 86750 Problem 9.8 72530 – 13250 = 72530 + 10’s complement of 13250 = 72530 + 86750 = 159280 Since carry arises the answer is obtained by ignoring it, namely, 59280 Problem 9.10 In signed arithmetic, carry should be ignored. Only overflow needs to be checked a) 0000 0110 (6) + 0000 1101 (13) ------------------------------------- 0001 0011 (19) b) 1111 1010 (-6) + 0000 1101 (13) ------------------------------------- 0000 0111 (7) ignore carry c) 0000 0110 (6) + 1111 0011 (-13) -------------------------------------- 1111 1001 (-7) d) 1111 1010 (-6) + 1111 0011 (-13) -------------------------------------- 1110 1101 (-19) ignore carry There is no overflow in any of these. In (a) two positives add up to positive. In (d) two negatives add up to negative. In (b) and (c) the numbers being added are of opposite signs.

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

View Full Document
Problem 9.11 Unsigned subtraction is performed as follows: A – B = A + 2’s complement of B
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 3

hw3sol - C-355 Solutions to HW 3 Problem 9.7 r = 10 n = 5 N...

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

View Full Document
Ask a homework question - tutors are online