Queues are often used to simulate the flow of people, cars,airplanes, transactions, and so on. Write a program that modelscheckout lines at a supermarket, using the Queue class. Severallines of customers should be displayed; you can write your owndisplay() method for this purpose. You can add a new customer bypressing a key. You’ll need to determine how the customer willdecide which line to join. The checkers will take random amounts oftime to process each customer (presumably depending on how manygroceries the customer has). Once checked out, the customer isremoved from the line. For simplicity, you can simulate the passingof time
OR
OR