Question: IN JAVA: Create a class called Employee that include three instance variables a first name(String), a last name (String), and a monthly salary (double). Provide

IN JAVA:

Create a class called Employee that include three instance variables a first name(String), a last name (String), and a monthly salary (double). Provide a constructor that initializes the three instance variables. Provide a set and a get method for each instance variable. Set the monthly salary value, if it is positive. Write a test application named EmployeeTest that demonstrates class Employeess capabilities. Create at-least five Employee objects and display each objects yearly salary. Give each employeea range of raises (2%-6%) and then display their yearly salary again. Write good interactive messages for users while they are interacting with the program (introductory message and a good bye message).Create an UML diagram of the Employee class.

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!