0160.  Convert the following binary numbers to decimal:

 

a.   111

b.   1011011

c.   1111111111

 

1112 = 1 * 22 + 1 * 21 + 1 * 20  = 22 + 21 + 20  =  4 + 2 + 1 = 7

10110112   = 1 * 26 + 0 * 25 + 1 * 24 + 1 * 23 + 0 * 22 + 1 * 21 + 1* 20 

= 26 + 24 + 23 + 21 + 20  = 64 + 16 + 8 + 2 + 1 = 91

11111111112 = 1 * 29 + 1 * 28 + 1 * 27 + 1 * 26 + 1 * 25 + 1 * 24 + 1 * 23 + 1 * 22 + 1 * 21 + 1 * 20

= 29 + 28 + 27 + 26 + 25 + 24 + 23 + 22 + 21 + 20

= 512 + 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 1023