Question: I am looking for a python program to solve the following problem. I need to write it without having to call functions but I am

I am looking for a python program to solve the following problem. I need to write it without having to call functions but I am having trouble.

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

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

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

I am looking for a python program to solve the following problem.

EXAMPLES FOR TESTIGN:

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!