Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions

Question

What is a conventional loan?

Answered: 1 week ago