Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

...

image-20240914-150604.pngImage Added

The Employee HAS A Benefit and HAS A Address (Aggregation)

...

Create a Driver class that follows the following Pseudocode

// create variables  variables to hold a userID, first name and last name (all Strings).

// output to the user Welcome to the Info system// instantiate a Benefit object using the 3 argument constructor (your choice on the data). An Example //Benefit would be:

...

//prompt the user for userID, first name and last name and store in variables created earlier

//instantiate an Employee  Employee object using the 5 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 PrintEmployeeInformation printEmployeeInformation method.

Note: Your output should be formatted as shown below:

image-20240914-150915.pngImage Added

🚚  Deliverables

Upload the following files in a zip folder that you have created:

  1. Java class files

  2. Screenshot of the Console with the code executing

  3. Please note that there will be 4 java files and 1 screenshot in your submission