I need a assistance in creating a program to model petrol station.The petrol station has six fuel pumps that are numbered from 1 to 6. Each fuel pump can only vend fuel of a particular type.Each fuel pump has a space next to it in which a single vehicle can occupy when it is being fueled.
There is also enough space for a queue of 5 vehicles to form behide each fuel pump.Therefore when all the fuel pumps are occupied and all queues are full, there are six vehicles filling-up with fuel and 30 other cars waiting to fill-up. Each vehicle takes 3 minutes to to fill-up, however this time does not include the time taken waiting in a queue.It is only the time that a customer spends at the pump filling up with fuel and paying bill
code snippets will really help.
There is also enough space for a queue of 5 vehicles to form behide each fuel pump.Therefore when all the fuel pumps are occupied and all queues are full, there are six vehicles filling-up with fuel and 30 other cars waiting to fill-up. Each vehicle takes 3 minutes to to fill-up, however this time does not include the time taken waiting in a queue.It is only the time that a customer spends at the pump filling up with fuel and paying bill
code snippets will really help.
Comment