Suppose there are people waiting in line for a ride. At $t=0$, the first person enters through the ride's ticket booth, and then people continue to enter at a rate of exactly one per minute (not random). However, the time that the ticket booth remains open is random with an exponential distribution with an average time of $10$ minutes. How many people are expected to enter before the ride closes?
My suspicion is that the desired expectation value is $11$ people. One person at $t=0$, then another for each minute. Since the average time open is $10$ minutes, then $10$ people (at times $> 0$) $+ 1$ person (at time $t=0$) $= 11$ people. However, I'm not sure if this is the right way to think about this problem. Does this being an exponential distribution complicate the problem?
Heuristic way: Your random variable is $Y=1+\lfloor X \rfloor$ where $X\sim \exp\left(\frac{1}{10}\right)$. Assuming that the fractional part of $X$ is $U(0,1)$, on average $Y$ is $1+X-\frac{1}{2}$. So the guess for the expected value is: $10\frac{1}{2}$.
Intro to probability way: Compute the pmf of $Y$, $$ P(Y=k+1)=P(k\le X <k+1)=...\ \ \ k\ge 0 $$ from which, you can easily get, the exact result: $\frac{1}{1-e^{-\frac{1}{10}}}\approx 10.508$. So the first guess was not so bad.