Skip to content

A script for calculating the averages of one's grades, given a PDF file.

Notifications You must be signed in to change notification settings

simonskodt/avg-grade-calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grade Calculator

This repository contains a script that allows you to calculate the average of your grades from university, based on the Danish grading scale. By providing a PDF file with the respective grades, the script will process the data and provide you with the average grade.

Usage

To use the script, follow these steps:

  1. Update the before_grades and after_grades variables in the parse.pdf.py file. Set them to the words that appear before and after the actual grades in your PDF file. This will help the script locate the grades correctly.

  2. Run the script by executing the following command in the terminal or command prompt, replacing .pdf with the name of your PDF file:

    python .\__main__.py <filename>.pdf

    Note that you don't need to provide the full path to the PDF file since the script handles that internally.

  3. The script will process the PDF file and calculate the grade average. The result will be printed to the console in the following format:

    Grade average: <average of grades>

I hope you find this script useful for calculating your grade average.

About

A script for calculating the averages of one's grades, given a PDF file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages