imulation 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, a
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. -
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 want this code in the above topic and requirement please in C language..this questions has been asked some many times but they kept giving me same program which is not right...please help!
C programming is a general-purpose, procedural, imperative computer programming language developed in 1972 by Dennis M. Ritchie at the Bell Telephone Laboratories to develop the UNIX operating system. C is the most widely used computer language. It keeps fluctuating at number one scale of popularity along with Java programming language, which is also equally popular and most widely used among modern software programmers.
Advantages of learning C Programming:
-
Easy to learn
-
Structured language
-
It produces efficient programs
-
It can handle low-level activities
-
It can be compiled on a variety of computer platforms
-
C was invented to write an operating system called UNIX.
Step by step
Solved in 2 steps