PROGRAMMING

profileZXC!@#

Modify the pizza.cpp (SEE ATTACHED) program in the following manner

Create a value-returning function that returns the cost of each size pizza

costSmall = getCost();

the function will get the cost from the user and return it

repeat for each size

Create a value-returning function that calculates the cost of all of the pizzas sold in each size

totCostSmall = calcCost(costSmall, numSmall);

repeat for each size

SAVE AS HOMEWORK4

  • 3 years ago
  • 25
Answer(1)

Purchase the answer to view it

blurred-text
  • attachment
    Solution.zip