DEV Community 👩‍💻👨‍💻

Cover image for A GPA caculator
EzeanaMichael
EzeanaMichael

Posted on

A GPA caculator

I built a GPA calculator
A GPA means Grade Point Average which is used in Universities to calculate the results of students who have written an exam or particular test which would be calculated and graded.

Here's my code on GitHub
https://github.com/Just-Mike4/python-cgpa_caculator/blob/ea26bd128dd8df98af0e582ce2e53785bd2adde2/GPA_caculator.py

Steps

  1. I created dictionaries for courses, units, scores, and points.
  2. Then required input from the user for how many courses he/she is doing so it will ask the user to input(course, units, and scores) for calculation.
  3. Next, I created a points function to convert the values since it used the point system
  4. Then, I did the calculation for the GPA and printed the table and the GPA out.
  5. I ended with the remark function so the student or user will know where he or she stands.

Image description

Image description

Image description

Image description
An example of how the code works.

A project I embarked on after learning some data science with python, what do you think.

Top comments (0)

🌚 Friends don't let friends browse without dark mode.

Sorry, it's true.