-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshipping.py
More file actions
35 lines (29 loc) · 698 Bytes
/
shipping.py
File metadata and controls
35 lines (29 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# PROJECT: SAL'S SHIPPING
weight = 41.5
# Ground Shipping
if weight <= 2:
cost_ground = weight * 1.5 + 20
elif weight <= 6:
cost_ground = weight * 3 + 20
elif weight <= 10:
cost_ground = weight * 4 + 20
elif weight > 10:
cost_ground = weight * 4.75 + 20
else:
print("Error")
print("Ground Shipping $", cost_ground)
# Premium Ground Shipping
cost_premium_ground = 125
print("Premium Ground Shipping $", cost_premium_ground)
# Drone Shipping
if weight <= 2:
cost_drone = weight * 4.5
elif weight <= 6:
cost_drone = weight * 9
elif weight <= 10:
cost_drone = weight * 12
elif weight > 10:
cost_drone = weight * 14.25
else:
print("Error")
print("Drone Shipping $", cost_drone)