Grade Point Average Calculator

High School Edition


Your Grade Point Average is !

=3.5) { echo "

Congratulations! You've achieved the Honor Roll!

"; } ?>

GPAC
Copyright © GPAC Development Team

Grade Point Average Calculator

Grade Point Average Calculator

()

GPAC is a convenient grade point average calculator, based on a typical high school system.

Licensed under the GNU General Public License

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

View full text of license

This script is open source. The source code of the Grade Point Average Calculator is available
for download from the project homepage.

GPAC markup has been coded to be valid XHTML 1.0 Transitional.
The document's CSS also passes validation.

SourceForge.net Logo  |  GNU General Public License  |  Valid XHTML 1.0 Transitional  |  Valid CSS!  |  Open Source  |  View source code

Copyright © GPAC Development Team

"; } else { echo ""; } ?>

Grade Point Average Calculator

High School Edition

$tc) { //means all steps have been completed $gpa = $points / $credits; echo "

Your Grade Point Average is $gpa!

"; if ($gpa>=3.5) { echo "

Congratulations! You've achieved the Honor Roll!

"; } $old = $HTTP_COOKIE_VARS["gpa"]; if (isset($old)) { //show change if gpa has been previously saved $diff = abs($gpa - $old); if ($gpa>$old) { echo "

Good job! This score is an improvement of $diff points compared to your older GPA.

"; } if ($gpa<$old) { echo "

Your previous GPA was better by $diff points.

"; } } echo "

"; } else { //steps 2 through last echo "

Step $cc/$tc:

"; ?>
Grade:
Number of Credits:

Normal Course
Honors Course
Advanced Placement Course
International Baccalaureate Course

"; } //end of steps 2-last } else { if ($_POST['save']) { //if saved, a page similar to results page is displayed $gpa = $_POST['gpa']; echo "

Your Grade Point Average is $gpa!

"; if ($gpa>=3.5) { echo "

Congratulations! You've achieved the Honor Roll!

"; } echo "

"; } else { //if on step 1 ?>

Step 1:

How many courses do you want to include in calculating your GPA?

 Course(s)*

*A typical schedule allows for seven courses at a certain time, excluding any blocked classes and study halls.


SourceForge.net Logo  |  Open Source  |  Project Homepage

GPAC