Implement the event-driven simulation of a bank that this chapter described. A queue of arrival events will represent the line of customers in the bank. Maintain the arrival events and departure events in a priority queue, sorted by the time of the event. Use a link-based implementation for the event list. The input is a text fi le of arrival and transaction times. Each line of the fi le 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 a trace of the events executed and a summary of the computed statistics (the total number of arrivals and average time spent waiting in line). For example, the input fi le shown in the left columns of the following table should produce the output shown in the right column.
![1139_d96d4c0e-4a3a-41da-b8bb-cdc0ca71575f.png](https://secure.tutorsglobe.com/CMSImages/1139_d96d4c0e-4a3a-41da-b8bb-cdc0ca71575f.png)
![1956_88d7a1a1-1d7b-48da-a36e-1eb89bcd3824.png](https://secure.tutorsglobe.com/CMSImages/1956_88d7a1a1-1d7b-48da-a36e-1eb89bcd3824.png)