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.
Consider a task that can be modeled through a reasonable number of steps, which is at your choice.
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.
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.
Include at least one decision and one loop in the algorithm