Question: help please - this is JAVA 3) Create a class called Employee that includes three private data members-a first name, a last name, years of

help please - this is JAVA 3) Create a class called Employeehelp please - this is JAVA

3) Create a class called Employee that includes three private data members-a first name, a last name, years of experience, and a monthly salary. The class should have the following methods a. Setter and getter functions for each data member. If the monthly salary is not positive, set it to 0. b. A method to give a 10 percent raise if the years of experience is more than 5 years or the monthly salary is less than $2000and display both the old and the new salaries. You are required to create the class, and afterward, in the main method, create two Employee objects (One that should earn a raise and one who should not), and display a sample output of your program

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!