Thursday, August 8, 2013

Employee Management System Java Program



Download from here click 
Assignment Definition:
You are required to write a Java program that models an employee management system. The program should have a menu style system that allows the user to choose from the following options:
·         Enter an Employees details
·         Retrieve an Employees details
·         Exit the system
Each employee will have a 6 digit ID number, a name, an address and a hire date. If the user chooses to enter an employee’s details, an employee object is created and the attributes are set. When the employee’s details are entered, they must be written to a text file called Employees.txt. The employee information must be written to the file in the following way:
[ID] [Name] [Address] [Hire Date]
e.g.
123456 Joe Bloggs 24, High Street, Dublin 2 21/7/2013
If the user chooses to retrieve an employee’s details, the user must be asked to enter the ID of the employee. The program must then search the Employees.txt file for the employee. If the employee is found, then the details should be printed to the screen.
You MUST use object-oriented code in this assignment. Therefore, you must have an Employee class containing all of the attributes of an employee. The employee class should contain all the necessary constructors, getter/ setter methods etc. to allow creation of employee objects for storage in the file.
Grading

Marks are going for:
·         Well written code. In other words, clear elegant Java code, using proper syntax, appropriate data types, variables, control structures, methods, objects etc.
·         Well-structured code. Code must be properly indented, with ample spacing to promote clarity in your code.
·         Adequate commenting. You must comment your code where appropriate.

Program Requirements:
·         The user should be asked to choose an option (as above).
·         If the user chooses to enter in an employee’s details, they must be allowed input the ID, name, address and start date. If they choose to retrieve information about an employee, they must be allowed enter in an ID to use for the search.
·         For each employee entered, the program should create an employee object for each person and write the details to the text file.

Methods:
Your employee class should contain the following methods:
Getter and Setter methods for the following:
·         ID (int)
·         Name (String)
·         Address (String)
·         Start Date (String)

Public constructor, i.e.
Public Employee(int id, String name, String address, String date){
}
The constructor will set the values for the employee object.
Public void display(){
}

Screenshot:

No comments:

Post a Comment