Building a tool booth simulation program using queue

已完成 已发布的 Dec 7, 2015 货到付款
已完成 货到付款

Write a program that will use queues to simulate tollbooth station traffic. Cars arrive at the toll station at an average rate (probability). Each toll transaction will take a certain amount of time, according to a user-entered distribution. As each car arrives it is placed in the queue. If the queue is filled to capacity, a second queue is opened and the queues share the accumulated load. A newly arriving car will always go into the shortest queue, thereby acting as a natural balancing method. Whenever all open queues are filled to capacity, a new queue is opened, and the entire load is redistributed. Once a queue is open it is never closed. The object then is to find a minimum \"correct\" number of queues that will maintain servicing incoming traffic without overloading any of the queues. Since probability is a factor, we will assume that \"one hour\" of operation without any queue overload satisfies our objective.

Java

项目ID: #9068680

关于项目

2个方案 远程项目 活跃的Dec 7, 2015

授予:

computerneek

I have 5 years experience writing Java and can certainly write the simulator you require, along with an acceleration option to allow the entire several-hour simulation to pass in just seconds. Please contact me for fu 更多

$10 USD 在1天内
(1条评论)
0.0

有2名威客正在参与此工作的竞标,均价$28/小时

johnfidel98

A proposal has not yet been provided

$45USD 在1天里
(6条评论)
3.7