Thursday, April 15, 2010

IT430 E-commerce solution

Q # 1
Click this image for LARGE view


Q2: Perform the conversions [5*2 = 10]

(a) 110 Decimal to Binary
2 110
2 55-0
2 27-1
2 13-1
2 6-1
2 3-0
2 1-1

Decimal to Binary
110 = 1101110

(b) 10011000 Binary to Decimal
2 0 *0+2 1 *0+2 2 *0+2 3 *1+2 4 *1+2 5 *0+2 6 *0+2 7 *1
= 0+0+0+8+16+0+0+128
= 152

(c) 11011100 Binary to Decimal
2 0 *0+2 1 *0+2 2 *1+2 3 *1+2 4 *1+2 5 *0+2 6 *1+2 7 *1
= 0+0+4+8+16+0+64+128
= 220

(d) 11111100 Binary to Decimal
2 0 *0+2 1 *0+2 2 *1+2 3 *1+2 4 *1+2 5 *1+2 6 *1+2 7 *1
= 0+0+4+8+16+32+64+128
= 252

(e) 3009 Decimal to Binary
2 3009
2 1504-1
2 752-0
2 376-0
2 188-0
2 94-0
2 47-0
2 23-1
2 11-1
2 5-1
2 2-1
2 1-0

0 comments:

Post a Comment