Question: Write a program (Java or C)of bus simulation: 15 bus stops 5 buses The time to drive between any two contiguous stops is 5 minutes
Write a program (Java or C)of bus simulation:
15 bus stops
5 buses
The time to drive between any two contiguous stops is 5 minutes
The passengers mean arrival rate at each stop is 5 persons/min The boarding time is 2 seconds for each passenger The total simulation time is 8 hours.
The purpose of the simulation is to observe the behavior of the system, and answer the following questions: 1. Does the distance between the adjacent buses remain the same? If not, what should be done to ensure that it be the same? 2. What is the average size of a waiting queue at each stop (and what are its maximum and minimum)? (You may provide this information on an hourly [simulation time] base.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
