subject

LANGUAGE IS PYTHON!!! PLEASE HELP The Fast Freight Shipping Company charges the following rates:

Weight of Package

Rate per 500 miles Shipped

2 pounds or less

$1.10

Over 2 pounds but not more than 6 pounds

$2.20

Over 6 pounds but not more than 10 pounds

$3.70

Over 10 pounds

$3.80

The shipping charges per 500 miles are not prorated, which means that we don't divide the shipping charges in the above table by 500 to get the shipping charge per mile. For example, if a 2.5-pound package shipped 550 miles, the charges would be $4.40.

Design an algorithm and write a Python program to ask the user to enter the weight of the package, the number of miles shipped, then calculate and display the shipping charges.

Assignment Example:
Weight 1.7 pounds, miles 430 miles, total shipping charges: 1.10
Weight 1.7 pounds, miles 775 miles, total shipping charges: 2.20 ( 1.10 * 2). The key point here is how to get the 2 in the multiplication
Weight 1.7 pounds, miles 1234 miles, total shipping charges: 3.30 (1.10 * 3).
Weight 8 pounds, miles 6290 miles, total shipping charges: 3.70 * 13 = 48.10
Problem Analysis:
2 input: the weight, the miles (both could be decimal values)
Based on the weight, you can use a if-else if decision structure to check which shipping rate you use in the calculation (use the shipping rate in the table)
based on the miles the packages shipped, you calculate how many 500 miles the package is shipped. It determines the number times the shipping rate need to multiple. Sometimes you need to round it up to the next integer, sometime not. You need to figure out when the miles/500 should be rounded up to the next integer, and when it should not.
The program will display the total shipping charges for the package.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:00
In a file-oriented information system, a work file stores relatively permanent data about an entity is created and saved for backup and recovery purposes stores records that contain day-to-day business and operational data is a temporary file created by an information system for a single task
Answers: 1
question
Computers and Technology, 22.06.2019 11:20
The kurt vonnegut commencement speech, the neiman-marcus chocolate chip cookie recipe, and the get-well emails to the dying boy are examples of select one: a. social engineering b. hoax emails c. email viruses d. worms
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
Where can page numbers appear? check all that apply. in the header inside tables in the footer at the bottom of columns at the top of columns
Answers: 1
You know the right answer?
LANGUAGE IS PYTHON!!! PLEASE HELP The Fast Freight Shipping Company charges the following rates:
Questions
question
Mathematics, 31.01.2020 19:53
question
Biology, 31.01.2020 19:53
question
Mathematics, 31.01.2020 19:53
Questions on the website: 13722363