Q1. Write a menu driven program for checkout lines in a supermarket, Using
Queue data structure and Queue Simulation concepts. Create varied lines of
servers depending on the user input initially. Display the queue of each
server along with the customers in the queue. You can simulate addition of
a customer in a queue using a special key press.
You can either randomly assign customer to a queue or determine a method by
which customers decide which queue to join. The servers are supposed to
take random amounts of time to process each customer (depending upon the
amount of groceries a customer may have). Once checked out a customer is
removed from the line.
For simplicity, simulate the passing of time by pressing another special
key.
Sir,i need only algorithm ,so that i can start..