Question: I want the answer in java please. Consider the Teacher, Full Tim Time Teacher, Part Time Teacher, IT. University and Employee classes described in the

Consider the Teacher, Full Tim Time Teacher, Part Time Teacher, IT. University and Employee classes described in the below UML Employee name: -dobjavil.Date Employeeiname String, dob Datei getters and setters override toString String statistics University de Employee et lyd Employee + 9ers Arrefime Teacher Teachers StringArrayTeacher extends extends Teacher rate double major String +Teacher major String getters and setters computeSalaryll double CT Salary doble ITsalary: double gets anders extends extends Full Time Teacher -baseSalaryant hourloadint workedHours Fulltime Teacher baseSalarint, loadint) getters and setters override computeSalary double toString String Part Time Teacher practoring our sint +Part TimeTeacher Detters and setters verde ComputerSalary double String String 1. Implement the class Employee. 2. Implement the class IT 3. Implement the class Teacher. Note the following a The rate is price per teaching hour its value should be strictly greater than zero b. The teacher salary is given by: salary-workedHounserate. 4. Implement the class Full Time Teacher. It has the baseSalary and hourLoad as attributes 1. The salary for a full time teacher is given by Salary-base salary + rate*extra hours. Where extra hours are the exceeded working hours to the teacher load b. The toString() method returns a description like "Full Timer (major) : base salary .... extra hours = salary ... 5. Implement the class Part Time Teacher. It has on private atribute, the proctoring Hours. * The salary for a part time teacher is given by Salary rate working hours +0.5 rate proctoring hours b. The toString() method returns a description like Part time (major) worked hours.... salary..." 6. Implement the University class. It has a collection of employees called staff (an ArrayList) and the following methods: a Constructor: Creates an empty collection of teachers. b. add (E: Employee): adds an Employee object to the collection. c.getEmployee(id: int): returns the employee in the collection at the index id. d.getFullTimers(): returns an ArryList containing the Full Time Teacher from staff e. getMajorTeacher( (major:String); returns an ArrayList of all Teacher of the major passed as parameter 7. Write a driver program that: a. Creates a University b. Add to the array: 2 Part Time Teachers, 2 FullTime Teachers, two Teachers and one IT and adds them to the university c. Print information about all full timers at the university d. Print information about all the CSCI Teachers c. Compute and print the total salaries of all teachers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
