Develop a java program that simulates the queues in a bank

Assignment Help JAVA Programming
Reference no: EM13781790

Objective

· Create and use queues

Instructions

Develop a java program that simulates the queues in a bank.

Bank Queue Simulation Problem

Implement the event-driven simulation of a bank that this chapter described on pages 434 through 444. A queue of arrival events will represent the line of customers in the bank. Maintain the arrival events and departure events in an ADT event list, sorted by the time of the event.

The input is a text file of arrival and transaction times. Each line of the file contains the arrival time and required transaction time for a customer. The arrival times are ordered by increasing time.

Your program must count customers and keep track of their cumulative waiting time. These statistics are sufficient to compute the average waiting time after the last event has been processed.

Display trace of the events executed and a summary of the computed statistics (total number of arrivals and average time spent waiting in line). For example, the input file shown in the left columns of the following table should produce the output shown in the right column.

Input   File   Output
1          5        Simulation Begins
2          5        Processing an arrival event at time: 1
4          5        Processing an arrival event at time: 2
20        5        Processing an arrival event at time: 4
22        5        Processing a departure event at time: 6
24        5        Processing a departure event at time: 11
26        5        Processing a departure event at time: 16
28        5        Processing an arrival event at time: 20
30        5        Processing an arrival event at time: 22
88        3        Processing an arrival event at time: 24

Processing a departure event at time: 25

Submit

Submit the following

· UML diagram for the application

· Text file(s) containing the classes and methods

· Text file containing the results

Reference no: EM13781790

Questions Cloud

No prerequisites and no opportunity for advancement : Wendy Swan is asked to fill two new positions at her company. The first requires complicated engineering knowledge; the second has no prerequisites and no opportunity for advancement without a college degree. Wendy wants to hire younger workers so th..
Prejudice-discrimination-racism-sexism and homophobia : Create definitions for prejudice, discrimination, racism, sexism, and homophobia. Definitions for each word should come from your existing understanding of the term.
Traits and behaviors and outcome-based measures : Describe the strengths and weaknesses of traits, behaviors and outcome-based measures. For what kinds of positions is each appropriate?
Current rate of success : Based on the video fast forward to current day and give your opinion on whether or not Apple's product strategy should change given its current rate of success
Develop a java program that simulates the queues in a bank : Develop a java program that simulates the queues in a bank. Implement the event-driven simulation of a bank. A queue of arrival events will represent the line of customers in the bank.
Relationship between training and organizational development : Explain the relationship between training and organizational development. How might each contribute to strategic HR management?
How best labor agreements can be written to offer some : The grievance process-which typically is comprised of labor agreements negotiated by organized labor-has been severely criticized by many analysts for providing unwarranted protection for workers, and for making many types of workers virtually incapa..
Blends regular and premium products from two types : The Carrington Oil Company blends regular and premium products from two types of crude oil, heptane (H) and octane (O). Each liter of regular is composed of at least 50% H. Each liter of premium is composed of at least 40% H. During this planning per..
Assignment on proactive planning : Assignment on Proactive Planning.

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