Professional Documents
Culture Documents
ELCE 202. Homework 4
ELCE 202. Homework 4
Sum is 01010101
2. 2. Subtract 01000111 from 01011000:
00000110 = 2^2+2^1 = 6, which is how many times we need to add the number
4. Verify the multiplication is correct by converting to decimal numbers and performing the
multiplication of 01010011*11000101:
01010011=2^0+2^1+2^4+2^6=83
11000101=2^(-7)+2^6+2^2+2^0=-59
Taking into consideration that 4897 is negative, it is -1001100100001
So the 2’s complementary is 10110011011111 just as in the lecture!
5. Verify the division is correct by converting to decimal numbers and performing the division of
01100100 by 00011001:
01100100 = 2^6+2^5+2^2 = 100
00011001 = 2^4+2^3+2^0 = 25
100/25=4
Residue
4/2=2 0
2/2=1 0
1/2=0 1
Therefore, 4 = 100 (binary),
01100100/00011001=100 which is the same number as in the lecture!