yourPISD / yourpisd

Android app to access myPISD (Plano Independent School District grades portal)
MIT License
2 stars 4 forks source link

Fix GPA calculation and some UI #20

Closed theKidOfArcrania closed 8 years ago

theKidOfArcrania commented 8 years ago

Here I fixed a bug (before it was hard-coded to only calculate spring-semester gpas. Furthermore, it wrongly assumed that each semester class was worth 1 whole hour, so I changed it to .5 credits. Next, I also fixed cases where the imfamous NaN would occur if you had no spring semester grades. Finally, I decided to change the semester to an enum so that the semester values would be standard across (and I could stop using a boolean or an int to represent semester).