Question: using c++ You are given a table of a students letter grades and credit hours for each of the course student has taken so far.

using c++
using c++ You are given a table of a students letter grades

You are given a table of a students letter grades and credit hours for each of the course student has taken so far. Assume that these information are given in an input file called grades.txt with course no , grade and credit hours. You need to read the each of the information (course no, grade and credit hours) in three suitable variable for each course from the file, and then compute the total grade points and total credit hours. Grade points are calculated by multiplying the credit hours with number equivalent for each letter grade. A is 4, B is 3, C is 2, D is 1 and F is 0 Once the total grade points and total credit hours are calculated, then you can compute the gpa by dividing total grade points by total credit hours. Display the gpa by displaying one digit after the decimal. [Hints: In order to do this

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!