Calculate term and cumulative GPA from weighted course credits, letter grades and optional prior credits.