Implement a class Employee. An employee has a name (a string) and a salary (a double). Provide a constructor with two parameters
public Employee(String employeeName, double currentSalary)
and methods
public String getName()
public double getSalary()
public void raiseSalary(double byPercent)
These methods return the name and salary, and raise the employee's salary by a certain percentage. Sample usage:
Employee harry = new Employee("Hacker, Harry", 50000);
harry.raiseSalary(10); //
Harry gets a 10% raise
Supply an EmployeeTester class that tests all methods.

Complete the following files:

Employee.java

/** An employee with a name and salary. */ public class Employee { private String name; private double salary; /** Constructs an employee. @param employeeName the employee name @param currentSalary the employee salary */ public Employee(String employeeName, double currentSalary) { . . . } /** Gets the employee name. @return the name */ public String getName() { . . . } /** Gets the employee salary. @return the salary/home/cay/books/bigj3/solutions/Ch03/ExP3_4/ */ public double getSalary() { . . . } /** Raises the salary by a given percentage. @param percent the percentage of the raise */ public void raiseSalary(double percent) { . . . } }

EmployeeTester.java

/** This program tests the Employee class. */ public class EmployeeTester { public static void main(String[] args) { Employee harry = new Employee("Harry Hacker", 50000); harry.raiseSalary(10); // TODO: Test getName, getSalary methods . . . } }

EmployeeTester2.java