Question: 1. [5 points] Write a program to: a. Prompt the user for the number of courses; b. Prompt the user to enter the grade for

 1. [5 points] Write a program to: a. Prompt the user

1. [5 points] Write a program to: a. Prompt the user for the number of courses; b. Prompt the user to enter the grade for each course. User should be given the choice to enter either letter grades or grade points. Please see the table below for letter grades and corresponding grade points. c. Prompt the user to enter hours for each course. d. Using the functions described below, calculate grade point average (gpa). Use the following formula for calculating gpa: Gpa = ((gradePoints*hours))/(hours) In the formula above, gradePoints refers to grade points received in a course and hours refers to hours for that course. For example, for PROG1960, the hours would equal to 3 and grade points will depend on the grade received. For this program, use the following table to find grade points corresponding to a received grade: Grade A B D F Grade Points 4.0 3.0 2.0 1.0 0 Example: if you wanted to find gpa for two courses in which grades were 'A' and 'B' respectively and hours were 5 and 4 respectively, the gpa would be (4.0*5)+(3.0*4))/(5+4). The gpa should never exceed 4. Your program must use functions with the following prototypes: float Gpa(const char grades[], const int hours[], int arrLength); float Gpa(const float gradePoints[], const int hours[], int arrLength); float GradePoints(char grade)

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!