Question: using switch statements only The Fast Freight Shipping Company charges the following rate: Weight of Package Shipping Rate Per 500 miles 2 pounds or less

using switch statements only

The Fast Freight Shipping Company charges the following rate:

Weight of Package Shipping Rate Per 500 miles
2 pounds or less $1.10
Over 2 pound but no more than 6 pounds $2.20
Over 6 pound but no more than 10 pounds $3.70
Over 10 Pounds $4.80

The shipping rate per 500 miles are not prorated. For example, if a 2-pound package is shipped 550 miles, the shipping charges will be $2.20. If a 6.5-pound package is shipped 1150 miles, the shipping charges will be $11.10. Write a program that asks for user to enter the weight of a package, and the number of miles shipped. The program will then calculate and display the shipping charges for the package.

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!