Giter Site home page Giter Site logo

ggkevinxing / whatsmygpa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sergei1152/whatsmygpa

0.0 1.0 0.0 284 KB

A handy GPA calculator made using Javascript. Supports conversion for over 50 Canadian universities.

Home Page: http://www.whatsmygpa.ca

JavaScript 79.50% CSS 20.50%

whatsmygpa's Introduction

#WhatsMyGPA

######A universal GPA calculator supporting grade conversions for over 50 Canadian universities ######www.whatsmygpa.ca

##Features

  • Supports grade conversions for 54 Canadian universities
  • Has support for a large range of credit weights, including 0.25,0.5,0.75,1,3,6,9,and 12
  • Supports percentage input (eg. 84.56%), letter grade input (eg. A+) , and 12-Point grade input
  • Outputs a percentage, a GPA, a letter grade, a 12-Point and a 9-Point grade corresponding to your cumulative average
  • Supports multiple semester input

##How the Calculations Work The program handles the different GPA conversions used by many universities by incorporating the GPA conversion chart found here

To calculate the percent average, the following formula is used:

Percent Average = ∑ (grade * credit) / ∑ credit

*Where grade is the input, and credit is the corresponding credit weight*

This is only used to calculate the final percent average, which is not used towards calculating the GPA. Instead to calculate the GPA, each percentage/letter/12-Point grade is converted to its GPA equivalent using the data from the table found here. Then the formula shown above is used to calculate the cumulative GPA. A similar calculation is used towards calculating the 12 point and 9 point grades.

A letter grade is assigned based on the final cumulative GPA and the University (eg. an "A" in McGill corresponds to a "A+" for York).

##Some Problems I Faced The clear issue with making a universal GPA calculator is the inconsistencies in grading between different universities. There's a very useful GPA conversion chart that I used here, however the problem was figuring out a way to incorporate the chart (without using a huge mass of if/else statements). Arrays were the obvious solution, but figuring out a way to organize the array was another challenge. In the end I decided making two 2-D arrays. One array held all the GPAs and their possible combinations of percentage, letter, 12 point, and 9 point ranges. The other held a list of universities and the index of their corresponding percentage/letter ranges from the first array. Doing it this way allowed the list to be easily readable and modifiable.

Unfortunately, no GPA calculator is perfect (even though I tried really hard on this one). There's bound to be credit weights that some of universities have that aren't supported, so if you spot a credit weight that should exist, please email me and let me know.

whatsmygpa's People

Watchers

James Cloos 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.