Mean and Standard Deviation


New member
Nov 8, 2004
Programming Experience
I'm in a beginner calss and I am working on a program that has has an array with 20 grades. I have to compute the mean and the standard deviation, and then assign a letter grade based on each exam score. I have no idea how to approach the mean or the standard deviation. I know in common terms, the mean is just the sum of all the grades / n (in this case 20). I dont know how to write that in code or even how to approach the standard deviation. Any help would be greately appreciated.

This is the array:

Dim grades() As Integer = {59, 60, 65, 75, 56, 90, 66, 62, 98, 72, 95, 71, 63, 77, 65, 77, 65, 50, 62}

Please help me. I am on AIM at soccerbum84 or just reply here. Thank you so much