Explanation of Solution
a.
To prove: “Adding one to nine’s complement of a number is equal to ten’s complement of the same number”.
Proof:
Formula for ten’s complement to compute the number:
In the above formula,
- “k” represents the number of digits.
- “I” represents the number to be calculated.
Formula for nine’s complement to compute the number:
In the above formula,
- “I” represents the number to be calculated.
- “9999….” represents all 9s in which the number of 9s should be equal to the number of digits in a given number “I”.
Adding one to Nine’s complement formula to calculate the numbers:
Comparing Equation (1) and Equation (2),
Explanation of Solution
b.
Calculating ten’s complements using nine’s complement plus one formula for “-35768”:
Nine’s complement plus one formula to compute the numbers:
Therefore, ten’s complement using nine’s complement plus one formula for “-35768” is “64232”.
Calculating ten’s complements using nine’s complement plus one formula for “-444455”:
Nine’s complement plus one formula to compute the numbers:
Explanation of Solution
c.
Nine’s complement plus one method is easier.
Justification:
- Borrowing of values are needed for subtraction in direct ten’s complement method but in nine’ complement plus one method, borrowing of values are not needed for subtraction...
Trending nowThis is a popular solution!
Chapter 3 Solutions
Computer Science Illuminated
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education