Computer Science, asked by udhayakumar5976, 19 days ago

flow chart to convert a decimal number into binary number

Answers

Answered by abhijeetkishu
2

hope the above attached image helps you.

click it for bigger view

please mark this as the brainiest answer

Attachments:
Answered by qwluton
0

Here is an example of a flowchart that demonstrates the process of converting a decimal number into a binary number:

Start

Input: decimal number

Initialize binary number as empty string

While decimal number is greater than 0:

   Divide decimal number by 2 and store the remainder

   Add the remainder to the binary number

   Update decimal number to be the quotient

Reverse the binary number

Output: binary number

End

  • The flowchart starts by taking a decimal number as input. Next, it initializes an empty string variable to store the binary number.

  • The process then enters a while loop which runs as long as the decimal number is greater than 0. Inside the loop, the decimal number is divided by 2 and the remainder is obtained. This remainder is then added to the binary number and the decimal number is updated with the quotient obtained from the division.

  • When the while loop terminates, the binary number is reversed. And it is output as the final binary number.

It is worth noting that this is a simple method to convert decimal to binary, there are other methods such as bitwise operator method or divide-by-2 method which can be used as well.

#SPJ3

Similar questions