I feel like this is a stupid question, but what part of the while loop is allowing it to know to start a new group. Student, quize,exam, final. How does it go about starting with student again? In constant student is set to zero, but the second student is in the 7th index and not 0. Maybe I am just not understanding how that works. My second question is about running that through a subroutine. If I wanted to run the quizes through my quiz subrotuine would it be as simple as:
sub quiz { return (sum(@fields[FIRST_QUIZ..LAST_QUIZ])/ 300) * .10; }
Ultimately I am trying to find the final grades for each student.
In reply to Re^2: Weighted averages
by drose2211
in thread Weighted averages
by drose2211
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |