Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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++
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions