Answer to Question #268050 in Algorithms for dede

Question #268050

FLOWCHART AND PSEUDOCODE

Convert decimal no. to its binary equivalent


1
Expert's answer
2021-11-18T06:56:09-0500
PSEUDOCODE:


Start
    Declare variables decimal, index, result
    Declare array binary[] 
    Read decimal
    Set index = 0
    while decimal > 0 do
       binary[index] = decimal mod 2
       index=index+1
       decimal = decimal/2
    end while
    for i = index-1 to 0 Step -1
       Set result=result+binary[i]
    End for
    Display result  
Stop




FLOWCHART 





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