Question: on these classes do the folowing: public abstract class Employee { private String name; private int id; private double salary; public Employee ( String name,

on these classes do the folowing:
public abstract class Employee {
private String name;
private int id;
private double salary;
public Employee(String name, int id, double salary){
this.name = name;
this.id = id;
this.salary = salary;
}
public String getName(){
return name;
}
public void setName(String name){
this.name = name;
}
public int getId(){
return id;
}
public void setId(int id){
this.id = id;
}
public double getSalary(){
return salary;
}
public void setSalary(double salary){
this.salary = salary;
}
public abstract double calculateBonus();
Testing (Verifying System Performance and Accuracy)
To ensure the EmployeeManagementSystem operates correctly and manages em- ployee records efficiently as intended, a structured testing process is essential. This process, involving the use of an input file to test the systems functionali- ties, ensures comprehensive evaluation.
Testing Procedure
Input File: An input file is provided containing a series of commands de- signed to simulate the different operations the EmployeeManagementSys- tem can perform, such as adding employees, approving leaves, changing employee states, and more.
Execution: The testing should be performed within the main method of your system. By running your system with this input file, the Employ- eeManagementSystem will process each command sequentially, mirroring real-world usage scenarios.
Output File: Concurrently, an output file will be generated, containing the results of processing all commands from the input file. This file serves as a tangible record of the systems responses to each operation.
Expected Outcomes: The essence of testing lies in comparing the actual output generated by your system against the expected output detailed in the testing documentation. A match between these outputs indicates that the system functions correctly and as expected, affirming its reliability in managing employee records accurately.
Important Note on Bonus Calculation
For the purpose of simplification and to ensure consistency in testing, the bonus percentages for each employee type have been predefined as follows:
Designer: A bonus rate of 0.10(10%) of their salary.
Developer: A bonus rate of 0.12(12%) of their salary.
Manager: A bonus rate of 0.15(15%) of their salary.
When calculating bonuses for each employee type, the system must apply these specific rates. This standardization aids in validating the systems functionality, particularly its accuracy in processing financial calculations according to defined criteria.

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!