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

  Accepts a string as its parameter and returns an integer

Write a method in java named secondHalfLetters that accepts a string as its parameter and returns an integer representing how many of letters in the string come from the second half of the alphabet

  Executing stringed musical instrument class

Create and execute a stringed musical instrument class.

  Client class to test implementation of the vector class

Write a client class to test your implementation of the Vector3D class thatyou implemented. Name the package in which this class is defined (projectname) vector3dapp.

  Become the leading coffee shop in arlington and to be the

primarily my project involves theestablishing of a javanet cafeacute where customers would enjoy coffee as they connect

  Write a java program that uses the elapsed time

Write a Java program that uses the elapsed time for an event in second and then outputs the elapsed time in hours, minutes and seconds. (For example, if the desired time is 9630 seconds, then the output is 2: 40: 30)

  Write a program that reads a file name from the keyboard

Write a program that reads a file name from the keyboard. The file contains integers, each on a separate line. The first line of the input file will contain the number of integers in the file. You then create a corresponding array and fill the array ..

  Write down a java program that implements a stack of

write a java program which implements a stack of integers. an integer should only be pushed into the stack if it is

  Template files contain the message text

Template files contain the message text, together with variable fields(such as Dear [Title] [Last Name ] ...). A database (stored as a text file) contains the field values for each recipient. Use HTML as the output file format. Then design and implem..

  Write a program displaying a text file that is in a text are

Write a program displaying a text file that is in a text area. The user enteres a file name in a text field and clicks the view button; the file is then displayed in the text area. Do not use BufferedInputStream.

  Finding java code error

Indicate in the given code segment if an error occurs. If so, point to whether it is syntax, runtime or logic and how you would fix it.

  Simple java application that uses the string

Create a simple Java application that uses the String class and/or the StringBuffer class and at least 4 of the class methods. Show the code, demonstrate it works properly and describe what it is doing.

  The burn and distance traveled

The Burn and distance traveled and the "meters to go" should appear on two lines as shown in the sample output. Note that this print should be done within the while loop.

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