retagged by
1,548 views

1 Answer

0 votes
0 votes

10's complement subtraction steps :
1. find 10's complement of the subtrahend.
2. Then add it to the minuend.
3. If the final carry over of the sum is 1, then it is dropped and the result is positive.
4. If there is no carry over, then 10's complement of the sum is the final result and it is negative.

The radix complement of an n digit number x in radix r can be defined as (r^n – x). Alternatively we can obtain by adding 1 to the diminished radix complement. (Diminished radix complement =  (r^n – 1) – x).

10’s complement → 9’s complement of the no. + 1 

a.) 5250 – 1321 

10’s complement of 1321 → 9’s complement of 1321 + 1 → 9999 – 1321 = 8678 +1 = 8679

Add it to the minuend → 5250 + 8679 = 13929

Discard the carry → Result = 3929

 

b.) 9753 – 8640 → 9’s complement of 8640 + 1 → 9999 – 8640 = 1359 + 1 = 1360

9753 + 1360 = 11113

Discard the carry → Result = 1113

 

c.) 20 – 100

10’s comp of 100 → 999 – 100 = 899 + 1 = 900

Add 20 + 900 = 920 

No carry, find 10’s comp of the above sum → 999 – 920 = 79 + 1 = 80

Result = -80. 

 

d.) 1200 – 250 

10’s comp of 250 → 9999 – 0250 = 9749 + 1 = 9750

Add it to 1200 → 1200+9750 = 10950

Discard the carry → 0950 , Result = 950. 

Related questions

254
views
0 answers
0 votes
M_Umair_Khan42900 asked Dec 29, 2022
254 views
For each of the following language, if the language is regular, write down the corresponding regular expression. Else, prove that the language is not regular.a) ( ... 9) with characters in sorted orders.c) The set of all even binary numbers
1.3k
views
1 answers
2 votes
92komal asked Dec 20, 2017
1,281 views
Booth's coding in 8-bits for the decimal number -57 is: A 0-100+1000 B 0-100+100-1 C 0-1+100-10+1 D 00-10+100-1 plz explain this question
1.6k
views
2 answers
0 votes
Sahil Gupta asked Dec 12, 2014
1,587 views
A fair coin is tossed 100 times. The Probability of getting 50 heads is close to one of the following numbers:a)0.001b)0.1c)0.3 d)0.4
1.2k
views
3 answers
2 votes
Laahithyaa VS asked Sep 9, 2023
1,157 views
. What will be the value returned by the following function, when it is called with 11?recur (int num){if ((num / 2)! = 0 ) return (recur (num/2) *10+num%2) ... value, because it goes into an infinite loop (b) 11 (c) 1011 (d) None of these