You are to use the queue data structure to design a traffic control system at an intersection to help ease congestion. To simplify the problem, there is only one lane for each way and there are no left turns or right turns. But, for a bonus you may add left-turn and right-turn lanes. Use a random number generator to determine the car arrival at the intersection. The design must keep cars' waiting time to the minimal (so there are smaller chances of congestion). The program must show in output (in real time) the traffic lights for lanes (red, green), the number of cars waiting in each lane, how long each car has waited and the average waiting time in each lane. Also use GUI.
7 freelancer rata-rata menawar $39 untuk pekerjaan ini
I have an existing solution about this project. But I have a question about the GUI, could you provide more details about what kind of GUI do you want?