Question: In C or C++ please and also include the input file named grades.txt Grade Point Average Calculator Objective: Write a program that reads from a
Grade Point Average Calculator Objective: Write a program that reads from a file a list of course names, letter grades for each course and number of credits each course is worth. The program will read each course name, grade earned and number of credits from the file and print out the course name, grade earned and number of credits for each course to the screen. After the program has read in all of the courses, grades earned and credits, the program should calculate the grade point average based on all of the courses read in by the program. Notes: Students who receive an "F grade earn zero credits for the course but the grade is still used as part of the GPA calculation When displaying the GPA, only display up to two decimal points . Sample Input File:A data file named grades.txt will be attached as part of the assignment. It will contain sample course names, grades earned and number of credits attempted. Your program should read this file in as input. Make sure you put this file in the same directory as your project. Below is a sample of the input file Jane Doe Chemistry A4.0 Calculus B4.0 HistoryC3.0 Gym English A 3.0 A 1.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
