Step: 1
An independent variable is one whose value does not depend on anything else (the input).
Step: 2
A dependent variable is one whose value directly results from another variable (the output).
Step: 3
Since the cost of shipping is a function of the weight of the package, the cost is dependent on the weight.
Step: 4
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