Abc Ltd. Company announces an increment in the basic salary of their employees based on the seniority of age as per the following: Increment Age up to 45 years 10% of basic above 45 and below 56 years 15% of basic 56 years and above 20% of basic Write a program in Java with the following details: Class name : Increment Data members: int ecode to store the employee code int age : to store age of the employee double basic to store basic pay of the employee double increment to calculate and store the incremented amount. Member methods: void calculate() to calculate the increment as per the criteria given above oid accept (int e, double b, int a) : to input employee code, basic salary and age and to update the basic void display to display the value of data members. Write a main method to create an object of the class and call the above member methods.
Answers
Answered by
1
Answer:
what's in this question what we will do
Similar questions