HospitalEmployee.java - package ch5/Program Name...

This preview shows page 1 - 2 out of 2 pages.

package ch5;//Program Name: HospitalEmployee.java//Author: Jacqueline Gonzalez//Class: CSC110AA 21209//Date: 3/22/17//Description:Ch 5 Program 1 – HospitalEmployee//Program Name : HospitalEmployee.java//Brief Description//Implement a class called HospitalEmployee that //represents an employee in a hospital based on //the following informal UML diagram.public class HospitalEmployee{//define all of instance variablesprivate String empName;private int empNumber;private double hoursWorked;private double payRate; //Define the constructor methodpublic HospitalEmployee( ) {this.empName = "JHendren";this.empNumber = 9999;this.hoursWorked = 0;this.payRate = 0;}//Define the getEmpName methodpublic String getEmpName( ){ return empName;}// define the calculateGrossPay method

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture