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.

  1. Create a class Course that contains the following information: Course ID, grade, Course Credit and grade. You need to implement the following:
  1. Course(courseID, grade, credits)
  2. getCredits() to get the credit of the course
  3. getGrade() to get the grade of the course
  1. 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:
  1. Define a constructor initialize the student name.
  2. Add a course to a list of courses
  3. delete a course from a list.
  4. Update course grade for a given course id.
  5. Sort a list in ascending according to course Id.
  6. Display a list of courses taken by the student.
  7. Compute the accumulative GPA for all courses.
  8. Save Student name and all courses in an output file called grades.txt
  1. 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 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!