Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PartB You are tasked to optimize the program you created for adding and managing employees in the Th3C0mp4ny company. You will determine the profession, years

PartB You are tasked to optimize the program you created for adding and managing employees in the Th3C0mp4ny company. You will determine the profession, years at the company, and current salary. Requirements and Restrictions ? Utilize the Classes created in Part A, the driver class called EmployeeManager, the Company class, the Employee class that inherits from Company, and the Email class that inherits from Employee. ? Create Two additional classes ProjectManagerEmployee and SoftwareEngineerEmployee ? Both classes will inherit from Employee class ? Both classes will have overloaded constructors and utilize constructors from parent class. ? ProjectManagerEmployee Class will have the following private fields with these values 1. Value for rate increase: 0.0325 2. Value for starting salary: 50000.00 3. Value for profession: Project Manager ? SoftwareEngineerEmployee Class will have the following fields with these values 1. Value for rate increase: 0.0325 2. Value for starting salary: 60000.00 3. Value for profession: Software Engineer ? Employee will have additional parameters that is private. 1. Field to hold profession. 2. Value for rate increase: 0.0100 3. Value for starting salary: 40000.00 4. Value for undefined profession: Undefined ? Employee class may now have additional constructors. ? Employee must a recursive function that calculates the salary. ? EmployeeManager will now read the latest file provided on canvas Employees2.txt ? EmployeeManager class will now determine the employee profession in the tokenize method. ? EmployeeManager class will utilize dynamic binding creating new objects based on the profession. 1. SWE -> Software Engineer (SoftwareEngineerEmployee) 2. PM -> Project Manager (ProjectManagerEmployee) 3. Anything else -> Undefined (Employee) ? EmployeeManager will now have an updated print statement to display profession, salary and years at the company ? Here is an updated sample: System.out.printf("%n| %-12s | %-20s | %-20s | %-20s | %-40s | %-20s | %-10s", "EmployeeId ", "Profession", "First Name", "Last Name", "Email Address", "Salary", "Years at Company"); Reminder: character next to number, ex %-12s is used to indicate type. s is used for String, d is used non-floating numbers, f used for floating numbers.

2 Input: ? The only data inputted is what is read from the file o A Sample Line: Winston#Colins#SWE#2 o Where tokens are first name, last name, abbreviated profession, years at company Output: ********************************************************************************* ********************************************************************************* ******** | EmployeeId | Profession | First Name | Last Name | Email Address | Salary | Years at Company -------------------------------------------------------------------------------------------------------------------------- ------------------------------------------------ | R04A90001 | Software Engineer | Winston | Colins |..s@Th3C0mp4ny.net | 61509.38 | 2 | R04A90002 | Project Manager | Brandi | GreenMatter |..r@Th3C0mp4ny.net | 62546.13 | 7 | R04A90003 | Software Engineer | Stacey | Robertson |..n@Th3C0mp4ny.net | 63056.72 | 4 | R04A90004 | Project Manager | Thomas | Cook |..k@Th3C0mp4ny.net | 56823.80 | 4 | R04A90005 | Project Manager | Lucy | Gutierrez |..z@Th3C0mp4ny.net | 71082.17 | 11 | R04A90006 | Undefined | Kathy | LeClare |..e@Th3C0mp4ny.net | 42040.40 | 5 ********************************************************************************* ********************************************************************************* ********

Employee text file

Winston#Colins#SWE#2 Brandi#GreenMatter#PM#7 Stacey#Robertson#SWE#4 Thomas#Cook#PM#4 Lucy#Gutierrez#PM#11 Kathy#LeClare#N/A#5

***This should be the final output

image text in transcribed
* * * * * * * * * * * | EmployeeId | Profession | First Name | Last Name | Email Address | Salary | Years at Company R04A90001 | Software Engineer | Winston | Colins | Winston. Colins@Th3Company . net | 61509.38 RO4A90002 | Project Manager | Brandi | GreenMatter | Brandi. GreenMatter@Th3COmp4ny . net | 62546.13 R04A90003 Software Engineer Stacey | Robertson | Stacey . Robertson@Th3COmp4ny . net | 63056.72 R04A90004 | Project Manager Thomas | Cook | Thomas . Cook@Th3COmp4ny . net | 56823.80 R04A90005 | Project Manager Lucy | Gutierrez Lucy . Gutierrez@Th3COmp4ny . net 71082.17 11 R04A90806 | Undefined | Kathy | LeClare | Kathy . LeClare@Th3COmp4ny . net 42040. 40 5

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions