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
Get step-by-step solutions from verified subject matter experts
