Josh Mudge
5 years ago
2 changed files with 27 additions and 5 deletions
@ -0,0 +1,17 @@ |
|||
def ground_shipping(weight): |
|||
flat = 20.00 |
|||
|
|||
if weight <= 2: |
|||
cost = flat + 1.50 * weight |
|||
if (weight > 2) and (weight <= 6): |
|||
cost = flat + weight * 3.00 |
|||
if (weight > 6) and (weight <= 10): |
|||
cost = flat + weight * 4.00 |
|||
if (weight > 10): |
|||
cost = flat + weight * 4.75 |
|||
|
|||
return cost |
|||
|
|||
premium_ground_shipping = 125.00 |
|||
|
|||
print(premium_ground_shipping(8.4)) |
Loading…
Reference in new issue