Description
A common problem I found at university was people's inability to calculate their final result, which drove the production of this script. This calculates your overall university grade based on the Standard University Grading criteria for both Master and Bachelor programs.
Code Editor
These are a few lists that will be used to store the input of the user and to enable the calculations throughout the script.
Masters and Bachelors degrees have different grading criteria and hence two different dictionaries have been made to accommodate for each of them. I decided to use a dictionary as it allows for you to assign multiple values to one key. In this case, my unique/base key would be the classification with their lower and upper boundaries that define them. These boundaries are stored as floats to one decimal place because in university, if you were to get 0.5 of a point you would have your grade rounded up.
Masters and Bachelors degrees have different grading criteria and hence two different dictionaries have been made to accommodate for each of them. I decided to use a dictionary as it allows for you to assign multiple values to one key. In this case, my unique/base key would be the classification with their lower and upper boundaries that define them. These boundaries are stored as floats to one decimal place because in university, if you were to get 0.5 of a point you would have your grade rounded up.
This section of the code is where the user identifies which of the two dictionaries will apply to them. They are prompted to enter either ‘msc’ or ‘bsc’ to do this. I have added in validations that only accept one of the two options as to ensure the script runs smoothly.
This is where the user begins to enter the result that they achieved. There is a part to ensure the user can terminate the process when they would like. I have also added in validations to ensure that the user inputs an integer.
This is where the user enters the corresponding credits that the module is valued at. This must also be an integer and has been fitted with a validation to ensure that it is.
This calculates the final grade. This is where the underlying issue lies with students that are not able to figure out what their final grade is. The final grade is calculated by taking the average of all the results relative to their weights in credits. This means that each grade is multiplied by the number of credits that it’s worth divided by the number of credits the grade is worth multiplied by a perfect score (100). Each of these calculated values represent how much that grade has contributed toward the overall grade.
Depending on whether the user is a master or a bachelor student, will depend on which part of the script runs. This is due to the differing grading criteria. Their final results are then displayed showing their final grade and percentage followed by a list of their results, classification and credits of each result the user entered.