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. You need to write

Global Courier Services will ship your package based
on how much it weighs and how far you are sending the package.
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.

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

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

socialist egalitarianism which resulted in wage levelling;

Answered: 1 week ago

Question

soyuznye (all-Union, controlling enterprises directly from Moscow);

Answered: 1 week ago