Afternoon guys, so I am having an issue with my calcGPA function. It is not returning any value other then 0, and im not really sure why. It is probably something I am overlooking, I could use a hint. Thanks
It's because your switch statement is never entered, therefore count is always equal to 0, therefore qualityPoint will be zero, therefore qualityPoint * creditHours will be 0.
The reason is your for-loop - for(int i=0; i>=classNum; i++)
Specifically the i >= classNum. Im sure you can see your mistake here.
Change it to - for(int i=0; i < classNum; i++)