reate an overloaded > (greater than) operator in the Student class. The operator will compare the age of two student objects and return the object with the greater age. In main.cpp create a non member function named isFemale. This function will receive as parameter a pointer to a student object. If the last two numbers of the student number is valid numbers (Must be between 0 and 9) the function will return true. Otherwise the function will return false.   How to do this part ?, I'm lost The student.h file is belo

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter16: Searching, Sorting And Vector Type
Section: Chapter Questions
Problem 1TF
icon
Related questions
Question

Create an overloaded > (greater than) operator in the Student class. The operator will

compare the age of two student objects and return the object with the greater age.

In main.cpp create a non member function named isFemale. This function will receive

as parameter a pointer to a student object. If the last two numbers of the student number

is valid numbers (Must be between 0 and 9) the function will return true. Otherwise the

function will return false.

 

How to do this part ?, I'm lost

The student.h file is below.

21:07 A O
4G 44 195%
回く:
student.h
#ifndef STUDENT_H
-- -
#define STUDENT_H
#include <string>
using namespace std;
class Student
{
public:
Student ();
string getName ()
string get Surname () ;
string get Email()
string getAge () ;
string getStudent_Number():
void loadStudent (string lineFromFile);
private :
string Name;
string Surname;
string Email;
string Age;
string Student_Number;
};
#endif // STUDENT_H
Filters Curtains MAP Packaging
>
Ethyelne Absorbers reduce ethylene & MAP
packaging increases shelf life
* Keep It Fresh LLP
Transcribed Image Text:21:07 A O 4G 44 195% 回く: student.h #ifndef STUDENT_H -- - #define STUDENT_H #include <string> using namespace std; class Student { public: Student (); string getName () string get Surname () ; string get Email() string getAge () ; string getStudent_Number(): void loadStudent (string lineFromFile); private : string Name; string Surname; string Email; string Age; string Student_Number; }; #endif // STUDENT_H Filters Curtains MAP Packaging > Ethyelne Absorbers reduce ethylene & MAP packaging increases shelf life * Keep It Fresh LLP
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
ADT and Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning