Determine the average amount of time people spend waiting

Assignment Help JAVA Programming
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.

Reference no: EM13660120

Questions Cloud

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?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd