Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You must ask user for employee details and enable them to perform these actions. You are not creating employees!!! For this java assignment, you need

You must ask user for employee details and enable them to perform these actions. You are not creating employees!!! For this java assignment, you need to implement a class that represents these HR aspects of an employee. You're going to need 3 classes: 1 that represents an employee, 1 that represents a Date, and a separate class that contains the main method and uses Objects of type Employee. Your employee class needs to model these attributes:

  • The employee's first name
  • The employee's last name
  • The employee's full name
  • The employee's date of hire
  • The employee's termination date
  • How many vacation days a person has left (unscheduled)
  • How many vacation days a person has scheduled
  • The employee's last annual review, represented as a string

Your employee class needs to include the following methods / actions:

  • default and parameterized constructors
  • getter and setter methods
  • scheduleVacationDay
    • when an employee schedules a vacation day, they lose a day from what they have left and gain a day to the number they have scheduled
  • cancelVacationDay
    • when an employee cancels a vacation day, they gain a day to what they have left and lose a day from what they have scheduled
  • terminateEmployee
    • when an employee leaves the company they get a termination date value
  • toString
    • prepare a formatted string of Employee data and display it to the screen

The date class needs to model the following attributes:

  • month
  • day
  • year

The date class needs to include the following methods:

  • getDate
  • setDate

Your main method needs to perform the following operations:

  • create 3 employees
  • schedule at least 2 vacation days for each of the 3 employees
  • cancel at least 1 vacation day for each of the 3 employees
  • terminate 1 employee
  • output all 3 employees at the end

You should prompt the user for details on the 3 employees and enable them to perform the available employee actions.

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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions