Question: Write an algorithm for making ( but not eating ) one Toasted Peanut Butter and Onion Sandwich. Restrict yourself to a vocabulary of no more
Write an algorithm for making but not eating one Toasted Peanut Butter and
Onion Sandwich. Restrict yourself to a vocabulary of no more than different words, plus any
required numbers. An example of a vocabulary is given in Appendix A of Daniel Liang Introduction to
Programming with C Appendix A is the list of keywords in the C programming language.
You select your own appropriate set of words for this task. Assume the ingredients jar of peanut
butter, bag of unsliced Spanish onions, whole wheat bread, polyunsaturated margarine are in the
refrigerator beside the toaster and that the necessary tools knives etc. are in the drawer underneath
the toaster.
The instructions must be very simple and exact because the person making the sandwich has no
knowledge of food preparation and takes every word literally. Make sure to put a Stop statement in
your algorithm. In your answer include an alphabetical list of your words and indicate how many
different words other than numbers you used.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
