Well, I think it would be better to calculate the average as a percent and then convert it to the letter grade, but you could do something like this:
F = 0
D- = 1
D = 2
D+ = 3
...
A = 11
A+ = 12
Then calculate the average, round to the nearest whole and convert to a letter grade. I don't know how accurate it would be though. The grading system might not have equal intervals, and it would count F 0% and F 59% as the same thing.