Last active
May 6, 2021 08:48
-
-
Save JoseFilipeFerreira/3046f04c3158890e867d0578b7b3999a to your computer and use it in GitHub Desktop.
grading schemes comparison in VI2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # There are two possible grading schemes(0-20): | |
| # * exam(0-20) + project(0-5) | |
| # * exam(0-20) * 0.5 + project(0-20) * 0.5 | |
| # This script tests all the possible combinations of grades printing information on the ones that lead to the student passing | |
| # | |
| # After analizing the output we get that the first is better if you get over 10 on the exam. | |
| # If you get less than 10 on the exam the second is better | |
| for exam in range(1,201,): | |
| for work in range(1,201): | |
| grade_50_50 = int(exam * 0.5 + work * 0.5) | |
| grade_majoracao = int(min(exam + ((work / 200) * 50), 200)) | |
| if (grade_50_50 > 95 or grade_majoracao > 95): | |
| print("exam:", exam, "work:", work, "50/50:", grade_50_50, "maj:", grade_majoracao, sep='\t') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment