KnowledgeBoat Logo

Computer Science

Add the following binary numbers:

(i) 10110111 and 1100101

(ii) 110101 and 101111

(iii) 110111.110 and 11011101.010

(iv) 1110.110 and 11010.011

Number System

156 Likes

Answer

(i) 10110111 and 1100101

1101110111111+1100101100011100\begin{matrix} & & \overset{1}{1} & \overset{1}{0} & 1 & 1 & \overset{1}{0} & \overset{1}{1} & \overset{1}{1} & 1 \ + & & & 1 & 1 & 0 & 0 & 1 & 0 & 1 \ \hline & \bold{1} & \bold{0} & \bold{0} & \bold{0} & \bold{1} & \bold{1} & \bold{1} & \bold{0} & \bold{0} \end{matrix}

Therefore, (10110111)2 + (1100101)2 = (100011100)2

(ii) 110101 and 101111

11110111011+1011111100100\begin{matrix} & & \overset{1}{1} & \overset{1}{1} & \overset{1}{0} & \overset{1}{1} & \overset{1}{0} & 1 \ + & & 1 & 0 & 1 & 1 & 1 & 1 \ \hline & \bold{1} & \bold{1} & \bold{0} & \bold{0} & \bold{1} & \bold{0} & \bold{0} \end{matrix}

Therefore, (110101)2 + (101111)2 = (1100100)2

(iii) 110111.110 and 11011101.010

0101111101111111.1110+11011101.010100010101.000\begin{matrix} & & \overset{1}{0} & \overset{1}{0} & \overset{1}{1} & \overset{1}{1} & \overset{1}{0} & \overset{1}{1} & \overset{1}{1} & \overset{1}{1} & . & \overset{1}{1} & 1 & 0 \ + & & 1 & 1 & 0 & 1 & 1 & 1 & 0 & 1 & . & 0 & 1 & 0 \ \hline & \bold{1} & \bold{0} & \bold{0} & \bold{0} & \bold{1} & \bold{0} & \bold{1} & \bold{0} & \bold{1} & \bold{.} & \bold{0} & \bold{0} & \bold{0} \end{matrix}

Therefore, (110111.110)2 + (11011101.010)2 = (100010101)2

(iv) 1110.110 and 11010.011

011111101.1110+11010.011101001.001\begin{matrix} & & \overset{1}{0} & \overset{1}{1} & \overset{1}{1} & 1 & \overset{1}{0} & . & \overset{1}{1} & 1 & 0 \ + & & 1 & 1 & 0 & 1 & 0 & . & 0 & 1 & 1 \ \hline & \bold{1} & \bold{0} & \bold{1} & \bold{0} & \bold{0} & \bold{1} & \bold{.} & \bold{0} & \bold{0} & \bold{1} \end{matrix}

Therefore, (1110.110)2 + (11010.011)2 = (101001.001)2

Answered By

16 Likes


Related Questions