Simulation of bank calling system [Problem Description] Using linear list to simulate the bank's queuing business model [Basic Requirements] Suppose that the working hours of the bank are from 9 a.m. to 5 p.m The time when customers arrive at the bank is generated randomly, and the customers are queued in the order of arrival. The time required for each customer to handle business can also be generated randomly, no more than 30 minutes. If the randomly generated time length is 0, it indicates that the customer leaves early and does not handle business. When the program is running, input the number of bank windows, and then output the basic information of each customer's business in the bank according to the randomly generated customer data (arrival time, time required for business), including: customer arrival time, customer waiting time, what time the customer handled business in which window, and how long the business lasted. From this, we can observe the average waiting time of customers and the daily reception volume of banks when the number of windows is fixed.         other requirement Algorithm design: The required data structure is designed, the algorithm idea and algorithm steps are given, and the time complexity of the algorithm is analyzed. Annotated source code: Paste the source code, preferably annotate the code. Program run results: Paste the running result screenshot of the source code. Summary: Summarize what kinds of problems you encounter during the course of implementation and how to take the solutions etc.    i have asked this questions so many times and i was given same program i need a different program in C language and please my answer should be based on the requirement i gave thanks in adva

Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter20: Queuing Theory
Section: Chapter Questions
Problem 17RP
icon
Related questions
icon
Concept explainers
Question

Simulation of bank calling system

[Problem Description]

Using linear list to simulate the bank's queuing business model

[Basic Requirements]

  • Suppose that the working hours of the bank are from 9 a.m. to 5 p.m
  • The time when customers arrive at the bank is generated randomly, and the customers are queued in the order of arrival. The time required for each customer to handle business can also be generated randomly, no more than 30 minutes. If the randomly generated time length is 0, it indicates that the customer leaves early and does not handle business.
  • When the program is running, input the number of bank windows, and then output the basic information of each customer's business in the bank according to the randomly generated customer data (arrival time, time required for business), including: customer arrival time, customer waiting time, what time the customer handled business in which window, and how long the business lasted. From this, we can observe the average waiting time of customers and the daily reception volume of banks when the number of windows is fixed.
  •    

 

  other requirement

  • Algorithm design: The required data structure is designed, the algorithm idea and algorithm steps are given, and the time complexity of the algorithm is analyzed.
  • Annotated source code: Paste the source code, preferably annotate the code.
  • Program run results: Paste the running result screenshot of the source code.
  • Summary: Summarize what kinds of problems you encounter during the course of implementation and how to take the solutions etc.

   i have asked this questions so many times and i was given same program i need a different program in C language and please my answer should be based on the requirement i gave thanks in advance

Expert Solution
Step 1

Actually, the given requirements are :

  • Suppose that the working hours of the bank are from 9 a.m. to 5 p.m
  • The time when customers arrive at the bank is generated randomly, and the customers are queued in the order of arrival. The time required for each customer to handle business can also be generated randomly, no more than 30 minutes. If the randomly generated time length is 0, it indicates that the customer leaves early and does not handle business.
  • When the program is running, input the number of bank windows, and then output the basic information of each customer's business in the bank according to the randomly generated customer data (arrival time, time required for business), including: customer arrival time, customer waiting time, what time the customer handled business in which window, and how long the business lasted. From this, we can observe the average waiting time of customers and the daily reception volume of banks when the number of windows is fixed.

So, the code has given below:

steps

Step by step

Solved in 2 steps with 7 images

Blurred answer
Knowledge Booster
Heuristic System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole