is the code really calculates average ?
i thought this should be rather:


average = (goodScores[0]+goodScores[1]+goodScores[2]+goodScores[3]+goodScores[4])/5;