this is what i said:MY.STUPID.UNI.ASSIGNMENT said:Write an algorith that reads integers stored into an array data[1...n] and returns the average value of the integers.
BEGIN ArrayAverage
DEFINE data[1…n]
SET count TO 1
WHILE count<= n
GET data[count]
SET count TO count + 1
ENDWHILE
SET sum TO data[count]
SET count TO count + 1
average = sum/n
Return Average
END ArrayAverageSET count TO count + 1
average = sum/n
Return Average
does mine do it? this is for 1% of my friggen grade but its drivin me nuts lol
Last edited: