Write a program to simulate a queue at a bank


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.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program to simulate a queue at a bank
Reference No:- TGS0893390

Expected delivery within 24 Hours