Skip to content

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

Description

@jwalden12b

#-----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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions