Ask a question from expert

Ask now

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

2 Pages367 Words240 Views
   

Added on  2019-09-19

About This Document

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.

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

   Added on 2019-09-19

BookmarkShareRelated Documents
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
Project 6 - Bank Queue Simulation Objective Create and Use Queues Instructions_1

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Desklib - Online Library for Study Material with Solved Assignments, Essays, Dissertations
|28
|5911
|302

Logical Design Diagram (Doc)
|27
|5971
|154

Use Case Model Diagram (Logical Design Diagram) | Assignment
|28
|6017
|505

Use Case Model Diagram (Logical Design Diagram) | Report
|27
|6046
|161

Use Case Model Diagram (Logical Design Diagram) Assignment
|27
|5261
|344

Object Modeling: Collin’s ATM System
|15
|3287
|387