The Fast Freight Shipping Company delivers packages based on…
The Fast Freight Shipping Company delivers packages based on the package weight. Write the selection statement necessary to calculate and determine the value of totalShippingCharges, when provided the weightKg of the package in kg (as a positive number) from the user. totalShippingCharges = weightKg * ratePerKg a. Get weightKg from the user. You can choose to do with or without a message. Assume the input is a positive double data type. b. Use these given variable names and the following rate table in your calculations. c. Output the value of totalShippingCharges. Format the output to 2 decimals places. Weight of package in kg Rate/cost per kg Less than 2.0 $1.50 2.0 (inclusive) to 7.0 $2.75 7.0 (inclusive) to 11.0 $4.25 11.0 (inclusive) to 20.0 $5.85 Over 20.0 (inclusive) Fixed flat fee of $125.00