
I know that the given distribution is a discrete uniform distribution to model the number of customers. How do I link this to the two possible events (given in the hint) to get the expected value of profit as a function of n, and how do I get this function when the profit function seems to be "split" into 2 cases?