Question: Create a project with a main executable class as well as an employee class. The employee class should have fields for first name, last name,

Create a project with a main executable class as well as an employee class. The employee class should have fields for first name, last name, and annual salary. Each of those properties should also have associated get and set methods. The class should also have a constructor that will take the first name and last name as parameters.

The class should also have a method that returns the monthly salary, and a method that returns the biweekly salary.

In your main class, ask the user for employee first name, and then last name. Then ask the user for the employee's annual salary.

Create a new instance of the employee class with the employee's first name and last name. Then set the employee's annual salary. Display the employee's name and both the monthly and the bi-weekly salary amounts.

in java

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!