Inputting arrays to find the average

Trying to learn how to do arrays but our teacher is away and theres no way any of us can figure this out. I have a pseudocode of how it should be written and thats all.

Code:

`Pseudocode `

TeamHeight

Set totalHeight to zero

Set arrayElements to 11

DOWHILE index = 0 to arrayElements

Prompt user for height

Get height(index)

totalHeight = totalHeight + height(index)

display height(index)

ENDDO

Compute averageHeight = totalHeight/arrayElements

Display averageHeight

END

Any help would be appreciated.