Deliverable is to design an algorithm for a function that accepts an integer array as an argument and returns the total of values in the array. this is algorithm
- Accepts an integer array for an argument
- Display the Array
- Returns the total of values in the array.
// The First line in the program should be the function header
// What should be in the Function Header?
// enter the word Function followed by the DataType, Function Name, and (ParameterList)
Function(int array[ ], int size)
Integer total = 0
for i<-1 to size
sum<-sum+array[i]
return total
End function