Question: In this assignment, you are required to use C++ Standard Template Library data structures by developing a GPA Calculation application. The application should maintain and
In this assignment, you are required to use C++ Standard Template Library data structures by developing a GPA Calculation application. The application should maintain and store course grades as a list of courses for a student. The application should display a menu of operations that handles inserting, deleting, modifying, displaying course grades and computing the accumulative GPA.
- Create a class Course that contains the following information: Course ID, grade, Course Credit and grade. You need to implement the following:
- Course(courseID, grade, credits)
- getCredits() to get the credit of the course
- getGrade() to get the grade of the course
- Create a class Student that contains: student name and a list of courses. In the Student class you must have at least the following methods to perform the following operations:
- Define a constructor initialize the student name.
- Add a course to a list of courses
- delete a course from a list.
- Update course grade for a given course id.
- Sort a list in ascending according to course Id.
- Display a list of courses taken by the student.
- Compute the accumulative GPA for all courses.
- Save Student name and all courses in an output file called grades.txt
- The main() function in your C++ program must be as follows:
int main(int argc, char** argv) {
Student *s = new Student();
s->menu();
delete s;
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
