Q6Multiple correct5 Marks31 Aug 2025
Consider the procedure given below, where aList is a non-empty list of positive numbers.
```
Procedure cumulative(aList)
sum = 0, cumuList = []
foreach element in aList{
sum = sum + element
cumuList = [sum] ++ cumuList
}
return(cumuList)
End cumulative
```