In java Create an abstract super class called Employee with the following attributes: name : String and the following methods getter and setter for the one attribute three constructors an abstract method called getSalary()  equals() toString()   Create a sub class of Employee called Faculty with the following attribute yearlyPay : double department: String and the following methods getter and setter for the  attributes three constructors getSalary() that returns the yearlyPay divided by 52 equals() toString() Create a sub class of Employee called Staff with the following attributes: hoursWorked : double payrate : double and the following methods getters and setters for the two attributes three constructors getSalary() that returns the weekly pay (multiply hoursWorked by payrate, overtime included and 1.5 times payrate for hours > 40) equals() toString()   Create a sub class of Employee called Sales with the following attributes: salesAmount : double //sales per week Type: character //Do they work in their home or at the college and have an office.  and the following methods getter and setter for the one attribute three constructors getSalary() that returns the amount of sales per week multiplied by 10%  equals() toString() Demonstrate these in a "driver" The driver will create an ArrayList of Employee from this data : s Jamie Snyder 49 12.34 r Ben Smith 12000 o f Janis Brown 50000 Mathematics s Harold Stimmel 50 9.36 s Dave Blair 4 10.55 r Sandy Mance 7609 h f Terry Joseph 125698 Engineering f Brian Wall 75000 Science r Stephanie Shoup 3625 h s Hannah Grill 30 32.45 s Olivia Davis 60 41.23 s is a staff employee hours worked and payrate r is a recruiter sales per week and o = office h = home (where they work) f is faculty yearly pay and department have a method to create the ArrayList have a method to display all items in the ArrayList have a method to search the ArrayList for an Employee name (user entered - you can use the entire name here, but it would be better if you searched only for last name - how would you do that??) have a method that searches for department and lists that Faculty have a method to search the ArrayList for all Employees that make  more than a user-entered amount per week. a method that will display a short menu of options (Faculty, Staff, Sales), the user will enter which type of employee they would like to see, your code will traverse the ArrayList for employees of that type and display.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

In java

Create an abstract super class called Employee with the following attributes:

  • name : String

and the following methods

  • getter and setter for the one attribute
  • three constructors
  • an abstract method called getSalary() 
  • equals()
  • toString()

 

Create a sub class of Employee called Faculty with the following attribute

  • yearlyPay : double
  • department: String

and the following methods

  • getter and setter for the  attributes
  • three constructors
  • getSalary() that returns the yearlyPay divided by 52
  • equals()
  • toString()

Create a sub class of Employee called Staff with the following attributes:

  • hoursWorked : double
  • payrate : double

and the following methods

  • getters and setters for the two attributes
  • three constructors
  • getSalary() that returns the weekly pay (multiply hoursWorked by payrate, overtime included and 1.5 times payrate for hours > 40)
  • equals()
  • toString()

 

Create a sub class of Employee called Sales with the following attributes:

  • salesAmount : double //sales per week
  • Type: character //Do they work in their home or at the college and have an office. 

and the following methods

  • getter and setter for the one attribute
  • three constructors
  • getSalary() that returns the amount of sales per week multiplied by 10% 
  • equals()
  • toString()

Demonstrate these in a "driver"

The driver will

  • create an ArrayList of Employee from this data :
  • s Jamie Snyder 49 12.34
    r Ben Smith 12000 o
    f Janis Brown 50000 Mathematics
    s Harold Stimmel 50 9.36
    s Dave Blair 4 10.55
    r Sandy Mance 7609 h
    f Terry Joseph 125698 Engineering
    f Brian Wall 75000 Science
    r Stephanie Shoup 3625 h
    s Hannah Grill 30 32.45
    s Olivia Davis 60 41.23


    s is a staff employee hours worked and payrate
    r is a recruiter sales per week and o = office h = home (where they work)
    f is faculty yearly pay and department
  • have a method to create the ArrayList
  • have a method to display all items in the ArrayList
  • have a method to search the ArrayList for an Employee name (user entered - you can use the entire name here, but it would be better if you searched only for last name - how would you do that??)
  • have a method that searches for department and lists that Faculty
  • have a method to search the ArrayList for all Employees that make  more than a user-entered amount per week.
  • a method that will display a short menu of options (Faculty, Staff, Sales), the user will enter which type of employee they would like to see, your code will traverse the ArrayList for employees of that type and display.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 12 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education