show the substraction in binary of the following decimalnumbers using both the p
ID: 1830507 • Letter: S
Question
show the substraction in binary of the following decimalnumbers using both the pencil method and the 2's-complement addition method : a) 7-4 b) 37-26 c) 125-93 show the substraction in binary of the following decimalnumbers using both the pencil method and the 2's-complement addition method : a) 7-4 b) 37-26 c) 125-93Explanation / Answer
1)7=0111 - 4=0100 3=0011 this is binary subtraction ...we know 1-0=1 0-0=0 1-1=0 10-1=1 2's complement method: 4=(0100)2------>1011 in 1,s complement------>(1011+0001)= 1100 in 2's complement 0111 +1100 carry-->1 0011 the carry is discardedand ans is (0011)2 2)37=100101 26=011010 11=001011 2's complement method: 26=(011010)2---->100101 in 1's complement---->(100101+0001)=100110 in 2,s complement 100101 +100110 carry-->1 001011 omit carryand take 001011 3)125=1111101 - 93= 1011101 32=100000 2's complement method: 93=(1011101)2----->0100010 in 1'scomplement---->(0100010+1)=100011 in 2's complement 1111101+1010011=1--->carry 010000 omit carry and ans is100000
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.