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

  Outline a test plan for a substantial real-life system

Describe how you would approach the design and testing process to ensure success and quality in the result and where are the risks? How are you going to address them?

  Xml assignment help please follow instructions in the

please follow instructions in the attached assignment instructions. ltbrgtplease follow instructions in the attached

  Create a project using the classes in the doc sharing area

create a project using the classes in the Doc Sharing area labeled A Simple LinkedList class. Compile it, run it, and review the code that is given carefully. This code tests the LinkedList class provided in the lecture.

  This is a simulation of rolling dice actual results

this is a simulation of rolling dice. actual results approach theory only when the sample size is large. so we will

  Create a class named blooddata that includes fields

Create a class named BloodData that includes fields that hold a blood type (the four blood types are O, A, B, and AB) and an Rh factor (the factors are + and -). Create a default constructor that sets the fields to "O" and "+", and an overloaded c..

  Java program editing

Prompt the user for the student's score and put that value into an object

  1 rock-paper-scissors simplejavaproblems 1-3 are based on

1 rock-paper-scissors simple.javaproblems 1-3 are based on the rock-paper-scissors game. if you are unfamiliar with

  Write a program comprising classes

Write a program comprising three classes: MonteCarlo (with the main() method), Simulation, and Metrics.

  Java program to write-read data from user using i-o function

Write java program to write and read data from user using I/O functions. Describe class with data members name[20],emp_id,basic pay,net pay.calculate all the allowances.

  Make a fourth button called special

Make a fourth button called "special" that does something else notdescribed in the assignment, such as change the background color.

  Design a class named large integers

Design a class named largeIntegers such that an object of this class can store an integer of any number of digits.

  Using the following data definition classpublic class

using the following data definition classpublic class circle private int radiuspublic circleint r radius rpublic int

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