I'm trying to make an if statement with a quotient.
totalGrades is a calculation of 5 numbers maxGrades is a calculation of the maximum grades of 5 classes ( maximum grades is always 39 )
I want to make a if statement that shows "Not enough points to graduate!" only if the totalGrades is below 5/6 of maxGrades
The quotient is not working and when I run it always prints Enough points to graduate even if totalGrades is below 5/6 of
if (totalGrades < 5 / 6)
meldingJaar = "Not enough points to graduate!";
else
meldingJaar = "Enough points to graduate!";
I tried this but this doesn't work
if (totalGrades % 82 <= maxGrades)