Question: Collect Package Information: ( 5 points ) o Prompt the user to enter the weight of the package in pounds ( a positive float )

Collect Package Information: (5 points)
o Prompt the user to enter the weight of the package in pounds (a positive float).
o Prompt the user to enter the destination zone (an integer, 1,2, or 3, representing
different shipping zones). 2) Calculate Shipping Cost: (25 points) o Use multiple if, elif, and else statements to calculate the shipping cost based on the following rules: For Zone 1: $1.5 per pound.
For Zone 2: $2.0 per pound.
For Zone 3: $2.5 per pound.
Display an error message if the package weight is negative. Display an error message if the zone is not 1,2, or 3. 3) Display the Result: (5 points) o Print the calculated shipping cost in the format: "The shipping cost is $X.XX."

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!