Ask Question
5 January, 07:26

A drink costs 5 dollars. A pizza costs 7 dollars. Given the number of each, compute total cost and assign to totalCost. Ex: 2 drinks and 3 pizzas yields totalCost of 31.

+1
Answers (1)
  1. 5 January, 09:33
    0
    The total cost of 2 drinks and 3 pizzas is 31 dollars.

    Explanation:

    Cost of a drink = 5 dollars

    Cost of 2 drinks = 2 * 5 dollars = 10 dollars

    Cost of a pizza = 7 dollars

    Cost of 3 pizzas = 3 * 7 dollars = 21 dollars

    Total cost of 2 drinks and 3 pizzas = 10 dollars + 21 dollars = 31 dollars
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “A drink costs 5 dollars. A pizza costs 7 dollars. Given the number of each, compute total cost and assign to totalCost. Ex: 2 drinks and 3 ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers