A college admission system needs its student class to implement an interface containing two methods
double CalculateAggregate(int weightfactor)
bool IsSelected(double cutoff)
The student class itself is derived from an abstract class by name person,which contains name, age and an abstract method called
bool IsEligible()
The student class further adds course completed, discipline and marks secured in the course, and marks secured in the entrance exam. It implements all methods needed to instantiate objects. The aggregate is calculated by a weighted average giving weightage of “weightfactor” for the marks in the course and 1 for the marks in entrance. All marks are in percentage. A student is eligible if his weighted average is 60 percent or more. A student is selected if his weighted average is greater than equal to the cutoff.