//******************************************************************** // Hourly.java Author: Brenneman // // Represents an hourly employee with a payrate and hours worked. //******************************************************************** import cs1.Keyboard; public class Hourly extends Employee { private int hoursworked; private double payrate; //----------------------------------------------------------------- // Sets up the employee by defining its owner and payrate and hoursworked. // YOU WRITE THIS. //----------------------------------------------------------------- //----------------------------------------------------------------- // pay calculates the paycheck for this hourly employee for this week, // and returns a double -- the amount of the paycheck. // for all hours under 40, hourly employees get paid their rate per hour. // for all hours over 40, hourly employees get paid 1.5 times their rate per hr. // (pay has no parameters.) // YOU WRITE THIS. //----------------------------------------------------------------- //----------------------------------------------------------------- // Returns a one-line description of the account as a string. // YOU WRITE THIS. //----------------------------------------------------------------- }