Question: (In python 3.6 64-bit) class Qu: def __init__(self): self.items = [] def isEmpty(self): return self.items == [] def enqueue(self, item): self.items.insert(0, item) def dequeue(self): return
A DMV office has one clerk. You have been asked to write a program to simulate the DMV office as it checks out customers. YOU ARE REQURED TO USE THE QUEUE CREATED IN CLASS TO SOLVE THE PROBLEM. The queue program (qu.py) is located on the Instructor drive. Here are some guidelines: 1. A customer comes in the door every 1-5 minutes 2. The clerk can process one customer every 5 15 minutes (depends on what the customer has to do) and the number of customers left in the queue customers get to the checkout and how long the clerk will 3. The program should find the average wait time for customers 4. Use the random number generator to get values for when take. 5. You are not required to use classes, but it might make things easier
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
