please make sure interfaces and polymorphism is used there is already same work but all of them are using abstract classes instead also, i would like an easy and fresh java code not a used one please which could be easy to understand and not from any source,
please read the last 2 paraghaps clearly also plz make sure interfaces are being used
Goals Practice interfaces and polymorphism Description A college department needs a system for obtaining total hours for all the people involved in its program. They have a record of all the professors, teaching assistants and students with the name of the course and total hours for each course as follows: Out of all hours for each course, the professor attends only lecture hours, TA conducts lab hours and students must attend all hours. The number of lab and lecture hours is based on the total hours of the course: if total hours >4 then lab hours =2, otherwise lab hours =1 lecture hours = total hours lab hours. Therefore for the following scenario: if total hours >4 then lab hours =2, otherwise lab hours =1 lecture hours = total hours lab hours. Therefore for the following scenario: the professor has 4 hours, TA has 2 , and the student has all 6 . Write a program using abstract classes to represent people and a proper class hierarchy to represent professors, TAs and students. Introduce an interface named ParticipateHours that defines the following method: int getParticipatingHours(int courseHours). Abstract class Person must implement this interface. The program should read the full record above from the input file and produce the output file of all the people with their total hours through the use of polymorphism. Every person must be mentioned in the file only once. The result should be of the following format: Title (Professor/TA/Student) FirstName LastName TotalHours Therefore for the following scenario: the professor has 4 hours, TA has 2 , and the student has all 6. Write a program using abstract classes to represent people and a proper class hierarchy to represent professors, TAs and students. Introduce an interface named ParticipateHours that defines the following method: int getParticipatingHours(int courseHours). Abstract class Person must implement this interface. The program should read the full record above from the input file and produce the output file of all the people with their total hours through the use of polymorphism. Every person must be mentioned in the file only once. The result should be of the following format: Title (Professor/TA/Student) FirstName LastName TotalHours