Add and multiply the following numbers without converting them to decimal.
(a) Binary numbers 1011 and 101.
(b) Hexadecimal numbers 2E and 34.
(a) (1011)2 + (0101)2 = (10000)2 (Binary addition)
(1011)2 * (0101)2 = 1 0 1 1
x 0 1 0 1
_________
1 0 1 1
+ 0 0 0 0 x
+ 1 0 1 1 x x
+ 0 0 0 0 x x x
_____________
(0 1 1 0 1 1 1)2
(b) (2E)16 + (34)16 =
1
2 E
+ 3 4
______
(6 2)16
(2E)16 * (34)16 =
2 E
x 3 4
______
1
B 8
+ 8 A x
_________
(9 5 8)16