Question: ( 6 ) Objective For this lab, you will be creating a class called Employee. The Employee will have an Address as well as a
Objective
For this lab, you will be creating a class called Employee. The Employee will have an Address as well as a Benefit. To complete this lab, you will need to create the following classes as described in the UML Class diagrams:
Please note that your submission must be created as indicated by the Class diagram
The Employee HAS A Benefit and HAS A Address Aggregation Instructions P
Create a Driver class that follows the following Pseudocode
create variables to hold a userID, first name and last name all Strings
instantiate a Benefit object using the argument constructor your choice on the data An Example Benefit would be:
Type: Health
Cost:
Provider: United Healthcare
instantiate an Address object using the argument constructor your choice on the data
prompt the user for userID, first name and last name and store in variables created earlier
instantiate an Employee object using the five argument constructor providing it with the data form the user prompts AND the Benefit object, and Address object you created earlier.
output to the user the Employee data using your printEmployeelnformation method.
Note: Your output should be formatted as shown below:
Employee Information # Employee Details # Kevin Roark DEV
Main Street
San Antonio, Texas, # Benefits #
Type: Health Care Provider: Blue Cross Cost: $
Deliverables P
Upload the following files in a zip folder that you have created:
Java class files
Screenshot of the Console with the code executing
Please note that there will be java files and screenshot in your submission
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
