@@ -0,0 +1,2524 @@
+/***************************************************************************%0A*                                                                          *%0A*                                                                          *%0A*            Miguel A. Rodriguez     CSC111                                *%0A*            prof Lemmo           4/15/2015                                *%0A*                                                                          *%0A*          This is a sub-class of the Sales driver class. It computes and  *%0A*           returns the gross pay of the employee base on the hours worked *%0A*           and the hourly rate.                                           *                                %0A*                                                                          *%0A***************************************************************************/  %0Aimport java.text.*;%0A%0Apublic class Employee%0A%7B%0A      //variables%0A%09private String name;%0A%09private int id;%0A%09private double hoursWorked;%0A%09private double hourlyRate;%0A%0A%0A%09public Employee(String str0, int str1, double hworked, double hrate)//constructor%0A%09%7B%0A%09%09name = str0;%0A%09%09id = str1;%0A%09%09hoursWorked = hworked;%0A%09%09hourlyRate = hrate;%0A%09%7D%0A%0A%09public double grossPay()%0A%09%7B  %0A     if (hoursWorked %3C= 40)%0A        %7B%0A     %0A%09%09   double regularH= hoursWorked * hourlyRate; //Computes the regular hours%0A         return regularH;%0A         %7D%0A     else%0A        if(hoursWorked%3E=40 && hoursWorked%3C=60)%0A        %7B%0A            //computes the overtime hours%0A         double overtime = hoursWorked - 40;%0A         double overtimeT = (overtime * 1.5) * hourlyRate;%0A         double regularH = 40 * hourlyRate;%0A         double totalOvertime = regularH + overtimeT;%0A         return totalOvertime;%0A         %7D %0A    else%0A         %7B%0A         %0A           //computes the double time hours%0A         double hoursDouble = hoursWorked - 60;%0A         double hoursDoubleT = (hoursDouble * 2)* hourlyRate;%0A         %0A         double overtime = (hoursWorked - 40) - hoursDouble;%0A         double overtimeT = (overtime * 1.5)* hourlyRate;%0A         %0A         double regularHours = 40 * hourlyRate;%0A%0A         double totalDoubleH = regularHours + overtimeT + hoursDoubleT;%0A         return totalDoubleH;%0A         %0A         %7D%0A       %0A   %0A  %0A       %0A    %7D%0A%0A%09public String toString()%0A%09%7B%0A       DecimalFormat fmt = new DecimalFormat(%2200000.#%22);%0A%09   return name + %22%5Ct%5Ct%22 + fmt.format(id) + %22%5Ct%5Ct%22 + hourlyRate + %22%5Ct%5Ct%22 + hoursWorked + %22%5Ct%5Ct%22 + grossPay(); //retuns the values%0A%09%09%0A%09%7D//end toString%0A%7D//end class%0A

Create Employee.java