Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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