An independent variable is one whose value does not depend on anything else (the input).
A dependent variable is one whose value directly results from another variable (the output).
Since the cost of shipping is a function of the weight of the package, the cost is dependent on the weight.
Therefore, the cost of shipping the package is the dependent variable, and the weight of the package is the independent variable.
Correct Answer is : cost of shipping the package