Fill in the following table by walking through the logic above. The idea is to analyze how the chart and pseudocode was created, because you will be doing this in a few minutes, so do not just jump to the easy answer. Follow the steps as if you are the computer executing the software designed.
Problem lineItemPrice lineItemQuantity saleTaxRate Return amount
1 [5.50, 3.00, 2.25] [12, 3, 10] 5%
2 [5.50] [5] 5%
3 [] [] 5%
Calculate Profits
Description
Given the list of all the product prices and wholesale prices as well as a list of all the items sold for each product calculate the net profit for all the products.
Flowchart
Pseudocode
function totalProfits (allProductSalesNumbers: Array,
allProductPrices : Array,
allProductWholesalePrices : Array)
returns double
end function