Escolar Documentos
Profissional Documentos
Cultura Documentos
EE234/Spring2017
Answer of Homework #1
(26.24)8 in Decimal:
281+680+28-1+48-2 = (22.3125)10
(DA4.C)16 in Decimal:
13162+10161+4160+1216-1 = (3492.75)10
....................................................................................................................
First convert (68BD)16 to Binary where each hexadecimal digit can be represented
with 4 binary bits:
....................................................................................................................
Q3) Convert the Decimal number (193.75)10 to Binary, Octal and Hexadecimal.
(193)10 = (11000001)2
1
Tripoli University/Electrical & Electronic Engineering Dept. EE234/Spring2017
Operation Result
0.752 1.5
0.52 1.0
(0.75)10= (0.11)2
The number (193.75)10 = (11000001.11)2
Operation Result
0.758 6.0
Operation Result
0.7516 C
....................................................................................................................
Q4) Obtain the 1's complement and 2's complement of the following binary
numbers:
11001010
00101011
2
Tripoli University/Electrical & Electronic Engineering Dept. EE234/Spring2017
11000000
00111110
....................................................................................................................
Q5) Find the 9's and 10's complements of the following Decimal numbers:
973300
154321
682399
....................................................................................................................
....................................................................................................................
Q7) Find the result of the following operations on signed binary numbers:
+1001 101000
10101 + 111000
3
Tripoli University/Electrical & Electronic Engineering Dept. EE234/Spring2017
+1001 101000
001001
+ 011000 (2s complement)
Result: 100001 No carry bit, therefore 2s complement of 100001 is 011111.
Hence the answer = 011111
....................................................................................................................
10101 + 111000
....................................................................................................................
Q9) Represent the decimal number 6248 in BCD, Excess-3, 2421 and Gray code.
....................................................................................................................
Q10) Encode the word "Digital" to ASCII code with even-parity detection code.