Question: In basic C++, write a function to answer this question. 6. Shipping Charges The Fast Freight Shipping Company charges the following rates: Weight of Package

In basic C++, write a function to answer this question.

In basic C++, write a function to answer this question. 6. Shipping

6. Shipping Charges The Fast Freight Shipping Company charges the following rates: Weight of Package (in kilograms) 2 kg or less Over 2 kg but not more than 6 kg Over 6 kg but not more than 10 kg over 10 kg Rate per 500 Miles Shipped $3.10 $4.20 $5.30 $6.40 Write a program that asks for the weight of a package and the distance it is to be shipped. This information should be passed to a calculateCharge function that computes and returns the shipping charge to be displayed. The main function should loop to handle multiple packages until a weight of 0 is entered

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!