Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions

Question

How to implement bio inspired algorithms with kmeans in Python?

Answered: 1 week ago