Part A 1. Convert the following decimal numbers into 8-bit binary numbers. Use 2
ID: 3639331 • Letter: P
Question
Part A1. Convert the following decimal numbers into 8-bit binary numbers. Use 2’s complement to represent a negative number. (15 pts)
26
-37
-127
Part B
Perform the following binary additions of 8-bit sign integers. Indicate if there is overflow.
a)
(01010011)
+(10111101)
__________ =
b)
(10101000)
+(10101101)
____________ =
c)
(00101001)
+(011110010)
_____________ =
Explanation / Answer
A) 2 | 26 | 0 2 | 13 | 1 2 | 6 | 0 2 | 3 | 1 2 | 1 |1 26 in binary = 00011010 (bottom to top) 37 in binary = 00100101 -37 in binary (2s complement) = 256 - 37 = 219 in binary => -37 in binary = 01011011 -127 in binary = 256-127 = 129 in binary -127 = 10000001 B) a) 01010011 +10111101 1 00010000 b) 10101000 + 10101101 1 01010101 c) 00101001 + 011110010 1 00011011
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.