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.
- Implement the model above in C# as a private single file assembly and test the assembly by early binding with a consumer and check if all methods are performing up to the expectation.
- Write a windows based application or a Web based application using good UCD standards and necessary validations, which gets the inputs needed to create students and early binds to the assembly created in step1 to calculate average, find eligibility(as per eligibility cutoff) and if he is selected. Store all the details collected and calculated into a data store.
- Have a provision in the above application which requires a student to login and displays his rank. It also gives a status if he is selected or not in case he is eligible and if not displays that he is not eligible.