The program sums all entered percentages and divides the total by the number of subjects to compute the average.