# Implement a simulation program of a grocery store checkout counter as described

Implement a simulation program of a grocery store checkout counter as described in Book.

The program provides a simulation of the lines at a grocery store. The program is similar to the car wash simulation from the text but utilizes 5 queues instead of 1 to represent five cashiers with checkout lines. Customers enter the shortest line (queue) to check out.
If the lines are of equal size then the customer enters the first line. Transaction times (ringing up customers) are random (within the range of 10 to 600 seconds). When the program is finished running it prints out the number of customers served and the average wait time in seconds.

Input

The probability (use percentage scale from 1 to 100 where 100 means 1 customer per second) that a new customer arrives during any given second (we assume that, at most, one customer arrives in a second)

The total length of time to be simulated (in seconds)

Output

The number of customers serviced in the simulation. The average time that a customer spent in line

((((Question from Book:

Write a simulation program of the lines at a grocery store. The program will be similar to the car wash simulation, except that there are multiple queues instead of one. You might use a vector of queues to simulate the lines. Assume that there are five cashier lines at the grocery stone. Customers enter randomly to check out, and them enter the shortest line. If the lines are equal, then the first available line is chosen. Each transaction takes a random amount of time to complete.

For additional work, expand the grocery line program to allow shoppers to:

Avoid a line if all lines are a certain length Leave a line if they have waited beyond a certain timeCheck of another line is shorter at specified time intervalsSwitch lines if another line is shorter.))))))))I provided question from book and carwash simulations and help me to write a complete C++ codes.