For example to do the project need to pick an everyday or interesting task and create an algorithm explain how to do it. To do this task you must describe the following indication:
- Specifying the input need like ingredients in a recipe.
- Describe the process to operate on that input to produce or accomplish a task
- Describe the output will result
- Make an sumptions are made in the algorithm
The algorithm can be drawn for exmple when calling a friend on telephone:
Input: The telephone number of your friend
Output: None
Process:
Input: The telephone number of your friend
Output: None
Process:
- Pick up the telephone and listen for a dial tone
- Press each digit of the phone number on phone
- If busy, hang up phone, wait for 5 minutes, jump to spep 2
- If no one answers, leave a message then hang up
- If no answering machine, hang up and wait 2 hours, then jump to step 2
- Talk to friend
- Hang up the telephone
Asssumption:
- Step 1 assumed that you live alone and no one else could be on the phone
- The algorithm assumes the existence of a working phone and active service
- The algorithm assumes you are not deaf or mute
- The algorithm assumes a normal corded pnone