1.

Mr. Geo purchased (10)2 kg sugar @Rs. (110 10)2 and (1010)2 kg Rice @Rs. (10100)2 . So how much rupees he has to pay in decimal.

Answer»

Convert each into decimal number system multiply and sum it up. 

(10)2 = (2)10 

(11010)= 1 × 24 + 1 × 23 + 0 × 22 + 1 × 21 + 0×21 

= 16 +8 + 0 +2 + 0 

= (26)10 

(1010)2 = 1 × 23 + 0 × 22 + 1 × 21 +0 × 20 

= 8 + 0 + 2 + 0 

= (10)2 

(10100)2 = 1 × 24 + 0 × 23 + 1 × 22 +0 × 21 + 0×20 

= 16 + 0 + 4 + 0 + 0 

= (20)2 

therfore 2 × 26 + 10 × 20 

= 52 + 200 

= 252 

So Mr. Geo has to pay Rs. 252/-



Discussion

No Comment Found

Related InterviewSolutions