Yes, but if you look at his code...
He's reassigning average by dividing each individual grade by the counter. He should be summing the grades, then dividing that by the counter.Code:do{ i++; MyData >> hope.id >> hope.numgrade; hope.average = hope.numgrade/i;