Question: Programming Challenges 223 15. Shipping Charges The Fast Freight Shipping Company charges the following rates: Weight of Package (in Kilograms) Rate per 500 Miles Shipped
Programming Challenges 223 15. Shipping Charges The Fast Freight Shipping Company charges the following rates: Weight of Package (in Kilograms) Rate per 500 Miles Shipped $1.10 $2.20 S3.70 S4.80 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 but not more than 20 kg Write a program that asks for the weight of the package and the distance it is to be shipped, and then displays the charges. Input Validation: Do not accept valnes of 0 or less for the weight of the package. Do not accept weights of more than 20 kg (this is the maximuon weight the company will ship). Do not accept distances of less than 10 miles or more than 3,000 miles. These are the company's minimum and maximum shipping distances. 16. Running the Race
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
