Question
Algorithms can be done graphically or in words. In this exercise we will be creating an algorithm using words. A typical written algorithm for brushing
Algorithms can be done graphically or in words. In this exercise we will be creating an algorithm using words.
A typical written algorithm for brushing your teeth would be as follows:
1. Get Toothbrush
2. Put tooth paste on brush
3. Brush Teeth
4. Rinse with water.
One of the issues with this algorithm is the level of detail provided. Often time the level of detail depends on how precise we want the process to be done. If we want to leave the details to the user we do not give a lot of direction (like this one is situated). However if we must have something done in a specific way we have to provide the detail.
Lets supposed we need more detail. The above algorithm would change as follows:
1. Get Toothbrush
2. Put tooth paste on brush
3. Brush Outside of top teeth both vertically for 10 strokes and horizontally for ten strokes
4. Brush Outside of bottom teeth both vertically for 10 strokes and horizontally for ten strokes
5. Brush inside of top teeth both vertically for 10 strokes and horizontally for ten strokes
6. Brush inside of bottom teeth both vertically for 10 strokes and horizontally for ten strokes
7. Brush tongue 25 times
8. Brush right cheek 25 times
9. Brush left cheek 25 times
10. Rinse with water.
Why do we want the detail? Because analysts tell developers what must happen and if you do not do it specifically the developer will do what they think is best which may not be what you or your client want.
Determining the right level of detail oftentimes is not always easy but with practice you will get it right more often than not.
Here is Your Assignment
Prepare a written algorithm that you would follow to start your locked car. Be certain to provide the detail needed.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started