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! Someone please help me with this matlab function please! Row array troopCookieSales

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!