Computer Science, asked by swetasharmamani, 1 month ago

1. Decimal to Binary
i. 345

Answers

Answered by anindyaadhikari13
15

\textsf{\large{\underline{Answer}:}}

  • The binary equivalent of the decimal number (345)₁₀ is (1010 1100 1)₂

\textsf{\large{\underline{Solution}:}}

Conversion is given as follows:

\boxed{\begin{array}{c|c|c}\tt2&\tt345&\\ \tt2&\tt172&\tt1\\ \tt2&\tt86&\tt0\\ \tt2&\tt43&\tt0\\ \tt2&\tt21&\tt1\\ \tt2&\tt10&\tt1\\ \tt2&\tt5&\tt0\\ \tt2&\tt2&\tt1\\ \tt2&\tt1&\tt0\\ &\tt0&\tt1\end{array}}

Now write the remainders obtained from bottom to top:

> (345)₁₀ = (1010 1100 1)₂ (Answer)

\textsf{\large{\underline{Steps To Solve}:}}

  • Divide the number by 2.
  • Write the quotient on the left and remainders obtained on the right.
  • Repeat the above two processes until the quotient becomes 0.
  • Now arrange the remainders obtained from bottom to top.
  • Result obtained will be the binary equivalent of the given decimal number.
Similar questions