Question: can help me with this object oriented programming task? Given the following superclass named Teacher and subclasses named SchoolTeacher and a) Write the class definitions,

can help me with this object oriented programming task?
can help me with this object oriented programming task? Given the following
superclass named Teacher and subclasses named SchoolTeacher and a) Write the class

Given the following superclass named Teacher and subclasses named SchoolTeacher and a) Write the class definitions, the normal constructor, the accessors and the printer method for all classes. b) Write the definition of method calcSalary() for both subclasses that calculate and return the teacher salary based on the following information: The salary of school teacher is calculate based on the grade as shown in Table 1: For the kindergarten teacher, the salary is calculate based on the year of service as shown in Table 2 and overtime hours. Tahin 9 - Vindinmantan Tanakhar analatatian Each overtime hour will be paid RM15. Salary for kindergarten teacher is the total of basic salary and overtime hours pay. c) Write a complete program application that fullfill the following questions: i) Declare an array of 10 Teacher objects named teach. Get values from the user. ii) Display the information of SchoolTeacher only. iii) Display the teacher name and salary obtained by Math teacher whose grade is DG44 iv) Calculate and display the total overtime hours done by the kindergarten teachers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!