All problems
Reorder Point
Problem
Compute the reorder point as average demand times lead time plus safety stock: avg_demand * lead_time + safety_stock.
Return the value as a number.
Hint
Expected lead-time demand plus a buffer against uncertainty.
Test cases
case 1
in: [10,5,20]
expected: 70
case 2
in: [0,3,5]
expected: 5
case 3
in: [4,0,0]
expected: 0
case 4
in: [2.5,4,1]
expected: 11
Starter codePython
def reorder_point(avg_demand, lead_time, safety_stock):
# Your code here
pass4 test cases · run your code against them in the editor