MAT Part2 Ford factory has four types of employees namely manager, engineer, auditor and supervisor The company has the
Posted: Sun May 15, 2022 12:55 pm
MAT Part2 Ford factory has four types of employees namely manager, engineer, auditor and supervisor The company has the following parameters to compute the salary of each employee a. Manager. Basic(Rs 30000), DA(100% of basic), HRA(50% from basic) Car allowance(Rs 2500 pm), Travelling allowance(15% of basic) b. Engineers. Basic(Rs 20000), DA(100% of basic), HRA( 30%of basic), Travelling allowance(5% of basic) c. Auditors Basic(rs 35000), DA(100% of basic) HRA(30 %of basic), LTA(10% of basic mobile allowance(rs3000),carallowance(rs 2500) d. Supervisors: basic(Rs 10000), DA(100%),HRA (25% of basic) Create four classes manager, engineer, auditor and supervisor inherited from the employee class Employee class contains member variables name, designation basic_salary and a method to display salary. Derived classe salary Use the concept of abstract method is required Input format John Manager 30000 Output format: John Manager 82000