Answered step by step
Verified Expert Solution
Link Copied!

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 74 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

More Books

Students also viewed these Databases questions