JavaScript Script for Automatic GPA Calculation
Machine-translated from Chinese. · Read original
哈哈哈哈哈哈哈
After a long period of being busy, I’ve finally completed my beloved JavaScript script for automatically calculating GPA, which can now be used to calculate China Agricultural University’s GPA scores :)
Currently, it’s only a test version.
It does not support calculating:
- Scores that include failures… So when you calculate, you must ensure that you’ve passed all make-up exams, otherwise, you won’t be able to get your actual GPA.
- Scores that contain evaluations of “中等” or lower — because my worst score was “良好”, and I just found out that there’s another level called “中等”… but I don’t know what’s below that. If anyone knows or has gotten an even worse score, um… can you lend me your password to use? That would be a great help.
Additionally, it cannot customize GPA point calculations, 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 it seems not quite right… I’ll slowly improve it. Anyway, the deviation won’t exceed 0.5.
Hmm, due to these many defects, it can only be considered an alpha version. Originally, I didn’t want to release it, but… I’ll just post it for now. I’ll slowly refine it~
Hmm, below I’ll explain how to use it, although it’s a bit complicated… but I think it should be faster than calculating by hand.
- Log in to the score inquiry system
- Enter the score inquiry page
- Right-click in the area shown in the diagram and select “View Source”, which will pop up a notepad window with the webpage’s source code.
- Click “File” -> “Save As…” and save it to any location.
- OK, we’re almost there! Now open http://www.darlingtree.com/gpa
- Upload the score file you saved earlier
- Click “Calculate” and your GPA score will appear!


还没有人留言,在下面说两句吧。