I am trying to calculate the sum of an array. This would be so I could show the total # of points someone has collected throughout the year.
If my array is
aintStudentgrade1(0) = 90
aintStudentgrade1(1) = 100
aintStudentgrade1(2) = 85
how do I represent that in a sumation?
For intCounter 0 to 2
sum(aintStudentgrade1(intCounter))
This isn't right but I hope you can get the idea of what I am thinking.
If my array is
aintStudentgrade1(0) = 90
aintStudentgrade1(1) = 100
aintStudentgrade1(2) = 85
how do I represent that in a sumation?
For intCounter 0 to 2
sum(aintStudentgrade1(intCounter))
This isn't right but I hope you can get the idea of what I am thinking.