Ask a question to Desklib · AI bot


Project 6 - Bank Queue Simulation Objective Create and Use Queues Instructions

Added on -2019-09-19

Transaction Number Customer ID Arrival Time Transaction Type 1 1 1 Transfer 2 1 Deposit 3 2 4 Withdrawal 4 2 Account Balance 5 3 7 Account Balance 6 3 Withdrawal 7 3 Deposit 8 4 8 Withdrawal 9 5 9 Transfer 10 6 13 Transfer Transaction Type Table The Transaction Type table identifies the duration for the teller to perform each Transaction Type.
| 2 pages
| 367 words

Trusted by 2+ million users,
1000+ happy students everyday

Project 6 – Bank Queue SimulationObjectiveCreate and use queuesInstructionsDevelop a java program that simulates the queues in a bank. Bank Queue Simulation ProblemImplement 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. Your program must count the 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 a trace of the events executed and a summary of the computed statistics (total number of arrivals and average time spent waiting in line). InputIn this section, the various input tables are described. Customer TableThe Customer Table identifies the Customers coming into the bank, the time they arrive and the transactions they wish to perform. Note that a Customer may want to perform multiple transactions. TransactionNumberCustomerIDArrivalTimeTransaction Type111Transfer21Deposit324Withdrawal42Account Balance537Account Balance63Withdrawal73Deposit848Withdrawal959Transfer10613Transfer

Found this document preview useful?

You are reading a preview
Upload your documents to download
Become a Desklib member to get accesss

Students who viewed this