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.

IN C++ Keep the program basic this is an introductory class. Please

do it fast I will give the like for sure. Exercise 2

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 (expression) to solve this problem. 1. Verify your program by computing the GPA of a student that has two A's and 2 B's; what is the grade of this student, A or B (A goes from 3.5 to 4 points)? When your program is correct, save the main.cpp file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!