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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started