Convert the following decimal numbers to B C D and add them. Convert the result back to decimal to check your answer.
(a) 8+7 (b) 9+9
(a) 8=1000
+7=\underline{0111}
Sum =1111 (invalid BCD number)
\begin{matrix} \text{Add}&6=\underline{0110}\\&\ \ \ \ \ \ \ \underline{10101}&=0001 &\quad &0101_{\mathrm{BCD}}\\ &&=\ \ \ \ \ \ \ &\overset{\nwarrow \nearrow }{15_{10}}&\end{matrix}(b) 9=1001
\begin{matrix}+9&=&\underline{1001} \\\text{ Sum }&=&10010&& &(\text{invalid because of carry})&\\ &&\overset{\nwarrow }{\text{carry}} \\\text{Add }6& =& \underline{0110}\\ &&\underline{11000} &=& 0001& &1000_{\mathrm{BCD}}\\&&&&&\overset{\nwarrow \nearrow }{=18_{10}} \end{matrix}