"A drink costs 2 dollars. A taco costs 3 dollars. Given the number of each, compute total cost and assign totalCost with the result. Ex: 4 drinks and 6 tacos yields totalCost of 26."

Respuesta :

lucic

Total cost is $26

Explanation:

Given that the cost of a drink is $2 and that of a taco is $3

To find the total cost given 4 drinks and 6 tacos will be;

Multiply the quantity given by the unit price for the items given;

4*$2 + 6*$3 = $8+$18=$26

Learn More

Multiplication;https://brainly.com/question/12863773

Keywords : drink, cost, total,tacos

#LearnwithBrainly

Answer:

totalCost = (2 * numDrinks) + (3 * numTacos);

Explanation:

Screenshot attached.

Ver imagen BellaPrincess