Answer to Question #262325 in Algorithms for Alunsina

Question #262325

Flowcharting (Iteration Structure)

Write an algorithm and draw a flowchart that will convert a given decimal number (N10) to its equivalent binary number (N2).


1
Expert's answer
2021-11-08T17:37:25-0500

Start

Take input ( a decimal number like ‘a ‘)

Start the loop (for (i=0 ;i>1 ;i++))

Apply following calculation inside loop

ar[i]=a%2

a=a/2

Outside loop

ar[i]=a

start loop again for print (for (j=i; j>=0; j—) )

Out ar[j]

End





Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS