Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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?
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started