Binary Number into Decimal Numbers

3

Click here to load reader

Transcript of Binary Number into Decimal Numbers

Page 1: Binary Number into Decimal Numbers

Assignment # 2

ObjectiveThis assignment is designed to help you enable understand the conversion between different number systems.

AssignmentQuestion No. 1: Convert the following Binary Number into Decimal Numbers. (Marks 2+2)

a. 100101= (1 x 25) + (0 x 24) + (0 x 23) + (1 x 22) + (0 x 21) + (1 x 20)= (1 x 32) + (0 x 16) + (0 x 8) + (1 x 4) + (0 x 2) + (1 x 1)= (32) + (0) + (0) + (4) + (0) + (1)= 32 + 4 + 1= 37

b. 1110 0111= (1 x27)+(1 x26)+(1 x25)+(0 x24)+(0 x23)+(1 x22)+(1 x21)+(1 x20)= (1 x 128)+(1 x 64)+(1 x 32)+(0 x 16)+(0 x 8)+(1 x 4)+(1 x 2)+(1 x 1)= (128) + (64) + (32) + (0) + (0) + (0) + (4) + (2) + (1)

= 231

Question No. 2: Convert the following Decimal Numbers into Binary Numbers. (Marks 2+2)

a. 567 2 567

2 283→12 141→12 70 →12 35 →02 17 →12 8 →12 4 →02 2 →0

1 →0

=(1000110111)2

Page 2: Binary Number into Decimal Numbers

b. 902 902 45→02 22→12 11→02 5 →12 2 →1

1 →0

=(1011010)2

Question No. 3: convert the following Octal and Hexadecimal Numbers into Binary Numbers. (Marks 2+2)

a. 43 4 3

100 011

=(100011)2

b. 2AF

2 10 15

0010 1010 1111

=(001010101111)2