All problems
Lead-Time Demand Mean
Problem
Compute the expected demand over a lead time: average demand per period times the lead time in periods.
Return 0.0 when the lead time is negative.
Hint
This is the deterministic part of the reorder point before safety stock.
Test cases
case 1
in: [10,4]
expected: 40
case 2
in: [0.5,6]
expected: 3
case 3
in: [-2,-3]
expected: 0
case 4
in: [7,0]
expected: 0
Starter codePython
def lead_time_demand_mean(avg_demand, lead_time):
# Your code here
pass4 test cases · run your code against them in the editor