Question: IN C++ Keep the program basic this is an introductory class. Please do it fast I will give the like for sure. Exercise 2 -
IN C++
Keep the program basic this is an introductory class.
Please do it fast I will give the like for sure.


Exercise 2 - Write a Program to obtain a Student's Grade Point Average (GPA) Suppose that all courses in Yauco's University are 3 credits each and have the following point values: A= 4 points per credit; B = 3 points per credit; C = 2 points per credit; D= 1 point per credit and F= 0 points per credit. Instructions 1. Start a new "Non-Qt" project called "Average". Your main() function will have the necessary code to ask the user for the number of A's, B's, C's, D's and F's obtained and compute the grade point average (GPA). 2. Your code should define the constants A = 4, B = 3, C = 2, D=1, F=0 for the points per credit, and ask the user to input the values for the variables Num A, NumB, NumC, NumD, NumF. The variable NumA represents the number of courses in which the student obtained A, NumB represents the number of courses in which the student obtained B, etc. The program should display the GPA using the 0-4 point scale. Hints: i. You can obtain the GPA by adding the credit points corresponding to the grades (for example, an A in a 3 credit course has a value of 12 points), and dividing this sum by the total number of credits. ii. Remember that, in C++, when both operands in the division are integers, the result will also be an integer; the remainder will be discarded. Use "type casting": static_cast
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
