We define a tomato sandwich as two slices bread (toasted) with inward sides of bread buttered. The sandwich contains two slices of tomato, each with a touch of pepper. Write the algorithm(steps), in human language (English). Assume your target audience(reader) of your algorithm has no idea how to make tomato sandwiches -- they need your instructions.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Write an algorithm 'Make Tomato Sandwiches'.

 

Given: We have clean kitchen with all the necessary dishes, utensils, and ingredients. Counter is initially clear (nothing on it). Food items are all in closed containers. We have a counter with sufficient space and our uncle is present who will act as gopher (to get all the items). The bread is in a closed container or bag. the algo does not need to include cleanup.

 

Write an algorithm to make two tomato sandwiches and then serve one each to two aunties, who are sitting at the kitchen table.

We define a tomato sandwich as two slices bread (toasted) with inward sides of bread buttered. The sandwich contains two slices of tomato, each with a touch of pepper.

Write the algorithm(steps), in human language (English). Assume your target audience(reader) of your algorithm has no idea how to make tomato sandwiches -- they need your instructions.

Hint: assume that we have another algorithm available called "Make Toast" that will do the work for us making toast (and buttering bread ) and you can simply say something like this:

  • Call algorithm "Make Toast"
  • "Make Plain Toast" return 1 slice of bread to us (toasted and buttered)
  • (consider calling it multiple times -- as needed

To help get started here is one step you might include(not necessary the first step):

  • Ask uncle for a large cutting board, two large plates, a serrated knife, and a butter knife.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Computational Systems
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education