@@ -0,0 +1,2873 @@
+//******************************************************************************%0A//  Firm.java       Java Foundations%0A//  Author: Miguel A Rodriguez%0A//  Date: 9/8/2015%0A//  Course: CSC 112-001%0A//  Description:%0A//           Keeps track of all the records for the hourly workers.%0A//  %0A//******************************************************************************%0A%0A   %0A//         UML Diagram for main Application   %0A//         ************************************************************************************  %0A//           Child class       %0A//          ***********************************************************************************     %0A//Class:      Hourly%0A//          ***********************************************************************************%0A//Variables&Objects: %0A//            Personnel                %0A//          ************************************************************************************%0A//Methods:%0A//            -hoursWorked: int%0A//            +addHours(moreHours: int): void%0A//            +pay():double%0A//            +toString(): String%0A//          ************************************************************************************* %0A%0A//   ********************************************************************************************%0A//       Program Logic:%0A//                  1) assigns pay and vacation to hourly employee%0A//                  2) creates a constructor%0A//  **********************************************************************************************%0A//*******************************************************************************%0A// Pseudocode %0A//          read many classes%0A//          output the data%0A//*******************************************************************************%0Apublic class Hourly extends Employee%0A%7B%0A%0A%09private int%09%09%09%09hoursWorked;%0A%0A%09private final double%09overtimeRate;%0A%09private int%09%09%09%09overtimeWorked;%0A%0A%09public Hourly(String eName, String eAddress, String ePhone,%0A%09%09%09String socSecNumber, double rate)%0A%09%7B%0A%09%09this(eName, eAddress, ePhone, socSecNumber, rate, rate * 1.5);%0A%09%7D%0A%0A%09%0A%09public Hourly(String eName, String eAddress, String ePhone,%0A%09%09%09String socSecNumber, double rate, double overtimeRate)%0A%09%7B%0A%09%09super(eName, eAddress, ePhone, socSecNumber, rate);%0A%09%09this.overtimeRate = overtimeRate;%0A%09%09this.overtimeWorked = 0;%0A%09%09this.hoursWorked = 0;%0A%09%7D%0A%0A%09%0A%09public void addHours(int moreHours)%0A%09%7B%0A%09%09this.hoursWorked += moreHours;%0A%09%7D%0A%0A%09%0A%09public void addOvertime(int hours)%0A%09%7B%0A%09%09this.overtimeWorked += hours;%0A%09%7D%0A%0A%09%0A%09public double pay()%0A%09%7B%0A%09%09final double payment = (this.payRate * this.hoursWorked)%0A%09%09%09%09+ (this.overtimeRate * this.overtimeWorked);%0A%09%09this.hoursWorked = 0;%0A%09%09this.overtimeWorked = 0;%0A%09%09return payment;%0A%09%7D%0A%0A%09%0A%0A%09public String toString()%0A%09%7B%0A%09%09String result = super.toString();%0A%0A%09%09result += %22%5CnCurrent hours: %22 + this.hoursWorked;%0A%0A%09%09return result;%0A%09%7D%0A%0A%09%0A%0A%09public int vacation()%0A%09%7B%0A%09%09return 2;%0A%09%7D%0A%7D%0A

Create Hourly.java