FoodFlop

FoodFlop is a new delivery service in the age of Covid-19. No longer allowed to bring food items directly to
customers in person, this service has a trademark routine where the food is “flopped” (with extra dramatic flair)
onto the porch for a contactless delivery.
You’ve been asked by FoodFlop to write a program that can optimize the delivery operations of its team of
drivers. There are a few constraints that must be met:
The food is arranged in the delivery car such that only the most recent pickup is available for delivery (in other
words, LIFO order). For example, if items A, B, and C were picked up in that order, the next delivery must be C,
then B, then A.
Any number of deliveries can be made. The food is kept hot (or cold) by special packaging and can be kept in
the car indefinitely.
At the end of the route, all of the food that was picked up must have been delivered.
Write a program that accepts a series of proposed “pickups” and “dropoffs” as input, and outputs whether or
not the proposed series is valid. View the below video for some ideas on getting started.
There are only five restaurants in this small town, identified as follows:
Applebee’s
Burger King
Chipotle
Domino’s Pizza
El Pollo Loco
The input file (a text file) is a series of proposed pickup and dropoff sequences which should be independently
verified. Each sequence starts with an empty stack and is formatted in the file as follows:
At the beginning of a new sequence, the number of lines in that sequence is given (a single integer by itself,
this will be at least 1).
A pickup – labeled with a 1 followed by a letter (A, B, C, D or E for short).
A dropoff – labeled with a 2 followed by a letter.
Example:
This input file has 5 separate series which should be verified independently of each other.
4
1 B
1 A
2 A
2 B
8
1 A
1 B
1 C
2 C
2 B
1 D
2 D
2 A
3
1 D
1 A
2 A
4
1 B
1 C
2 B
2 C
2
1 E
2 E
Output
Your program should output, for each series of pickups and dropoffs, whether this is a valid series, which is
true if:
2/10/2021 Order 336433356
https://admin.writerbay.com/orders_available?subcom=detailed&id=336433356 3/3
The series can be accomplished, given the constraints, and
All of the food is delivered (the car is empty) at the end of the series
If both of these are true, the series is valid, otherwise it is not valid.
You program should output only ‘valid’ or ‘not valid’, one line per test case. Be sure to turn off any extra cout or
debugging statements.
For the example input file above (which has 5 separate series) here is the correct output:
valid
valid
not valid
not valid

Sample Solution

The post FoodFlop appeared first on homework handlers.

Economic principles

1.Name and explain the conditions or assumptions required for perfect competition.
2.Explain what happens in the long run when firms in an industry are earning positive profit, and why
economists assume normal profit in competitive industries is 0.
3.Explain the “law” of increasing opportunity costs, why we expect to see this tendency, and how it impacts our
graphical representation of a PPF.
4.Why is equilibrium considered efficient?
5.Explain the concept of elasticity (what is it, what does it mean, how is it useful?) and why it is preferable to
looking at slope alone.
6.The market for X is experiencing a shortage. Explain what “market forces” are and how they will adjust this
market until it reaches equilibrium. Provide an example to illustrate.

Sample Solution

The post Economic principles appeared first on homework handlers.

Ethnic Market Visit

1.Visit or take a virtual tour of an ethnic market or grocery store that caters to a specific ethnic population or culture. This should not be a traditional American grocery store such as Vons, Ralphs, Sprouts, Trader Joe’s or the like.
In-person visit – You will need to take photos of the store and items you write about. You might introduce yourself to the staff and/or manager to ask permission or for help to answer questions.
Virtual tour – Epicurious has a Lost in the Supermarket YouTube series with several virtual market tours here, https://www.youtube.com/playlist?list=PLz3-p2q6vFYV1g6h9AL18oPDEvthND1CE (Links to an external site.). Or you can find your own virtual tour (please include the URL to the tour you choose)
2.Prepare a written description of your visit or tour including all the items listed below.

Paragraph 1, General Description (5 points)
Name and address of the store (or virtual tour URL)
What cultures are served by this store?
Describe the store, how is it set up compared to a traditional American supermarket? Are there aisles or areas dedicated to products that do not usually appear in traditional American supermarkets?
What language is used for package labeling and signage within the store?
Include one picture of the grocery store inside and out.
Paragraph 2-5, Foods and flavors (15 points)
Flavor Principles/Core Foods (5 points):
Consult your text to identify and list the flavor principles of the cuisine represented at this market.
List and describe THREE spices/herbs/seasonings you see available in the market.
Do these fit the flavor principles of the cultural cuisine from the text?
Are you familiar with these? How do you think they are used?

Sample Solution

The post Ethnic Market Visit appeared first on homework handlers.

The American Diabetes Association

According to the American Diabetes Association, over 30 million people in the U.S. have diabetes. Diabetes is
the 7th leading cause of death in the U.S. Complications of diabetes include cardiovascular diseases, such as
heart attack and stroke, retinopathy, neuropathy, kidney disease, skin conditions, gum disease, and others.
Health care costs and other costs associated with diabetes run more than $245 billion per year.
With the prevalence of this disease, you probably know someone, family or friend, who has diabetes, and may
know first-hand the impact of diabetes. To learn more, use the ADA Website, the National Institute of Diabetes
& Digestive & Kidney Diseases Website, eMedTV or a source of your own. The Websites are linked in the
Module. In this discussion thread discuss the issues and challenges a person faces in managing their diabetes.
Share something you learned about diabetes from resources you explored.
Links: https://www.diabetes.org/diabetes
https://www.niddk.nih.gov/health-information/diabetes?dkrd=lgdmn0026

Sample Solution

The post The American Diabetes Association appeared first on homework handlers.