Ask Question
8 October, 19:39

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.

+2
Answers (1)
  1. 8 October, 22:24
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers