//******************************************************************** // Employee.java Author: PUT YOUR NAME HERE!!! // // Represents an employee with a name and payrate. // // YOU COMPLETE THIS! //******************************************************************** import java.text.NumberFormat; import cs1.Keyboard; public class Employee { private String name; private double payrate; //----------------------------------------------------------------- // Constructor sets up the employee with a name and payrate. //----------------------------------------------------------------- //----------------------------------------------------------------- // calcPay gets the number of hours and calculates and returns the // pay for an Employee. // Pay is payrate per hour for the first 40 hours, // and one and a half times the payrate for all hours over 40. //----------------------------------------------------------------- //----------------------------------------------------------------- // Returns a nicely formatted description of the Employee as a string. //----------------------------------------------------------------- }