customer queue | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

customer queue

I need help generating the wait time using in a Queue, I just need an example how to create the wait time.. PLEASE

9th Dec 2016, 3:59 AM
Ivette
2 Respostas
+ 1
The simplest way to do that would be to write a function that returns the product of one less than the customer's position in the queue and the time taken to process one customer. The way you'd do this would depend on how complex of a program you're writing, but I hope this helps.
11th Dec 2016, 4:46 AM
Quinn Cypher
Quinn Cypher - avatar
0
@Quinn Cypher Thank you !
12th Dec 2016, 1:54 AM
Ivette