What is an Algorithm?
An unambiguous set of steps,which when preformed correctly by a processor, will result in a process being carried out in a finite time.
What two properties of the algorithm enable it to correctly describe the solution to the problem of making a cup of coffee?
The sequence and selection properties enable it to correctly describe the solution of making a cup of coffee.
Define Algorithms for the following processes.
Posting a Letter:
1.Pick Up a pen and paper
2.Write the Letter on the paper
3.After Finished,put letter in a envelope
4.Write the Address and Who wrote the letter on the envelope
5.Put a Stamp on the envelope
6.Post it in your local post Office
Making Toast:
1.Pull out the toaster
2.Get a slice of bread
3.Place it in the Toast Maker
4.Turn it on
5.Wait 2-3 mins for the bread to toast
6.Carefully Take the toast out
7.Turn the machine off.
Calling a friend
1.Pick up the phone
2.Dial the Number you need
3.Press the talk button
4.Wait for the person to answer
5.If not repeat steps 1-3
6.When the person answers the phone talk to them
An unambiguous set of steps,which when preformed correctly by a processor, will result in a process being carried out in a finite time.
What two properties of the algorithm enable it to correctly describe the solution to the problem of making a cup of coffee?
The sequence and selection properties enable it to correctly describe the solution of making a cup of coffee.
Define Algorithms for the following processes.
Posting a Letter:
1.Pick Up a pen and paper
2.Write the Letter on the paper
3.After Finished,put letter in a envelope
4.Write the Address and Who wrote the letter on the envelope
5.Put a Stamp on the envelope
6.Post it in your local post Office
Making Toast:
1.Pull out the toaster
2.Get a slice of bread
3.Place it in the Toast Maker
4.Turn it on
5.Wait 2-3 mins for the bread to toast
6.Carefully Take the toast out
7.Turn the machine off.
Calling a friend
1.Pick up the phone
2.Dial the Number you need
3.Press the talk button
4.Wait for the person to answer
5.If not repeat steps 1-3
6.When the person answers the phone talk to them
No comments:
Post a Comment