Question
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
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
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