= 0 AND $Array[$p] <= 12) {
$gradeq++;
$gradesum = $gradesum + $Array[$p];
} else {
if ($printer == 0) {
Print ("All values must be between 0 and 12.
\n");
$printer++;
}
}
}
}
if ($printer == 0) {
$gradeavg = $gradesum / $gradeq;
print ("Your average is: $gradeavg
\n Please use the chart below to match your grade.
\n");
print ("
A+ | A | A- | B+ | B | B- | C+ | C | C- | D+ | D | D- | E/F |
12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |