Grade Solver Using Functions and Pointers