Here's the final program: http://userpages.umbc.edu/~ofek1/gpa.html I couldn't have done it without your insight Fang! Let me know if you think it can be improved!