"A", "3.7" => "A-", "3.3" => "B+", "3" => "B", "2.7" => "B-", "2.3" => "C+", "2" => "C", "1.7" => "C-", "1.3" => "D+", "1" => "D", "0.7" => "D-", "0" => "F"); $gpa = ''; $units = ''; $submitted = false; //print_r($_POST); if (!empty($_POST)) { foreach($_POST as $k => $v) { $_POST[$k] = htmlentities(stripslashes($v), ENT_QUOTES,'utf-8'); } extract($_POST); $gpoints = $gpa * $units; $balance = $units * ($gpa - 2); //$balance2 = $gpa * $units - ($units * 2); //echo$balance; //echo$balance2; $projected_units = $units; $projected_total_gpoints = $gpoints; $projected_gpa = $gpa; $projected_balance = $balance; $submitted = true; } ?> GPA Calculator

GPA Calculator

To calculate your projected GPA by the end of the current semester, please enter your current GPA: and the number of units you have attempted for a letter grade not counting the current semester:

Please enter your current Fall (or Spring) Schedule along with projected grades for each class.

Grade Points"); } ?> "; // using letter grades from top of page foreach($l_grades as $pt => $lg) { $selected = ''; if((strlen($$pgrade_c) > 0)&&($pt == $$pgrade_c)) { $selected = ' selected '; } $grades_select .= ' '."\n"; } $grades_select .= ' '; $repeat_select = "'; echo(" "); echo(" "); echo(" "); echo(" "); echo(" "); if ($submitted) { if ($$ifrepeat_c == "yes") { // $l_whichrepeat = l_grade($$whichrepeat_c); // $l_pgrade = l_grade($$pgrade_c); $projected_gpoints = $$units_c * ($$pgrade_c - $$whichrepeat_c); $projected_total_gpoints = $projected_total_gpoints + $projected_gpoints; echo(" "); } else { $projected_units = $projected_units + $$units_c; // $l_pgrade = l_grade($$pgrade_c); $projected_gpoints = $$units_c * $$pgrade_c; $projected_total_gpoints = $projected_total_gpoints + $projected_gpoints; echo(" "); } echo(" "); }} ?>
Course Units Repeat? Previous Grade Projected Grade
Course $c$repeat_select$grades_select$projected_gpoints$projected_gpoints

Your Projected total GPA will be "); $projected_gpa = number_format(($projected_total_gpoints / $projected_units), 2, '.', ''); echo("$projected_gpa"); ?>.
You will have attempted $projected_units"); ?> units for a letter grade.
Your Projected total grade points will be $projected_total_gpoints"); ?>.
Your balance will be " . $projected_balance_format . ""; } echo("$projected_balance_format.
"); if (($projected_balance >= 0)&&($gpa <2)) { echo("You will have cleared probation. "); } else if (($projected_balance < 0)&&($gpa <2)) { echo("You will NOT have cleared probation. "); } else if (($projected_balance >= 0)&&($gpa >=2)) { echo("You will continue in good academic status. "); } else if (($projected_balance < 0)&&($gpa >=2)) { echo("Unless you improve your grades, you will become subject to probation! "); } echo("

"); } ?>

Find out how to e-mail us with academic advising questions.

Send comments about this site to ">ls-web@berkeley.edu

Copyright © | The Regents of the University of California | Updated: