question archive Given an integer array and its size

Given an integer array and its size

Subject:Electrical EngineeringPrice: Bought3

Given an integer array and its size. find the sum of all the positive elements in the array. Note: an array of size n has n number of elements Suggested Algorithm (you can also program your own way): 1.Declare a variable sum and initialize it to zero. 2.Start with first element of the array. If it is greater than zero. add it to sum. 3.Repeat Step 2 until the end of the array is reach. 4.Retum sum in the function array.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE