Algorithm for Getting to Class in Python

Algorithm for Getting to Class in Python Homework Sample

Write all the steps involved for someone to walk to the class on the third floor, and enter the class. For more involved Python assignments contact us for a quote.

Solution:

print(“1-Look for the stairs\
\n2-Go to the stairs\
\n3-Go Up the stairs\
\n4-If third floor not reached yet\
\n\tThen: GO TO step 3\n\
\n5-Enter the floor\
\n6-Walk in the lobby\
\n7-If the class room is not reached yet\
\n\tThen: Go to step 6\
\n8-If classroom’s door is closed\
\n\tThen:Open the door\
\n9-Enter the class room\
\n10-End\n”)