Question: Write a Java program that implements the following features: Create an Employee class The Employee Class will have the following properties First Name Last Name

Write a Java program that implements the following features:

  1. Create an Employee class
  2. The Employee Class will have the following properties
    1. First Name
    2. Last Name
    3. Employee ID
    4. Hourly Pay
    5. Hours worked
  3. The Employee class will have the following methods
    1. Get and Set property values
    2. Compute total pay by multiplying hourly pay by hours worked
  4. The main program will
    1. Create an Employee class object
    2. Set the following data into the object
      1. Name = Sara Jones
      2. EmpID = 100
      3. Hourly Pay = 12.55
      4. Hours Worked = 40
    3. Get the total pay from the Employee object
    4. Print the total pay to the screen.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!