c grade point average calculator with functions specified
Write a C++ program that calculates Grade Point Average (GPA) for students with functions specified in the grading criteria. A grade of A is worth 4 points, B is worth 3 points, C is worth 2 points, D is worth 1 points and F is worth 0 points. Grades other than A, B, C, D, and F should not be calculated in GPA. The program should take as many student records as needed. When a grade is entered for a course, credit hours for that course should also be entered so that the GPA can be calculated correctly. For example, if a student has taken 3 courses and earned the following grades:
Course
Grade
Credit Hours
1
A
3.0
2
B
4.5
3
A
1.0
The student’s GPA should be calculated as
GPA = (4.0*3.0 + 3.0 * 4.5 + 4.0*1.0) / (3.0+4.5+1.0)
Don’t forget to perform data validation. Grades should be ‘A’, ‘B’, ‘C’, ‘D’, F’, ‘I’, ‘P’, or ‘W’ only and credit hours should be in the range of 0 to 6 only.
Grading criteria for this program:
0.5 point – follow Code Requirement posted in Handouts
6 point – create and use the following functions:
char takeGrade(); //prompt, take, validate and return a letter grade for a course
double convertGrade(char grade); //convert letter grade received from parameter list to grade point, A = 4.0, B = 3.0, C=2.0, D=1.0, F=1.0)
double takeCreditHours(); //prompt, take, validate and return the credit hours for a course
1.5 point – allow user to enter as many students and courses as needed
2 points – calculate GPA correctly
Do you need a similar assignment done for you from scratch? We have qualified writers to help you. We assure you an A+ quality paper that is free from plagiarism. Order now for an Amazing Discount!Use Discount Code “Newclient” for a 15% Discount!NB: We do not resell papers. Upon ordering, we do an original paper exclusively for you.