Discrete Mathematics with Applications 4th Edition

Published by Cengage Learning
ISBN 10: 0-49539-132-8
ISBN 13: 978-0-49539-132-6

Chapter 2 - The Logic of Compound Statements - Exercise Set 2.5 - Page 94: 34

Answer

34

Work Step by Step

Convert the decimal numbers to binary using continuous division by 2 89/2 = 44 R 1 lest significant 44/2 = 22 R 0 22/2 = 11 R 0 11/2 = 5 R 1 5/2 = 2 R 1 2/2 = 1 R 0 1/2 = 0 R 1 Most significant 89= 0101 1001 To convert -55 first find the binary representation of 55 then take 2s complement 55/2 = 27 R 1 Least significant 27/2 = 13 R 1 13/2 = 6 R 1 6/2 = 3 R 0 3/2 = 1 R 1 1/2 = 0 R 1 most significant 55 = 0011 0111 first take 1s complement (invert each bit) 1100 1000 take 2s complement (add 1) 1100 1001 Finally add the two together 1100 1001 + 0101 1001 = 0010 0010 convert back to decimal using place value 0 + 0 + 32 + 0 + 0 + 0 + 2 + 0 = 34
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.