Phyton

erakgun
CreateaPythonapplication.docx

Create a Python application, Delivery.py for a delivery service. The program should prompt the user for the

following inputs.

• A code representing the delivery area. A local delivery is code 1, and a long-distance delivery is code 2.

• A weight, in pounds of the item to be delivered.

The program will then display the fee for the item based on the delivery type and its weight. The fee for the

delivery, as follows:

Distance

Weight

Fee ($)

1

Under 5 pounds

$ 12.00

1

5 to 20 pounds

$ 16.50

1

Over 20 pounds

$ 22.00

2

Under 5 pounds

$ 35.00

3

pounds or more

$ 47.95