Question: I need help writing python code for the following program. The following are two examples for testing. Enter S for standard shipping, E for express:

I need help writing python code for the following program.

I need help writing python code for the following program. The followingThe following are two examples for testing. Enter S for standard shipping, E for express: S Enter weight (lbs): 12.5 Shipping charge: 10.625 Enter S for standard shipping, E for express: E Enter weight (lbs): 4.8 Shipping charge: 14.16

A shipping company allows customers to choose between standard or express delivery. Standard deliveries are charged the following rates: Weight 4 pounds or less Over 4 pounds but no more than 8 pounds Over 8 pounds but no more than 15 pounds Over 15 pounds Rate per pound $1.05 $0.95 $0.85 $0.80 Express deliveries are charged the following rates: Weight 2 pounds or less Over 2 pounds but no more than 5 pounds Over 5 pounds but no more than 10 pounds Over 10 pounds Rate per pound $3.25 $2.95 $2.75 $2.55 Write a program to do the following. Ask the customer to enter "S" for standard shipping or "E" for express shipping. Also ask the user to enter the weight of the package in pounds. Calculate and display shipping charge

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!