Create an abstract class called Student from which Freshman and Transfer will inherit. Create the Freshman and
Question:
Create an abstract class called Student from which Freshman and Transfer will inherit. Create the Freshman and Transfer Classes defining only the specific properties that are not defined in your Student class.
Create an interface named Admission. Define an abstract method which will be used in the Freshman and Transfer class to determine if the student will be accepted to the University. The Student Class will implement the interface. ?
A freshman will be accepted if they have are in the top 10% of their class or have an ACT test score of 25 or above. A Transfer student will be accepted if they have a GPA of 2.5 or above and have completed 30 hours.
Define an abstract method in the Student class which will be used to determine if the new student will receive the presidential scholarship.
A freshman will receive the scholarship if they are in the top 10% of their class and have an ACT test score of 27 or above. A Transfer student will receive the scholarship if they have GPA of 3.5 or above and have transferred in as core complete.
Create a test class that reads from an input file with records for 10 objects 5 freshman & 5 transfers, one of each should be admitted and receive the scholarship add these to an array list of Students. Process the students polymorphically in an enhanced for loop and print only the students who were both admitted and received the scholarship to an output file.