The following decimal numbers are shown in sign‐magnitude form: +9,286 and +801.Convert them to signed-10’s‐complement form and perform the following operations (note that the sum is +10,627 and requires five digits and a sign).
(a) (+9,286) + (+801) (b) (+9,286) + (-801)
(c) (-9,286) + (+801) (d) (-9,286) + (-801)
Ans: + 9286 represented in 5 digits as 0 09286 (left most 0 is sign n remaining 5 is magnitude)
9’s complement of 9286 = 999999 – 009286
= 990713
10’s complement of 9286 = 990713 + 1
= 990714
(- 9286) = 10’s complement of 9286 = 990714.
+801 represented in 5 digits as 0 00801
9’s complement of 801 = 999999 – 000801
= 999198
10’s complement of 801 = 999198 + 1
= 999199
(- 801) = 10’s complement of 801 = 999199.
(a) (+9,286) + (+801) = 009286 + 000801
= 010087
(b) (+9,286) + (-801) = 009286 + 999199
= 008485
(c) (-9,286) + (+801) = 990714 + 000801
= 991515
(d) (-9,286) + (-801) = 990714 + 999199
= 989913 .