Question: i need the code fixed, the goal is to test the employee file 6. (15 points) Implement a P2Tester class (with main method) that will

i need the code fixed, the goal is to test the employee file  i need the code fixed, the goal is to test the
employee file 6. (15 points) Implement a P2Tester class (with main method)
that will test all the classes and all its methods. Below is

6. (15 points) Implement a P2Tester class (with main method) that will test all the classes and all its methods. Below is a general pattern you can follow but make necessary adjustments according to the class: a. Create object from class b. Print the instance variables c. Modify the instance variables d. Print the instance variables again e. Repeat Steps b-d if there are multiple methods that modify the instance variables of the object Emelan Employee key = new Employee(); System.out.println("Employee One's name: "+ key.getName()); System.out.println(key.getSalary()); System.out.println(key.getName()+" 's salary: "); System.out.println("Employee One's yearly salary: $ "+ key.getSalary(); public Employee() { name = ""; salary = 0; } public String getName() { return name; } public void setName(String name) { this.name = name; } public double getSalary() return salary; } public void setSalary(double salary) { this.salary = salary: } public double yearSalary(int months) F { double yearsal; yearsal = salary * months; return yearSal; } Wkland2 (debug) running... FEB 0

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!