//DEBUG-3 //This program creates student objects //and overloads > to compare student gpas #include<iostream> #include<conio.h> class Student { private: int stuID; int year; double gpa; public: Student(const int i, const int y, const double g); int operator>(const Student otherStu); }; Student::Student() { stuID=i; year = y; gpa = g; } int operator>(const Student otherStu) { int great; if (gpa > otherStu) great = 1; return(great); } void main() { Student a(111,2,3.50),b(222,1,3.00); if(a>b) cout<<"Student a has the higher gpa"<<endl; getch(); } ______________________________ //DEBUG-4 //This program creates student objects //and overloads < to compare student year in school #include<iostream> #include<conio.h> class Student { private: int stuID; int year; double gpa; public: Student(const int i, const int y, const double g); void showYear(); Student& <(const Student otherStu); }; Student::Student(const int i, const int y, const double g) { stuID=i; year = y; gpa = g; } void Student::showYear() { cout<<year; } Student Student::operator<(const Student otherStu) { int less = 1; if (year < otherStu.year) less = 1; return(otherStu); } void main() { Student a(111,2,3.50),b(222,1,3.00); if(a<b) { a.showYear(); cout<<" is less than "; b.showYear(); } else { a.showYear(); cout<<" is not less than "; b.showYear(); } cout<<endl; getch(); } using C++.