From your understanding of arrays and functions, write a C++ program to calculate one’s GPA for a semester. The program should have the following features;
• The number of courses it can calculate the GPA on should be dynamic, that is, it should be able to calculate any number of courses entered by a user.
• The program should ask of the user’s name and programme. This should be used to print something like a semester report at the end of the calculation to the user.
• The program should ask of the individual course’s grade (e.g., A, B+…) and the grades should then be converted to its corresponding grade point for calculation.
• Write and use a function for the conversion in the above statement.
• The program should as well ask of the individual course’s credit hours as it will be used in the calculation.
• Make sure that the program requests the individual credit hours after each grade is enter. For instance, if grade for course 1 is entered, the next request should be credit hours for course 1.
• After your calculation, the program should display a semester report to the user that should include user’s name, programme of study, class for the semester (first, second upper, etc), the individual courses parallel to their respective grade, credit hours and credit points. (Hint: Similar to how your portal displays your result).
lundi 13 juillet 2020
GPA calculator in C++ [closed]
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire