Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
ENSC 251 Assignment
In the ENSC 251 course, you will work on a multi-lab project: you will design and implement a simplified graduate student admission system using the skills learned throughout this course (Object-Oriented Programming with C++). This will include four incremental labs in total, each weighing 10% of the final mark. Each student will work on the lab assignments individually and will be evaluated individually.
More description of the simplified graduate admission system was given in lab assignment 1. In assignment 1, you have built the four classes that you will use throughout the four lab assignments. Now we are moving to lab assignment 2, which will be based on lab assignment 1. For those students who didn’t do well in assignment 1, the TAs will post the code of assignment 1 from those top students who got bonus points, and you are free to use their assignment 1 code as basis for your assignment 2.
Lab Assignment 2:
Assume there are a number of domestic and international student applicants who are applying to SFU graduate school, and their profile is stored in domestic-stu.txt and international-stu.txt, which you are already able to read in assignment 1. In lab assignment 2, assume we have a fixed number of domestic and international applicants which we know beforehand, and both numbers don’t exceed 100 (i.e., no more than 100 domestic student applicants, and no more than 100 international student applicants). You will have to achieve the following goals:
1. Use arrays or vectors to store all the DomesticStudent and InternationalStudent objects, which are read and initialized from the input files.
2. Implement the following friend functions for Student class—compareCGPA, compareResearchScore, compareFirstName, compareLastName—so that you can compare the CGPA, research score, first name, last name of two DomesticStudent objects (and two InternationalStudent objects). Each of these functions should return three kinds of values: less than, equal to, or greater than. For lab assignment 2, we don’t compare a DomesticStudent object against an InternationalStudent object.
3. Overload the << operator of DomesticStudent and InternationalStudent classes to print out the object information.