The cost of a watermelon depends on its weight which of the following shows this idea expressed in function notation



A: weight(cost)

B: cost(watermelon)

C: cost(weight)

D: weight (watermelon)