PROGRAMMING

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