Phase 1) GPA Problem Analysis Write a program to compute a GPA, based on course grades and credits. SAMPLE RUN: How many courses? 4 Enter letter grade and credits for each course, such as A- 3.0: 1) a 3 2) B- 4 3) c+ 3 4) B 4.5 GPA is 2.98 PROBLEM ANALYSIS: a => 4 * 3 = 12 points b- => 2.7 * 4 = 10.8 points c+ => 2.3 * 3 = 6.9 points b => 3 * 4.5 = 13.5 points ============================ 43.2 total points / 14.5 total credits 2) Design Solution (pseudocode) - prompt for # courses - read numCourses - prompt for grades and credits - set courseNum to 1 - repeat until courseNum > numCourses - display courseNum and ")" - read grade - read credits - add credits to totalCredits - convert grade to points (!! needs more detail) - add (points*credits) to totalPoints - add 1 to courseNum - display "GPA is" - display totalPoints / totalCredits Convert grade to points: if grade is A, points = 4 else if grade is B, points = 3 else if grade is C, points = 2 else if grade is D, points = 1 else points = 0 if there's a + and not A, add .3 if there's a - and not D, subtract .3 return points