Given a binary file STUDENT.DAT, containing records of the following class Student type
class Student
{ char S_Admno[10]; //Admissio number of student
char S_Name[30]; //Name of student
int Percentage; // Marks Percentage of student
public:
void EnterData()
{ gets(S_Admno); gets(S_Name);
cin>>Percentage; }
void DisplayData()
{ cout<<setw(12)<<S_Admno;
cout<<setw(32)<<S_Name;
cout<<setw(3)<<Percentage<<endl;
}
int ReturnPercentage ()
{ return Percentage; }
};
Write a function in C++, that would read contents of file STUDENT.DAT and display the details of those Students whose Percentage is above 75.