Question: c language Global Courier Services will ship your package based on how much it weighs and how far you are sending the package. Packages above
c language

Global Courier Services will ship your package based on how much it weighs and how far you are sending the package. Packages above 50 pounds will not be shipped. You need to write a program in C that calculates the shipping charge. The shipping rates are based on per 500 miles shipped. They are not pro-rated, i.e., 600 miles is the same rate as 900 miles or 1000 miles. Here are the shipping charges - If the shipping distance is more than 1000 miles, there is an additional charge of $10 per package shipped. Here are some test cases. Weight: 55 pounds Miles: 345 miles Expected results: Sorry, we only ship packages of 50 pounds or less. You need to - Create one more non-trivial (non-zeros) test case. (4 points) - Write and debug the code that solves the problem. (75 points) - Take screen shots of running the program six different times. Use the five test cases given above and one more test case that you have created. (Total six test cases 12 points) - Include programmer name, date and brief problem description at the beginning of the code. (4 points) - Include meaningful comments wherever necessary. (5 points) Hints: This program does not need any loops. It will calculate one shipping charge and stop
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
