15. Shipping Charges The Fast Freight Shipping Company charges the following rat
ID: 3756279 • Letter: 1
Question
15. 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 m Over 10 kg but not more than 20 kg Rate per 500 Miles Shipped $1.10 $2.20 $3.70 $4.80 ore than 10 kg Write a program that asks for the weight of the package and the distance it is to be shipped, then displays the charges. Input Validation: Do not accept values of 0 or less for the weight of the package. Do not accept weights of more than 20 kg (this is the maximum 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 distancesExplanation / Answer
Hi. please find the answer above.. In case of any doubts, please ask in comments. If the answer helps you, please upvote. I am in great need of upvotes. Thanks!
main.cpp E saved gcc version 4.6.3 Enter weight of shipment: 89 invalid Weight. Try again: 23 invalid Weight. Try again: Enter distance, shipment is to be shipped: 600 Charges: $9.6 12 while(weight 20) { cout weight; 13 14 15 16 17 cout
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.