Tutorial: Number Systems
Tutorial: Number Systems
2.
3.
4.
5.
6.
7.
BCD
DECIMAL
OCTAL
01100111 99 36 Table 1.1 8. Convert the decimal numbers given in the Table 1.2 to binary and gray code: DECIMAL BINARY GRAY CODE 0 5 7 0111 8 12 15 1000 Table 1.2
TUTORIAL 1a
9.
Decode the following ASCII code: a. 1000101 1000101 1010100 0100000 0110001 0110000 0110111 b. 1001000 1000101 1001100 1010000 Add in binary: a. 10012 +11012 b. 100102 + 11002 + 111012 c. 100012 + 11012 + 101012 Substract in binary: a. 10012 1102 b. 101012 11102 c. 100101002 - 10100102 Perform the following binary multiplications: a. 112 x 112 b. 1112 x 1012 c. 11102 x 11012 Divide the binary numbers as indicated: a. 1002 102 b. 10012 112 c. 11002 1002 Determine 1s and 2s complement of each binary number: a. 101101012 b. 000100012 c. 11102 d. 10102 Express each decimal number as an 8-bit number in the sign magnitude, 1s and 2s complement form: a. -34 b. +57 c. -99 d. +115 e. -18 The table below shows decimal numbers and their 8 bit representation in sign magnitude, 1s complement and 2s complement. Fill in Table 1.3. Decimal Sign and Mag 1s complement 2s complement 0001 0001 -18 1000 1100 Table 1.3
10.
11.
12.
13.
14.
15.
16.
TUTORIAL 1a
17.
Convert each pair of decimal numbers to binary and add using the 2s complement form: a. 33 and 15 b. -5 and -9 Given Gray code as below, obtain the followings: 1100111 1101110 1111110 0101001 0101011 0101001 a. b. convert this message into Binary decode (a) into ASCII coded message.
19.