



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Yazeed Alfaqeeh 20181502031 Homework 1
Decimal digit 5-3-2- 0 0000 1 0001 2 0010 3 0011 4 0101 5 1000 6 1001 7 1010 8 1100 9 1101
(a)( 10010101 ) 2 ( ) 10
= 12^0 + 02^1 + 12^2 + 02 3 + 12 4 + 02 5 + 02 6 + 12 7 = (149) (^10)
(b)(01101111) 2 ( ) 10
= 12^0 + 12^1 + 12^2 + 12^3 + 02^4 + 12^5 + 12^6 + 02^7 = (111) (^10)
(c)(1101) 2 ( ) 10
= 12^0 + 02^1 + 12^2 + 12^3 = (13) 10 (d)( 1010101 ) 2 ( ) 10 = 12^0 + 02^1 + 12^2 + 02^3 + 12^4 + 02^5 + 1*2^6 = (85) 10
2 13 Remainder 2 6 1 2 3 0 2 1 1 0 1 2 390 Remainder 2 195 0 2 97 1 2 48 1 2 24 0 2 12 0 2 6 0 2 3 0 2 1 1 0 1
16 2313 Remainder 16 144 9 16 9 0 0 9
16 372 Remainder 16 23 4 16 1 7 0 1
16 1024 Remainder 16 64 0 16 4 0 16 0 4
16 33 Remainder 16 2 1 16 0 2
While the second number is greater than the first one, we take the 2โs singed Comp. to the second number then add them together.
A) Add (+14) to (-17) (+17) (00010001) then (-17) (11101111)2,2โs Comp. (+14) (00001110)
00001110
11101111
11111101 Take the 2โs Comp. (00000011) (^) 2,2โs Comp. (-3) 10
B) Add (+37) to (+95) (+37) (00100101) (+95) (01011111)
00100101
01011111