Write a Java program that implements the following features: Create an Employee class The Employee Class will
Fantastic news! We've Found the answer you've been seeking!
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
- Employee ID
- Hourly Pay
- Hours worked
- The Employee class will have the following methods
- Get and Set property values
- Compute total pay by multiplying hourly pay by hours worked
- The main program will
- Create an Employee class object
- Set the following data into the object
- Name = Sara Jones
- EmpID = 100
- Hourly Pay = 12.55
- Hours Worked = 40
- Get the total pay from the Employee object
- Print the total pay to the screen.
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Posted Date: