
I have this code for returning percentage of grades less than 60. But it doesn't result in the desired percent. Someone help me figure out what's wrong.
public float getPercentFailing(float[] grades) {
float sum= 0;
for (int i = 0; i < .6; i++) {
sum = sum + grades[i];
...