Question: Someone please help me with this matlab function please! Row array troopCookieSales contains the number of boxes of cookies sold by each troop member. Assign
Someone please help me with this matlab function please! 
Row array troopCookieSales contains the number of boxes of cookies sold by each troop member. Assign totalSales with the sum of all elements in troopCookieSales. Ex: If troopCookieSales = [40, 52, 12, 88, 65, 18, 15, 72], then totalSales is 362. function totalSales = CountSales(troopCookieSales) % troopCookieSales: Boxes of cookies sold % Assign totalSales with the sum of all elements in troopCookieSales totalSales = 0; Code to call your function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
