Answer to Question #119001 in Computer Networks for Prince Sackey

Question #119001
Compute the value of 6758-4458 using 7’s complement
1
Expert's answer
2020-05-29T14:47:34-0400

We know that to do subtract between two numbers using 7's complement, the base of the numbers must be 8. Since the base of the given two numbers are not 8 so first we have to convert these two numbers into base 8. To convert these two numbers into base 8, we will use the following steps:





Now:

We can see that the subtrahend in base 8 is 10552 and minued in base 8 is 15146.

To subtract two 8 base numbers using 7's complement, we will do the following steps:

1.) Find 7's complement of subtrahend.

2.) Add it to the minued and 7's complement of the sum.

3.) If carry is generated, add carry with LSB (Least Significant Bit) of the sum. If there is no carry then take 7's complement of the sum and assign negative sign.

Now:

We will perform these steps to our subtrahend and minued.

Step 1:





7's complement of 10552 is 67225.

Step 2:





Adding minued (15146) with 67225, we get 104373 (Where 1 is carry )

Step 3:





Since carry is produced in step 2 so we add this carry with LSB (3) of the number (4373) and get the result in base 8 form is 4374.



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS