Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Global Courier Services will ship your package based on how much it weighs and how far you are sending the package. (visual studio or dev

Global Courier Services will ship your package based
on how much it weighs and how far you are sending the package. (visual studio or dev c)
You need to write a design tool and a program in C that calculates
the shipping charge based on weight and distance and the total cost.
The shipping rates are as follows:
BASED ON WEIGHT
Charge 10 dollars for all package weighing 10 pounds or less
Charge an additional 2 dollars per pound for each pound
above 10 (make sure you charge the first 10 dollars)
For example if the weight is 2 pounds then the cost based on
weight is 10 dollars
For example if the weight is 55 pounds then the cost based
on weight is 10 for the first 10 pounds and 80 dollars for
the extra weight.
BASED ON DISTANCE
Charge 5 dollars for each 500 miles or part thereof.
For example if the distance is 1 foot then the cost based
on distance is 5 dollars.
For example if the distance is 1300 miles then the cost
based on distance is 15 dollars (3 500 segments) based on
per 500 miles shipped.

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

Students also viewed these Databases questions

Question

Can you see what limitations your purpose imposes on your strategy?

Answered: 1 week ago