MAT Part2 Ford factory has four types of employees namely manager, engineer, auditor and supervisor The company has the
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
MAT Part2 Ford factory has four types of employees namely manager, engineer, auditor and supervisor The company has the
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!