Exercise 1
1
) Write an algorithm for an everyday task. Pick a common or
interesting task and breaking it down to the level that a
computer might understand.
–
–
–
Some suggestions: brushing your teeth, taking a shower, a cooking
recipe, how to get to the university, …
Make it extra specific: pretend you are explaining to someone with no
common sense and no knowledge of the task, like an alien or a robot.
Format: follow the same format of the example 1 and specify what is
the input (like ingredients in a recipe) and the output (if needed).
–
–
Try to use conditions by using words such as “if”, “else” or “otherwise”.
Try to use repetitions by using the word such as “jump to step” when
the same step must be repeated.