Ask 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 pizzas yields totalCost of 31.

+2
Answers (1)
  1. 23 July, 14:06
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers