Reference no: EM13660120
The fancy new French restaurant La Food is very popular for its authentic cuisine and high prices. This restaurant does not take reservations. To help improve the efficiency of their operations, the Maitre De has hired you to write a program that simulates people waiting for tables. The goal is to determine the average amount of time people spend waiting for tables.
Your program will read in a list of event descriptions from a text file, one description per line.
- Arrival: A party has arrived to eat. Add them to the end of the list of waiting parties (a Queue) and tell them to wait at the bar (where strong drinks are served) until called. This event is described in the following format:
Here t is the time of arrival (in minutes past opening time), n is the number of people in the party, and name is the name to call when the table is ready.
- Table: A table has become available; remove the party that has been waiting the longest from your list, and seat them. This event is described in the following form:
Here t is the time the table became available (again, in minutes past opening time),
- Quit: This is a sentinel event indicating the end of the input file. It has the following form:
Q When the events in the file have been processed, compute and print the average waiting time per customer. If there are still people waiting for tables, print a summary of who is still waiting.
1. Listing (print-out) of your nicely formatted program source code (with comments and headers)
2. Print-out of the text file that contains your restaurant information
3. Screen captures of at least three sample runs/scenario output
4. High level design using UML notation (minimum of a use case diagram, a class diagram for Party class, & a sequence diagram)
5. Utilize the submission template provided in the course module.
A wagon is rolling forward on level ground
: A wagon is rolling forward on level ground. Friction is negligible. The person sitting in the wagon is holding a rock. The total mass of the wagon, person and rock is 95.0 kg. The mass of the rock is 0.300 kg. Originally the wagon is rolling forward ..
|
Satellite moves around the earth in circular orbit of radius
: A satellite moves around the Earth in a circular orbit of radius r. (utilize G for the universal gravitation constant, M for the mass of the Earth, and r, as appropriate, when answering parts (a), (b), and (c) below.)
|
What percent of profits would be appropriate
: Is diverting a portion of corporate profits to fighting a childhood disease a legitimate CSR activity for DMBC? What percent of profits would be appropriate - Where on Carroll's global CSR pyramid would you put Gino Duncan's idea
|
Register a proprietary limited company
: Register a Proprietary Limited Company. Complete an application form and prepare all relevant consents -
|
Determine the average amount of time people spend waiting
: Determine the average amount of time people spend waiting for tables - The fancy new French restaurant La Food is very popular for its authentic cuisine
|
Consultancy report for anthonys orchard
: Nature and purpose of your study. Summarise your study and its objectives, and briefly state your recommendations.
|
What is the difference in pitch among above two scenarios
: What is the difference in pitch among the above two scenarios if miv0 = 90 hr , the frequency of the police siren is 440 Hz and the air temperature is20°C? What is the dissimilarity in pitch in (b) if (hypothetically) v0is half the speed of sound?
|
Discover the average induced emf through this interval
: A circular loop of radius 20 cm is placed in an external magnetic field of strength 0.10 T so that the plane of the loop is perpendicular to the field. The loop is pulled out of the field in0.30 s. Discover the average induced emf through this interv..
|
What is the tension in the wire
: A 5.3m wire with a mass of 82g is attached to the mast of a sailboat. If the wire is given a "thunk" at one end, it takes0.095s for the resulting wave to reach the other end. What is the tension in the wire?
|