Which of following code properly calculates the cost of 5 watermelons, which cost $8 each?

A. function calculate(cost, 5, *){

return cost * 5;

}

calculate(cost, 5);

B. function calculate(cost, 5){

return cost * 5;

}

calculate(5 * 8);

C. function calculate(cost){

return cost * 5;

}

calculate(cost);

D. function calculate(cost){

return cost * 5;

}

calculate(8);

the answer is either and i just don’t know. Can someone walk me through it ?

C

A & D

A, B & D

D

B & D