Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started