Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago