Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I added a few neat thingsif you want to check out <new #127

Open
jwalden12b opened this issue Dec 10, 2023 · 0 comments
Open

I added a few neat thingsif you want to check out <new #127

jwalden12b opened this issue Dec 10, 2023 · 0 comments

Comments

@jwalden12b
Copy link

#-----Random----Weight---Generator-------------------------------#

import random
random_number = random.randint(1, 100)
weight = random_number
print("Weight:", weight, "lbs")

Ground Shipping

if weight <= 2:
cost_ground = round(weight * 1.5) + 20
elif weight <= 6:
cost_ground = weight * 3.00 + 20
elif weight <= 10:
cost_ground = weight * 4.00 + 20
else:
cost_ground = round(weight * 4.75) + 20

print("Ground Shipping $", cost_ground)

Ground Shipping Premimum

cost_ground_premium = 125

print("Ground Shipping Premimium $", cost_ground_premium)

Drone Shipping

if weight <= 2:
cost_drone = round(weight * 4.5)
elif weight <= 6:
cost_drone = weight * 9.00
elif weight <= 10:
cost_drone = weight * 12.00
else:
cost_drone = round(weight * 14.25)

print("Drone Shipping: $", cost_drone)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant