Git Product home page Git Product logo

gpa-calculator's Introduction

gpa-calculator

Quick & dirty GPA calculator. Saves data into a local sqlite database. Gives pretty table output.

Use case scenario

You want to calculate your semester GPA. Shit's messed up because some of your professors didn't enter your grades on time (therefore they're not appearing on your transcript). You know your grades and want to make a quick calculation. You also want to add new grades as they're announced. Then gpa-calculator's got you covered.

Input Sequence

$ python3 ./gpa-calculator.py
No grades database found...

Press any key to intialize the database and start adding grades.

Database initialized.

Created 'grades' table on 'grades.db' database.

Class Name: MATH 101
Semester Hours: 4
Letter Grade: B+

Add another line? (Y/n) 

Class Name: PHYS 101
Semester Hours: 4
Letter Grade: A-

Add another line? (Y/n) 

Class Name: TECH 101
Semester Hours: 4
Letter Grade: A

Add another line? (Y/n) 

Class Name: POLS 101
Semester Hours: 3
Letter Grade: D

Add another line? (Y/n) n

Output

+------------+--------+-------+
| Class Name | Credit | Grade |
+------------+--------+-------+
|  MATH 101  |   4    |   B+  |
+------------+--------+-------+
|  PHYS 101  |   4    |   A-  |
+------------+--------+-------+
|  TECH 101  |   4    |   A   |
+------------+--------+-------+
|  POLS 101  |   3    |   D   |
+------------+--------+-------+
+----------------+--------------+----------------+
| Quality Points | Total Credit | Cumulative GPA |
+----------------+--------------+----------------+
|      47.0      |      15      |      3.14      |
+----------------+--------------+----------------+

Useless Trivia

โ„น๏ธ gpa-calculator was written by krmbzds at a barbershop while his little brother was getting a haircut (he was bored).

gpa-calculator's People

Contributors

krmbzds avatar

Watchers

 avatar  avatar  avatar

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.