Does anyone know how one would be able to have a program show the movement through a line shuch as in a supermarket line. while going through the progam it would need an input from the user giving the % chance of a person adding to the line. It would also need to count how many cycles the program went through before some one was removed from the line. if the line reaches a specific amount of people then there should be another line opened.
i understand that you need to use a queue inorder to do this task or it would be the best way but i dont know ho to do it so could someone help me in the writing of this code?