Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribedThe 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions