Question: C++ Perferably using Eclipse a company will ship your package based on how much it weighs and how far you are sending the package. They

C++ Perferably using Eclipse

a company will ship your package based on how much it weighs and how far you are sending the package. They will only ship small packages up to 10 pounds. You need to have a program that will help you determine how much they will charge.

The charges are based on each 500 miles shipped. They are not pro-rated, i.e., 600 miles is the same charge as 900 miles, i.e., 600 miles is counted as 2 segments of 500 miles.

Here is the table they gave you:

Package Weight Rate per 500 miles shipped

2 pounds or less $1.50

More than 2 but not more than 6 $3.70

More than 6 but not more than 10 $5.25

Hints: This program does not need any loops. The program will calculate one shipping charge and stop. Your test cases should test the various possibilities, and the limits of the program.

Please demonstrate that the code works by using your own test examples. Show proof with screenshots of the output

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!