Create an algorithm to describe the prime steps to complete the task that would guide the robot to fulfill the job.

 

Imagine that you want to create a robot that does what you do daily. Choose a simple task, such as your preparation to go to bed at night, the morning routine, brushing teeth, walking your dog, etc. Create an algorithm to describe the prime steps to complete the task that would guide the robot to fulfill the job. 

  1. Consider a task that can be modeled through a reasonable number of steps, which is at your choice.
  2. The algorithm should include decision items when the normal conditions of executing the task are not met. For example, if you model the routine of brushing your teeth, state what happens if you run out of toothpaste, if the water is cold, and so on.
  3. Consider including repetition items. For example, while brushing teeth, you brush ten times on each side of the mouth – you can model the repetition with a loop that counts the number of brush strokes.
  4. Include at least one decision and one loop in the algorithm
Tags: No tags