Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Peanut Butter and Jelly Challenge As you have seen, algorithms play a vital role both in our daily lives and in the field of

The Peanut Butter and Jelly Challenge

As you have seen, algorithms play a vital role both in our daily lives and in the field of computer science. Our minds can effortlessly break down and process complex instructions, but this is usually because we have completed such a task before and understand what is implied by an ambiguous command. "Brush your teeth" seems simple enough, but "flantrix your squifflelizer" makes no sense unless you have previous experience with those words. In this assignment, you will be taking a fairly common task, creating a peanut butter and jelly sandwich (a PBJ if you will), and looking at it from the point of view of somebody who doesnt understand what a PBJ is.

Part 1 How to Make a PBJ

For this part of the assignment, you will be writing an algorithm for creating a peanut butter and jelly sandwich. These directions will then be programmed into the Sandwich Bot 9000 (the SB9000), who will create delicious PBJs for you at your convenience. However, the SB9000 has little to no understanding of the basic human concepts needed to construct a PBJ, so you will have to explain everything it needs to do to accomplish this task.

The materials available to the SB9000 are:

- 1 loaf of bread, pre-sliced and sealed in the bag with a twist-tie

- 1 jar of peanut butter, lid closed but with the seal removed

- 1 jar of your favorite flavor of jelly, unopened

- 1 plate, washed and sanitized

- 1 roll of paper towels or a stack of napkins

- 1 butter knife, not overly sharp

Create a step-by-step set of instructions for the SB9000

Be detailed and specific. Be sure to consider how your directions might be ambiguous or have multiple interpretations. While "place bread on the plate" may make sense to you, SB9000 may not understand or may interpret that in an unexpected way. Once you have finished the instructions, ask someone to check them by assuming the role of the SB9000. Have your SB9000 follow your directions, and ask it to do so as explicitly as possible.

Part 2 Analysis

In Part 1 you created a set of instructions.

Answer the following questions.

1. Are your instructions sufficient for the SB9000 to make a sandwich properly? Why or why not?

2. Come up with four different ways the instruction "Place bread on the plate" could technically be completed. For each way, provide a detailed description of how the SB9000 could attempt this step.

3. Provide a replacement for the step "Use knife to apply jelly to bread "that is less ambiguous. You may use multiple steps if needed.

4. If you wanted the SB9000 to be programmed to make a variety of sandwiches (lets say a PBJ, a Bacon, Lettuce and Tomato (BLT), or a Turkey Sandwich), what tasks are common to the creation of all of these sandwiches? Provide two examples of a task that could be used in all three sandwiches.

5. How well did your directions in Part 1 work? Take your original directions and recreate them with additional detailtry to remove as much ambiguity as you can.

All the answers I see are for part one. Could someone please answer part two also?

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

Step: 3

blur-text-image

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

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

What is the meaning of the term opportunity recognition?

Answered: 1 week ago