The Fast Freight Shipping Company delivers packages based on…
The Fast Freight Shipping Company delivers packages based on the package weight. Write a program which prompts the user to enter the weightKgs, then determines the totalShippingCharges as determined from the table below. Make sure that the number of kilograms is a positive number by validating the user input. Display the total shipping charge with a dollar sign, and two decimal places of precision. Use these given variable names and the following rate table in your calculations: Weight of package in kg Rate/cost per kg Less than 2.0 $1.50 2.0 to 6.99 $2.75 7.0 to 10.99 $4.25 11.0 to 20.0 $5.85 Over 20.0 Flat fee of $125.00 Sample Runs Input: 0 Output: Please enter a positive number. Input: 1.5 Output: Total shipping charges: $2.25 Input: 15 Output: Total shipping charges: $87.75 Input: 25 Output: Total shipping charges: $125.00 Rubric Program Compilation (10pts) Input Validation (10pts) Rate Calculation (20pts) Output Formatting (10pts)