This is a Python program built during my learning process to practice conditionals, user input, and basic arithmetic.
The program calculates the cheapest shipping method based on the weight of a package, using Sal’s Shippers pricing system.
- Asks the user to input the weight of the package (in pounds)
- Calculates the total cost using three shipping methods:
- Ground Shipping
- Ground Shipping Premium
- Drone Shipping
- Compares the costs and tells the user the cheapest option and its total price
| Weight Range | Rate per Pound | Flat Charge |
|---|---|---|
| 2 lb or less | $1.50 | $20.00 |
| Over 2 lb to 6 lb | $3.00 | $20.00 |
| Over 6 lb to 10 lb | $4.00 | $20.00 |
| Over 10 lb | $4.75 | $20.00 |
- Flat charge: $125.00
- No additional weight cost
| Weight Range | Rate per Pound | Flat Charge |
|---|---|---|
| 2 lb or less | $4.50 | $0.00 |
| Over 2 lb to 6 lb | $9.00 | $0.00 |
| Over 6 lb to 10 lb | $12.00 | $0.00 |
| Over 10 lb | $14.25 | $0.00 |
Completed
Part of my beginner Python training projects