Problem:
Question- Write a program C++ to simulate a queue at a bank.
The program should be menu driven and have the following options:
a) Display queue (Displays customer number and arrival time in a tabular form)
b) New customer arrives (Queue increases in size by one and arrival time is logged)
c) Customer leaves (Should calculate total waiting time and average waiting time)
d) Get data (Should display the total waiting time, average waiting time, number of customers serviced and present time)
Write the code step by step and explain it.