Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

java nothing with black and white, ignore that part thanks Requirements 1. The program shall store information for two types of employees: full time and

image text in transcribed
java
image text in transcribed
image text in transcribed
nothing with black and white, ignore that part
thanks
Requirements 1. The program shall store information for two types of employees: full time and part time. 2. The program shall store the following information about all employees: a. First name b. Middle name c. Last name 4. Social Security Number c. Employee ID 1. Date of birth 3. The program shall, additionally, store the following information for full time employees: 2. Yearly salary 4. The program shall, additionally, store the following information for part time employees: a. Hourly wage s. The program shall utilize a shared private attribute among all full time objects and a shared private attribute among all part time objects to store the employee classification (e.g., Full Time or Part Time). 6. Part time employees shall have a method overriding the base employee method to print the Employee ID that will prepend "PT-". 7. The program shall contain a method to print all employee information as demonstrated by the Example Output section. 8. The program shall instantiate 1 full time employee object ($80,000 yearly salary) and 2 part time employee objects ($35.56 and $45.34 hourly wages). 9. The program output shall match, exactly, the output shown in the Example Output section Restrictions 1. Object-oriented design shall be properly used 2. Appropriate getters/setters shall be used (add additional as necessary) 3. Appropriate constructors shall be utilized that call the appropriate setters (i.e., no custom code) 4. Classes shall be defined in their own files s. The main() function shall not contain any superfluous code and must match, exactly, the code shown in the main() function section. 6. Date of Birth shall be an object of java.util.Date. 7. Social Security Number shall be declared as an integer 8. Bi-weekly pay shall be displayed with 2 decimal places Obiect's toString() shall be overridden for output in all classes main() function public static void main(String[] args) { fulltime empl = new fulltime parttime emp2 = new parttime parttime emp3 = new parttime System.out.println("Employee l -......."); System.out.println(empl.toString()); "); System.out.println("Employee 2 System.out.println(emp2.toString(); System.out.println("Employee 3 System.out.println(emp3.toString(); "); This is an example of the expected output. Employee 1 ---------- Smith, John K 190-21-4698 SMI1017 Full Time 1972-10-22 White $2,249.72 Employee 2 ----- Jones, Jessica S 742-52-9872 PT-JON7211 Part Time 1992-07-17 White $4,201.99 Employee 3 --------------- Moore, Susan R 261-89-9889 PT-MO07561 Part Time 1985-02-28 Black $1752.97

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions