Question: 1 function totalCost = CartTotal ( item 1 Cost, item 1 Discount, item 2 Cost, item 2 Discount ) % Assign totalcost with the discounted
function totalCost CartTotalitemCost, itemDiscount, itemCost, itemDiscount
Assign totalcost with the discounted cost of items and totalcost
end
Code to call your function
CartTotal
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
