You have questions through out the course that are worth 2 (if you get it perfect), 1 or 0 marks. The professor only takes into account the top 80% of questions, for example 2/2, 2/2, 1/2, 1/2, 0/2 and only 2/2, 2/2, 1/2 would count towards your grade. You are given the number of 2's, 1's, 0's and the total amount of questions ( total # will be divisible by 5). Is there a way to calculate your grade in that course without using if statements, inequalities and recursions (only math functions like subtract, add, multiple, divide, max, min). I've been stuck on this question for a while, if you can give me a hint on how to solve this, it would be greatly appreciated.
Is there a way to calculate the top 80% of marks without using if statements or inequalities?
linear algebra