You are on page 1of 4

Cairo University CS500 ISSR

SHEET# 1 Answer

Q1) Convert the decimal number (431.315)10 to the equivalent numbers in the following numbering
systems. For the fractional part, approximate it to eight places.

(a) Hexadecimal = (1AF.50A3D70A)16


(b) Octal = ( 657.24121727)8
(c) Ternary = (120222.02211112)3

(d) Binary = (110101111.01010000)2

(e) Base 4 = (12233.11002203)4

(f) Base 9 = (528.27456382)9

Q2) Convert the following numbers with the indicated bases to decimal:

(a) (4310)5 = (580)10


(b) (198)12 = (260)10
(c) (735.46)8 = (477.59375)10
(d) (212)3 = (23)10
(e) (10110.0101)2 = (22.3125)10
(f) (FA8.C5)16 = (4008.769531)10

Q3) Convert the binary number (110101.101)2 to the equivalent numbers in these numbering systems:

(a) Hexadecimal
(110101.101)2 = (35.A)16
(b) Octal
(110101.101)2 = (65.5)8
(c) Decimal
(110101.101)2 = (53.625)10

Q4) Find the 9's and the 10's complement of the following decimal numbers:

(a) 52784630
9’S complement = 47215369
10’s complement = 47215370

1
Cairo University CS500 ISSR

SHEET# 1 Answer

(b) 63325600

9’S complement = 36674399

10’s complement = 36674400

(c) 25000000

9’S complement = 74999999

10’s complement =75000000

Q5) Obtain the 1’s and 2's complements of the following binary numbers:

(a) 10000000
1’S complement = 01111111
2’s complement = 10000000
(b) 00000000
1’S complement = 11111111
2’s complement = 00000000
(c) 11011010

1’S complement = 00100101

2’s complement = 00100110

(d) 01110110

1’S complement = 10001001

2’s complement = 10001010

(e) 10000101

1’S complement = 01111010

2’s complement = 01111011

2
Cairo University CS500 ISSR

SHEET# 1 Answer

(f) 11111111

1’S complement = 00000000

2’s complement = 00000001

Q6) Calculate the following arithmetic operations:

(a) 11010.11001 - 1101.1111 (direct subtraction)

11010.11001

- 01101.11110
____________

01100.11011

(b) 11010.11001 - 1101.1111 (using 1’s complement)

11010.11001

+ 10010.00001  1’s complement


____________

101100.11010
1+
______________

01100.11011

(c) 11010.11001 - 1101.1111 (using 2’s complement)

11010.11001

+ 10010.00010  2’s complement


____________

101100.11011

3
Cairo University CS500 ISSR

SHEET# 1 Answer

(e) 13.625 - 27.750 (using 9’s complement)

13.625

+72.249  9’s comp


_________

85.874

The result = - the 9’s complement of ( 85.874 ) = -14.125

(f) 13.625 - 27.750 (using 10’s complement)

13.625

+72.250  10’s comp


_________

85.875

The result = - the 10’s complement of ( 85.875 ) = -14.125

Q7) Find the decimal value of the binary number (1011)2 in the following systems:

(a) Unsigned integer >> (11)10


(b) Signed magnitude >> (-3)10
(c) Signed 1's complement >> = - 1’s complement of (1011) = - ( 0100) = (-4)10
(d) Signed 2's complement >> = - 2’s complement of (1011) = - ( 0101) = (-5)10
(e) Excess-8
11-8 = (+3)10

You might also like