Assignment PRO192
Assignment PRO192
I. Description
- Developer and Tester inherit from Employee class and TeamLeader
inherit from Developer class.
- Explain some properties and methods as follows:
1.1. Employee class
- empID: employee code.
- empName: employee name.
- baseSal: base salary of the employee.
- The abstract method getSalary().
- toString(): returns the string in the format:
empID_empName_baseSal
II. Features:
Display a menu and ask users to select an option.
– Function 0: Build the data structure
Classes, abstract classes, and Interfaces are required.
Employee code cannot change after created.
You must implement the polymorphism properties of object-oriented
programming.
– Function 1: Show the Employee list
This function allows to show all data from file into the screen.
– Function 2: Add Employee
Creates a submenu that allows the user add new Employee.
Data constraints must be checked such as
Employee code value can not duplicate
Each team has only 01 TeamLeader.
This function will add the new Employee to collection.
The program provides options to ask to continuous create new animal
or go back to the main menu.
– Function 3: Update Employee
This function allows to update Employee information base on
Employee code
The user enters the Employee code
If no Employee exists, the notification “Employee does not
exist”.
Otherwise, user can start input new information of Employee
and update.
Employee information that is updated must be validated.
Process of this function should be shown success or fail status.
The program should be allowed user selecting option to returning to
the menu.
– Function 4: Search Employee
The user enters search text or value of salary.
This function allows to user search Employee:
All Employee information that has name contain the search text
or salary height value or Developer is proficient in
programming language will be shown.
If no Employee is existed, the screen shows message “No
Employee is matched”.
– Function 5: Store data to file
This function allows user store data in collection to file.
The file data is read when the program started.
– Function 6: Sort Employee
Sorted in ascending order by salary and name