Back to the 2022 paper

Module 1: Functional Block of computer and Data representaion

20227m

Calculate (72530−13250)(72530 - 13250) using ten's complement arithmetic. Assume rules similar to those for two's complement arithmetic.

Worked SolutionAI Assisted

Ten's Complement Subtraction: 72530−1325072530 - 13250

For n=5n=5 digits, ten's complement of NN is 10n−N=9’s complement+110^n - N = 9\text{'s complement}+1.

Rule (like 2's complement): A−B=A+10’s comp(B)A-B = A + \text{10's comp}(B). If end carry =1, discard carry, result positive. If no carry, result negative and is the 10's complement of magnitude.

Step 1: 9's complement of B=13250
99999−13250=8674999999 - 13250 = 86749

Step 2: 10's complement of B
86749+1=8675086749 + 1 = 86750
Check: 13250+86750=100000=10513250+86750 = 100000 = 10^5

Step 3: Add to A
A+10’s comp(B)=72530+86750=159280A + \text{10's comp}(B) = 72530 + 86750 = 159280

Step 4: Discard end carry
We have n=5n=5 digits, the 6th digit 1 is end carry. Discard it →\rightarrow 5928059280.

159280→drop carry59280159280 \xrightarrow{\text{drop carry}} 59280

Verification: 72530−13250=5928072530-13250 = 59280.

If the sum had no end carry, e.g., 13250−7253013250-72530, result would be 2652026520 without carry, indicating negative. Then negate: 10’s comp(26520)=7348010\text{'s comp}(26520)=73480, so answer −73480-73480.

Similar questions

AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.