Bus Simulation in C++
该项目成功由xeathprynx ，以 $39 USD的价钱在 天内完成。为像这样的项目获取免费报价
项目预算$25 - $40 USD
Bus simulation in c++
Write a bus simulation in c++. The purpose of the simulation is to observe the behavior of the system, and answer the following questions: [url removed, login to view] the distance between the buses keep uniform? If not, what should be done to ensure it is uniform? [url removed, login to view] 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.)
Plot the positions of buses as a function of time (you will need to generate periodic snapshots of the system for that). You can use these parameters:
• 15 bus stops
• 5 buses
• The time to drive between any two contiguous stops is 5 minutes
• The passenger’s 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.
Use c++ for this program. Looking for the code in working order.
- The New York Times
- Wall Street Journal
- Times Online