c grade point average calculator with functions specified

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.

"96% of our customers have reported a 90% and above score. You might want to place an order with us."

Essay Writing Service
Affordable prices

You might be focused on looking for a cheap essay writing service instead of searching for the perfect combination of quality and affordable rates. You need to be aware that a cheap essay does not mean a good essay, as qualified authors estimate their knowledge realistically. At the same time, it is all about balance. We are proud to offer rates among the best on the market and believe every student must have access to effective writing assistance for a cost that he or she finds affordable.

Caring support 24/7

If you need a cheap paper writing service, note that we combine affordable rates with excellent customer support. Our experienced support managers professionally resolve issues that might appear during your collaboration with our service. Apply to them with questions about orders, rates, payments, and more. Contact our managers via our website or email.

Non-plagiarized papers

“Please, write my paper, making it 100% unique.” We understand how vital it is for students to be sure their paper is original and written from scratch. To us, the reputation of a reliable service that offers non-plagiarized texts is vital. We stop collaborating with authors who get caught in plagiarism to avoid confusion. Besides, our customers’ satisfaction rate says it all.

© 2022 Homeworkcrew.com provides writing and research services for limited use only. All the materials from our website should be used with proper references and in accordance with Terms & Conditions.

Scroll to Top