The CTP Book

A book for teaching Computational Thinking and Programming skills to people with a background in the Humanities

View on GitHub

Chapter “Algorithms”, exercise 2

Text

Write the flowchart of an algorithm that takes in input two objects and returns the string "yes" whether the two objects are the same; otherwise, it returns the string "no".

Answer

Flowchart solving the exercise

Additional Material

The PNG file and the source GraphML file (that can be open and modified with yEd) of the flowchart are available online.