Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sybase Database Administrators Handbook

Authors: Brian Hitchcock

1st Edition

0133574776, 978-0133574777

More Books

Students also viewed these Databases questions