Journal

JavaScript Script for Automatic GPA Calculation

2009·01·30

Machine-translated from Chinese.  ·  Read original

哈哈哈哈哈哈哈

After being busy for a long time, I finally finished writing my lovely JavaScript script to automatically calculate GPA, and now you can use it to calculate your GPA score at China Agricultural University :)

Currently, it’s just a test version.

It does not support calculating:

  1. Scores that include failing grades… So when you calculate, make sure you’ve passed all your make-up exams, or you won’t be able to get your true GPA.
  2. Scores that contain evaluations of “中等” or below — because my worst score was “良好”, and I just found out that there’s a “中等” below that… but I don’t know what’s below that. If anyone knows or has gotten a worse score, can you lend me your password to use? That would be a big help.

Additionally, it can’t customize the GPA point calculation, and the conversion rates are hardcoded in the program using the classic Peking University algorithm:

90=4.0,85=3.7,82=3.3,78=3.0,75=2.7,72=2.3,69=2.0,66=1.7,63=1.3,60=1.0.

Also, “优秀” is treated as 90 points, “良好” as 85 points, and “中等” as 75 points, but that might not be entirely accurate… I’ll slowly improve it. Anyway, the deviation won’t be more than 0.5.

Since it has so many flaws, at best it can only be considered an alpha version. I didn’t want to release it, but… I’ll just put it up for now and slowly improve it.

Next, I’ll explain how to use it, although it’s a bit complicated… but I think it’s still faster than calculating by hand.

  1. Log in to the score inquiry system
  2. Go to the page where you can check your scores
  3. Right-click in the area shown in the image and select “View Source”, which will open a Notepad window with the webpage’s source code.

e69caae591bde5908d

  1. Click “File” -> “Save As…” and save it to any location

e69caae591bde5908d2

  1. OK, you’re almost there! Now open http://www.darlingtree.com/gpa
  2. Upload the score file you saved earlier
  3. Click “Calculate”, and your GPA score will be displayed!
留 · 言