Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Create a class called Employee that includes three instance variables Create a c

ID: 3541660 • Letter: C

Question



Create a class called Employee that includes three instance variables

Create a class called Employee that includes three instance variables-a first name (type String), a last name (type 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. If the monthly salary is not positive, do not set its value. Write a test application named EmployeeTest that demonstrates class Employee's capabilities. Create two Employee objects and display each object's yearly salary. Then give each Employee a 10% raise and display each Employee's yearly salary again. I MUST USE toString method in your Employee class and use JOptionPane for output. Output must be exactly as specified. Spelling, capitalization, punctuation, etc. Notice that the output provides data for creating the employee instances. I cannot perform the raise calculation in the print statement. Correct output with Smith at $5000 per month and Doe at $7000 per month. Employee class must have private variables of firstName, lastName, and monthlySalary. Only those variables; no others. Employee class must have a default constructor(public Employee()) and a non-default constructor(public Employee(String fn, String ln, double s)). Employee class must have a get and a set for each variable declared private. Employee class must have a toString that retuns the values of the three variables declared in Employee . The toString method does not do any formatting. This is all Employee class can have. Cannot declare other methods in Employee. All calculations and formatting go in the EmployeeTest file. Creating the employees with $5000 and $7000, respectively. Create them with monthly salary; not yearly. Must print out the yearly salary.  The raise is given to the monthly salary.

Explanation / Answer

What is the deadline (in hours please)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote