Question: Define a class called student, and test the code. Note: each part is separately graded. even if you don't answer part of the question, you

 Define a class called student, and test the code. Note: each

Define a class called student, and test the code. Note: each part is separately graded. even if you don't answer part of the question, you can still assume the part is complete and implement the rest of questions. for example, you will receive credit for the implementation of the main function, even if you have not implemented the student class. Part 1. Your class has 3 data members: the number of courses numCourses. an integer pointer called_courses that will be used to create a dynamic array representing course id, an integer pointer called_gpa that will be used to create a dynamic array to represent the grades Part 2 a. a constructor with an integer parameter representing the number of courses, the constructor creates two dynamic arrays for course_id and num_credit and set them to zero. b. a function called init which reads course_id and letter grades from a file called gpa.txt to the appropriate arrays. Note: assuming a function convertLetterGrade2GradePoint converting a letter grade to its grade point (1-4) is given. an example of the file: gpa.txt Csc101 Csc111 Csc211 Csc215 Csc231 Csc331 Csc350 A B B A A B c. a function calculates the grade point average (GPA) d. a destructor to release memory. Part 3 Implement the main function to test the above class Create an array of 8 student objects, (assume the gpa files will be updated for each student) each one will be initialized by calling the init function. Print the GPA of all student Find the student with the highest GPA

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!