Answer to Question #263696 in Algorithms for Cedric

Question #263696

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-10T06:34:34-0500
1. If N10 is 0, set N2 equal 0 and go to step 8
2. Set N2 as an empty string
3. If N10 equal 0, go to step
4. Set D equal the remainder of dividing N10 by 2
5. Add D as the leftmost digit to N2
6. Set N10 equal quotient of dividing N10 by 2
7. Go to step 3
8. Stop

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