Improve the efficiency of their operations

Assignment Help JAVA Programming
Reference no: EM13677510

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.

The fancy new French restaurant La Foodis 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:

At n name

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:

Tt

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.

Reference no: EM13677510

Questions Cloud

Determine at what rate is energy being removed : A 150 gram aluminum cup contains 1100 gram of water in thermal equilibrium with the cup at 80°C. Find at what rate is energy being removed
The six strings of a guitar are the same length : The six strings of a guitar are the same length and under nearly the same tension, however they have different thicknesses. On which string do waves travel the fastest? The thickest or thinnest? Why?
Find how much time elapses : A 1.00 kilogram, horizontal, uniform tray is attached to a vertical ideal spring of force constant 190 N/m and a 270 gram metal ball is in the tray. Find how much time elapses between releasing the system at point A and the ball leaving the tray
Two separate methods by which cholecystokinin-leptin act : Explain the two separate methods by which cholecystokinin (CKK) and leptin act on the CNS to restrict food intake. Name one effective (FDA-licensed) drug that reduces food intake, and indicate its mode of action. Why have many other compounds failed ..
Improve the efficiency of their operations : 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.
Compute how much heat went into the gas : A gas expands from 1 m3 to 2 m3 at a constant pressure of 500 Pa. Compute how much heat went into the gas
Consider the waves on a vibrating guitar string : Consider the waves on a vibrating guitar string and the sound waves the guitar produces in the surrounding air. The string waves and the sound waves have the same frequency. Can someone describe why?
Surface distribution of charge on each sphere is uniform : Two identical conducting spheres each having a radius of 0.500 cm are connected with a light 2.40 m long conducting wire. A charge of 66.0 µC is placed on one of the conductors. Suppose the surface distribution of charge on each sphere is uniform. De..
Find how many pellets must be added to water : Lead pellets, mass of each is 0.80 gram is heated to 200°C. Find how many pellets must be added to 480 gram of water that is initially at 20°C to make the equilibrium temperature 25°C

Reviews

Write a Review

JAVA Programming Questions & Answers

  Q1write a program called linearstringsearchjava that looks

q1.write a program called linearstringsearch.java that looks for a target string value in an array of string values.

  One-dimensional array to solve the

In C#, Use a one-dimensional array to solve the following problem. A company pays its salespeople on a commission basis. The salespeople each receive $200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who gros..

  Afterwards a way for the user to input

And so on and so forth then afterwards a way for the user to input that they finished a particular task on the list. After the user has input that they have finished a particular task the program should be print "Good Job!" or "Keep it up!"

  Java program use breadth-first search closest broadcast

Write the java program which will use breadth-first search (which you implement as part of your program) to determine the closest broadcast vertex for each vertex in graph.

  If the number on two of the players'' four cards

If the number on two of the players' four cards is the same and the number on the remaining two cards is also the same yet the number on all four cards in not the same then the player gets their bet back and in addition wins 22 chips for each chip th..

  Define an adt for character strings.

Define an ADT for character strings. Your ADT should consist of typical functions that can be performed on strings, with each function defined in terms of its input and output. Then define two different physical representations for strings.

  Sorted list adt and the binary search tree adt

Explain the differences between our specifications of the Sorted List ADT and the Binary Search Tree ADT.

  Design an application for pizza order process

Create an application to take and procedure a pizza order. The user should be able to make pizza order choices from listboxes, and the application should show the order price.

  Ticketmaster

TICKETMASTER - this class will have: a service charge = $8.00 per ticket, tax = .085 current amount of all tickets sold. Its responsibilities are printing a list of events for sale, looking up an event for a customer, and selling a ticket to the e..

  Enterprise java beans (ejb) in software development

Enterprise Java Beans (EJB) in software development, EJB technology, EJB application, Stateless Session Beans (SLSB), Stateful Session Beans (SFSB), Message Driven Bean (MDB), Entity Bean

  Creating the gui for the game interface

A GUI-based application that allows a user to play a simple trivia game

  Program (using java) that is suppose to find the largest

writing a program (using java) that is suppose to find the lowest integer that can be evenly divided by a range (ex. 1-25). I need help fixing/debugging it so it comes up with the proper output.

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