Question: java Create a class Employee Test which performs the following a. Create fours objects with the following data which is given in tabular format. 04
Create a class Employee Test which performs the following a. Create fours objects with the following data which is given in tabular format. 04 Marks Id Name Salary Experience 1* Object Details 1001 Mohammed Hatem 1500 1 2nd Object Details 1201 Mohammed Ali 4500 3 3rd Object Details 1320 Mohammed Rasheed 3800 6 4th Object Details 1500 Yasir Adnan 7200 9 b. Display the result as shown Employee Information ID Name Salary Experience Total Salary 1001 Mohammed Hatem 1500.00 SR 1 1500.00 SR 1201 Mohammed Ali 4500.00 SR 3 4950.00 SR 1320 Mohammed Rasheed 3800.00 SR 6 4370.00 SR 1500 Yasir Adnan 6000.00 SR 9 7200.00 SR 05 Marks Total salaries paid for 4 employees = 18020.00 SR 'OBJECT ORIENTED PROGRAMMING CS102 2 Weite JAVA program as per class diagram and description given below: 04 Marks Employee -id: int -name: String - salary: double -experience int +Emplovec (ad1: int, namel: Staing, salaryl: double, experience int) +getIDO: int +getName(): Stirng + getSalary0: double +getExperience(): int +calSalary0: double 1. Define the class and instance variable as per the class diagram b. Define the constructor as per the class diagram c. Define the getters as per the class diagram d. For the method calSalaryo you have to return the calculated salary based on the experience. If the experience =2 and = 5 and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
