Employment Management System-EMS 1) Create a superclass named Employee that has the following fields: name, date of birth, email, and salary. 2) Inside the Employee class, Add a static variable: annual vacation= 30. This variable holds the days permitted for each employee as a vacation each year. 3) Accordingly, Add a static method to change the value of the annual vacation variable defined above. 4) The superclass has the following methods: • displayInfo() that shows and prints the info of the employee (name, date of birth, email, and salary). Note, displayInfo() method is overriding polymorphis: you must implement it differently in the derived classes: Programmer and Teacher. • Addemp() that add employee (ID, name). You need to use Hashmap for employee objects. Use employee ID as a key and the employee name as a value returned by the system. 5) Create two subclasses of Employee class: Programmer class and Teacher class (Use inheritance concept). • In programmer class define the following fields: ArrayList of projects (the projects the programmer work on), and ArrayList of programmers (system-developer ,web-app, mobile-app, cyber security...) • In the teacher class add the following fields: teacher's major and ArrayList of courses(the courses the teacher teach). The list of courses must be defined as an ArrayList of objects of course class. The course class has course name, course code, and course credits as fields. Do all the getter and setter methods of course class? Note for all classes above define the constructors in each class. And in all subclasses, you should have a parameterised constructor that calls the constructor in the super class (employee). Define a test class that has a main method to test all the classes you built in this project.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Employment Management System-EMS
1) Create a superclass named Employee that has the following fields:
name, date of birth, email, and salary.
2) Inside the Employee class, Add a static variable: annual vacation= 30. This variable
holds the days permitted for each employee as a vacation each year.
3) Accordingly, Add a static method to change the value of the annual vacation
variable defined above.
4) The superclass has the following methods:
• displayInfo() that shows and prints the info of the employee
(name, date of birth, email, and salary). Note, displayInfo() method is overriding
polymorphis: you must implement it differently in the derived classes: Programmer and
Teacher.
• Addemp() that add employee (ID, name). You need to use Hashmap for
employee objects. Use employee ID as a key and the employee name as a value
returned by the system.
5) Create two subclasses of Employee class: Programmer class and Teacher class
(Use inheritance concept).
• In programmer class define the following fields: ArrayList of projects(the projects
the programmer work on), and ArrayList of programmers (system-developer
,web-app, mobile-app, cyber security...)
•
In the teacher class add the following fields: teacher's major and ArrayList of
courses(the courses the teacher teach).
The list of courses must be defined as an ArrayList of objects of course class.
The course class has course name, course code, and course credits as fields.
Do all the getter and setter methods of course class?
Note for all classes above define the constructors in each class. And in all subclasses, you
should have a parameterised constructor that calls the constructor in the super class
(employee).
Define a test class that has a main method to test all the classes you built in this project.
Transcribed Image Text:Employment Management System-EMS 1) Create a superclass named Employee that has the following fields: name, date of birth, email, and salary. 2) Inside the Employee class, Add a static variable: annual vacation= 30. This variable holds the days permitted for each employee as a vacation each year. 3) Accordingly, Add a static method to change the value of the annual vacation variable defined above. 4) The superclass has the following methods: • displayInfo() that shows and prints the info of the employee (name, date of birth, email, and salary). Note, displayInfo() method is overriding polymorphis: you must implement it differently in the derived classes: Programmer and Teacher. • Addemp() that add employee (ID, name). You need to use Hashmap for employee objects. Use employee ID as a key and the employee name as a value returned by the system. 5) Create two subclasses of Employee class: Programmer class and Teacher class (Use inheritance concept). • In programmer class define the following fields: ArrayList of projects(the projects the programmer work on), and ArrayList of programmers (system-developer ,web-app, mobile-app, cyber security...) • In the teacher class add the following fields: teacher's major and ArrayList of courses(the courses the teacher teach). The list of courses must be defined as an ArrayList of objects of course class. The course class has course name, course code, and course credits as fields. Do all the getter and setter methods of course class? Note for all classes above define the constructors in each class. And in all subclasses, you should have a parameterised constructor that calls the constructor in the super class (employee). Define a test class that has a main method to test all the classes you built in this project.
Expert Solution
steps

Step by step

Solved in 5 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY