Pages

Monday 3 October 2011

Introduction to Computing (CS 101) Solution Assignment # 2 fall 2011


Question No. 1: Convert the following Binary Number into Decimal Numbers. Show full procedure

a. 1100100

Solution:
1100100

= 0*20 + 0*21 + 1*22 + 0*23 + 0*24 + 1*25 +1*26
= 0 + 0 + 4 + 0 + 0 + 32 + 64
= 100 Ans

b. 110001
Solution:
110001
= 1*20 + 0*21 +0*22 + 0* 23 + 1*24 + 1*25
= 1 + 0 + 0+ 0 + 16 + 32
= 49 Ans


Question No. 2: Convert the following Decimal Numbers into Binary Numbers. Show complete procedure.
a. 459
2 459 Remainder
2 229 1
2 114 1
2 57 0
2 28 1
2
14 0
2 7 0
2 3 1
1 1

Ans: 111001011