Answer:
Option C is correct.
Explanation:
The general form for writing a function of x is f(x) where f depends on value of x.
Here, in the given options, Option C is correct as weight is a function for cost. The cost depends on the weight. The more the weight of the watermelon, the more its cost. So, C: cost(weight) is correct.
Options B and D are irrelevant and option A is also wrong as it signifies that weight depends on cost which is wrong.