Git Product home page Git Product logo

python-gpa-calculator's Introduction

Python GPA Calculator

I got tired of doing what-if final class grades effect calculations on GPA by hand, so I created wrote some Python to do it for me. This accounts for accumulation of credits in high school, transfer credits, and general semesters. BUT, the magic comes when you're trying to guestimate what your GPA will be if you absolutely cannot pull your life together and end up with a few rough final course grades. Although, I have found this tool to be rather reassuring - usually a B vs. an A won't make thaaat big of a difference :-).

Admittedly, this isn't the best use of Python, but I wrote it a while back when I was first learning the language and wanted to use something without as much overhead as Java.

How to use this

My system runs python3 and everything works correctly without a virtual environment. All you have to do is clone the repo, update the grades.txt file with your specific semester info and run python3 gpa.py. The program will write to a file called gpa.txt regardless of whether it exists or not. If you have transfer credits or high school credits that affect your GPA, you can just add another section in the grades.txt input file (see below for format).

Note: You might have to change the tables.py file depending on your school's grading system. It currently uses the 7-point scale common at many U.S. universities where an A or A+ is equivalent to a 4.0 GPA.

Here is a sample of the input file - grades.txt:

-2015F
0,P,Pass_NoPass
3,A,Too_Many_All_Nighters
3,B,Learned_ALot_But_ReallyHard
4,A+,Didnt_Even_Buy_The_Book

If you're still unsure how to format the grades.txt input file, look at the format when you clone the repo. You will find an example of what 2 semesters worth of classes look like as input as well as output in gpa.txt.


TODO

  • Incorporate some type of PDF parsing for transcripts to relieve need for csv input file... possibly using PyOCR?
  • Make available online

python-gpa-calculator's People

Contributors

jshiohaha avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

donvarweb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.