QuestionQuestion

Program description
Write a program that allows the user to calculate shipping charges. Shipping rates are as follows:

Weight of the package                                            Rate per pound
3 pounds or less                                                             $ 1.75
Over 3 pounds but not more than 9 pounds                    $ 3.50
Over 9 pounds but not more than 14 pounds                    $ 4.25
Over 14 pounds but not more than 19 pounds             $ 4.75

Write a program that asks user to enter the following weight values of the package and then calculates shipping charges to fill the following table.

Input values             Shipping charges
2 pounds
4 pounds
8 pounds
11 pounds
17 pounds

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

rate_3 = 1.75
rate_3_9 = 3.50
rate_9_14 = 4.25
rate_14_19 = 4.75

pounds = float(input("What is the weight for your package? "))

if pounds <= 3.0:
    shipping = pounds * rate_3...

By purchasing this solution you'll be able to access the following files:
Solution.docx and Solution.py.

$28.00
for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Python Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats