Question: Using visual studio C++, you will solve a problem described in English. Create an IPO Create a test case Write and debug the code that

Using visual studio C++, you will solve a problem described in English.
Create an IPO
Create a test case
Write and debug the code that solves the problem.
Shipping Calculator: Speedy Shipping 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.
Big Helpful Hint: You can use integer division, for example: 1200 / 500 = 2

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!