Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The Peanut Butter and Jelly Challenge As you have seen, algorithms play a vital

ID: 3882676 • Letter: T

Question

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 doesn't understand what a PBJ is. 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.

Explanation / Answer

Here is an algorithm for SB9000 to make a Peanut Butter & Jelly Sandwitch

Step1: Take the bag which is twisted and having a seal on it. Remove the seal from it .Now twist it in the opposite direction in which it was already twisted. Take two slices of bread present in it.

Step2: Take a plate which is round in shape and hard. Now put the removed bread on it.

Step3: From the napkins kept on another, take one of it.

Step4: Take a knife which is long in size and is metallic and not too sharp. Rup it with the napkin so that it will be cleaned.

Step5: Take jar whose lid is closed and has no seal on it. Open it and remove peanut butter from it through knife. And spread it on one of the bread but only on one side.

Step6: Take jar whose lid is not opened.Select your favorite flavor of jelly, remove Jelly from it through knife. And spread it on another bread, only on one side.

Step7: Put both the breads on one another with spreaded sides touching each other. And then roast it.

Step8: Your Peanut Butter & Jelly Sandwitch is ready. Now you can eat it.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote