still i don’t know how to begin my program on this problem:
A superhighway connects one large metropolitan area to another.
A vehicle leaves the first city every 5-35sec. 20% of the vehicles have
1 passenger, 30% have 2 passengers, 10% have 3 passengers and and 10%
have 4 passengers. the remaining 30% of the vehicles are buses, which
carry 40 people.
It takes 50sec-1min &10sec for vehicles to travel between the two
areas. How long does it take for 500 people to arrive in the second
- A simulation process of the movement of vehicles from one point to
- The time (in minutes) for 500 people to arrive in the second city.
i can’t even think on how can i start this one in ruby a newbie like me
have only limited knowledge on ruby. can someone help with my program?