Question: JAVA QUESTION 3 One IT Solution Sdn Bhd is a software house company. They are planning to provide a system to store data about teachers.

JAVA

JAVA QUESTION 3 One IT Solution Sdn Bhd is a software house

company. They are planning to provide a system to store data about

QUESTION 3 One IT Solution Sdn Bhd is a software house company. They are planning to provide a system to store data about teachers. Given are School Teacher and KindergartenTeacher subclasses which are inherited from Teacher superclass. Superclass: Teacher Attributes: String name; String icNo; Il identification card no String subjectTaught; // English, Math, History int yos; Il year of service Methods: normal constructor accessor methods toString() abstract double calcsalary i/teacher grade, e.g: DG41, DG44, DG48 Subclass: School Teacher Attributes: String grade; Methods: normal constructor accessor method toString() double calcSalary() Subclass: Kindergarten Teacher Attributes: int otHours; llovertime hours per month Methods: normal constructor accessor method toString() double calcSalary() i. c) Based on the classes given, write Java statements to do the following: Declare an array of 20 Teacher objects named teach. (1 mark) ii. Display the information of English teachers who have been teaching for more than 10 years (3 marks) ii. Display the name and salary of school teachers whose grade is DG44. (3.5 marks) iv. Calculate and display the total overtime hours done by the teachers. (4 marks)

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!