An car factory has a station that paints car parts. Write code that simulates the following single queue, single server queuing model for the factory's paint station where each part leaves the system as soon as the station is done painting it.

  • The simulation runs until 100 parts are painted.
  • The interarrival times for the first 50 parts are CONSTANT(3). (Parts 1 through 50 have an interarrival time of 3 minutes)
  • The interarrival times for the last 50 parts are CONSTANT(7). (Part 51 arrives 7 minutes after part 50. Parts 51 through 100 have an interarrival time of 7 minutes)
  • The service times are CONSTANT(5). The station takes exactly 5 minutes to paint a part.
  • The queue discipline is FIFO
  • One queue with an infinite capacity
  • We only have one server (the assembly line's press).

Once done with the simulation, your code must print the correct values of the following performance measures.

Average length of the queue
Average wait times

Outputs needed:

  • part no - inter arrival time - arrival time at queue - queue no - arrival time at paint station - completion time
  • Avg length of queue, Avg wait times.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.