13.3 Programming 3: Multi-Way Branching
Shipping Charges
The Fast Freight Shipping Company charges the followingrates:
-
Given the Weight of Package (in Kilograms), use the followingRate ($) per 500 Miles Shipped.
-
2 kg or less = $1.10 per 500 Miles Shipped
-
Over 2 kg but not more than 6 kg = $2.20 per 500 MilesShipped
-
Over 6 kg but not more than 10 kg = $3.70 per 500 MilesShipped
-
Over 10 kg but not more than 20 kg = $4.80 per 500 MilesShipped
Write a program that reads the weight of the package and thedistance it is to be shipped, and then displays the charges to twodecimal points.
- Input Validation:
- Do
OR
PayPal Gateway not configured
ORPayPal Gateway not configured