average wait secs tasks remaining average wait secs tasks remaining average wait secs tasks remaining average wait secs tasks remaining average wait secs tasks remaining average wait secs tasks remaining average wait secs tasks remaining average wait secs tasks remaining after running our trials we can see that the mean average wait time is seconds you can also see that there is large variation in the average weight time with minimum average of seconds and maximum of seconds you may also notice that in only two of the cases were all the tasks completed nowwe will adjust the page rate to pages per minuteand run the trials againwith faster page rate our hope would be that more tasks would be completed in the one hour time frame for in range( )simulation( average wait secs tasks remaining average wait secs tasks remaining average wait secs tasks remaining average wait secs tasks remaining average wait secs tasks remaining average wait secs tasks remaining average wait secs tasks remaining average wait secs tasks remaining average wait secs tasks remaining average wait secs tasks remaining the code to run the simulation is as followsimport queue as previously defined import random completed program for the printer simulation class printerdef __init__(selfppm)self page_rate ppm self current_task none self time_remaining def tick(self)if self current_task !noneself time_remaining self time_remaining if self time_remaining < queues