In this problem, prompt a student for grades and credits for courses taken. From that, you will calculate a GPA.
This site: back2college shows you how to calculate a GPA.
Keep prompting the student if they want to add more courses.
IMPORTANT NOTES!
- The course name is prompted for, but nothing is done with it.
- We are just using the grades A, B, C, D, and F so you won't have to do so much typing!
- You will need to use the "set precision" command as shown in the book. Set it to "fixed" and "2".
- You will need to use the "cin.ignore()" function as discussed earlier in the course.