We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I would suggest trying to consolidate those if/else blocks a bit. Using the modulus you can simplify rounding quite a bit. After reading in the grade I used a helper method as follows
Grading Students
You are viewing a single comment's thread. Return to all comments →
I would suggest trying to consolidate those if/else blocks a bit. Using the modulus you can simplify rounding quite a bit. After reading in the grade I used a helper method as follows
It's not the cleanest, but hopefully that's pretty legible