14482079 Employee Details in Cpp
-
Upload
tarun-patel -
Category
Documents
-
view
218 -
download
0
Transcript of 14482079 Employee Details in Cpp
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 1/48
Employee Management System
1 .
INTRODUCTION
1
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 2/48
Employee Management System
1. INTRODUCTION
DataBase is a collection of information that is used forseveralpurposes and DataBase Management system is an applicationSoftware,that has some specific programs to access the datas in thedatabase.Data bases help the users to create a large amount of information’s andstored it in a file system or in a memory chip, In normal casesclerks have a lot of works to record, search, edit the details
of a employee at the firm, it wastes a lot of times andtheir may be errors in the data , Here we introduce the"EMPLOYEE MANAGEMENT SYSTEM". By using this software we canovercome all most all such problems like data redundancy,inconsistancy. And it also helps to impliment standards
2
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 3/48
Employee Management System
1.1 ABSTRACT
The Computerization of “EMPLOYEE MANAGEMENT SYSTEM”
is the main objective of the project . By using this software package
the time consumption and work burden will be reduced immensely
.
The software entitled as ‘ employee management system’ is used
for storeing details of the employee in the firm database . It is
interactive and user – friendly software developed using CPP language .
The project is prepared to implement in DOS/ Windows / 2000 / NT
platforms .
The project helps to store and maintain all details of the
employee in the database of the firm and reduce data redundancy ,
inconsistancy, and it also helps to impliment standards . The projectis divided into four modules.
1 . Add the employee details
2 . Display employee details
3 . Modify the employee details
4 . Delete the details of particular employee
5 . Exit
3
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 4/48
Employee Management System
2 . SYSTEM
STUDY
4
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 5/48
Employee Management System
SYSTEM STUDY
The system study is indented with the study of theexisting system; that is about the current Data base system, the
working of the system , the concerned modules, and requirements
etc . It also deals with the benefits and disadvantages of the
system . We must thoroughly understand the old system and
determine how computers can best be used to make its operations
more effective.
Before development of any project can be pursued, a
system study is conducted to learn the details of the current
business situation . Information gathered through the study , forms
the basis for creating alternative design strategies . Management
selects the strategy to pursue.
2.1 Existing System
The existing system is studied to know the extent of
computerization required. Therefore , a detailed analysis of the
existing system should be conducted . For this purpose , system
should be broken down into various subsystems and these
subsystems were analyzed closely to identify the problem areas.
As we studied the existing system, it was found that
there is a File Management system which gives the facility for
accessing the employee details . In a File Management all works
5
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 6/48
Employee Management System
are done manually. The main problem of the manual operation is,
it is time consuming and error prone than the computerized system.
There exists wastage of data retrieved time as in the case of search
and further processing. There was no efficient system to manipulate
the existing records.
The problem I observe in this area is that the
user has to do all the operations manually , by searching and
analyzing large amount of data, a miss-spelled digit or character may
create many hours of extra work and complicated correction
procedure. Necessary data validation checks are included to avoid
mistakes
2.2 PROPOSED SYSTEM
The existing system leads to many errors like dataredundancy, data inconsistency, and also much more paper worksthat waste very valuable time and money. We collect a lot of information from different current tools and it’s advantages.
Keeping this in mind we decided to develop asoftware and named as “EMPLOYEE MANAGEMENT SYSTEM” whichis very userfriendly and helps to make research a real chore. Thiscomputerization improves efficiency of office work, and also helps tokeep data too many years without damage and can be recollectedas and when needed without much time
The Proposed system solves problems related to dataaccessing problems, because it help the user to add details of theemployee to the firm database easily ,improving data recoveryspeed, easy searching and also provide editing of data’s in thedatabase
6
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 7/48
Employee Management System
3. SYSTEM
SPECIFICATION
7
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 8/48
Employee Management System
3.1 SOFTWARE SPECIFICATION
Language – Cpp
OS – DOS/ WINDOWS
3.2 HARDWARE REQUIREMENT
Processor -- Pentium lll
Processor speed -- 600 MHz
Monitor Size -- 15” SVGA
RAM -- 256 MB
HDD -- 40 GB
Floppy drive -- 1.44 MB
Keyboard -- 104 or higher
Cache -- 512 KB Level 2 Cache
Printer -- Laser
Modem -- 56.6 Kbps
8
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 9/48
Employee Management System
UPS -- 0.5 KV
4. SYSTEM
ANALYSIS
9
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 10/48
Employee Management System
4 .1 Feasibility Analysis The main objective of feasibility study is to test the
technical, social and economic feasibility of developing a system.
This is done before developing a system . This is done by
investigating the existing system in the area under investigation and
generating ideas about the new system.
4.1.1 Economic and Technical Feasibility The system must be evaluated from the technical view
point first. The assessment of this feasibility must be based on an
outline design of the system requirement in terms of input, output,
programs, procedure and staff. Having identified the outline of the
system, the investigation must go on to suggest the type of
equipment, required method of developing the system, and the method
of running the system
This developing system must be justified by cost andbenefit criteria to ensure that effort is concentrated on project which
will give best return at the earliest . One of the factors which affect
the development of a new system is the cost it would require. Since
the system is developed as a part of our study , there is no
manual cost to be spent for the proposed system.
4.1.2 Social and Behavioral Feasibility
10
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 11/48
Employee Management System
Proposed project would be beneficial only if they can
be turned into information system that’ll meet the organization
operating requirements. One of the main problem faced during the
development of a new system is getting acceptance from user .
Being a general purpose software there are no resistance from theusers because this will be more beneficial to the users.
5 . SYSTEM DESIGN
11
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 12/48
Employee Management System
5.1 Input Design
In input design, the user-defined inputs are converted in
to computer-based format. Input design involves determining the
record media, method of input, speed of capture and entry to the
system. The most important approach to the input design is
formatted and prompt design.
User side Input
The inputs provided by user are
• Employee code, name, age, salary
5.2 Output Design
Computer output is the most important and direct source
of information to the user. Designing the computer output should
proceed in an organized, well through out manner. The right output
must be developed while ensuring that each output element is
designed so that people will find the system easy to use efficiently.
When analysts design computer output they identify the specific
output that is needed to meet the information requirements.
Different methods for the information will be selected. Analyst
12
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 13/48
Employee Management System
creates document , report, or other format that contain information
produced by the system
5.3 Interface Design
Interface design mainly focuses on the design of
interfaces between software modules , external entities and the user.
The design of internal program interfaces, sometimes called inter-
modular interface design, is driven by the data that must flow
between modules and the characteristics of the programming
language in which the software is to be implemented. Externalinterface design begins with an evaluation of each external entity
represented in the DFD’s of the analysis model. Both internal and
external interface design must be coupled with data validation and
error handling algorithms within a module. Because side effects
propagate across program interfaces, it is essential to check all data
flowing from module to module to ensure that the data conform to
bounds established during requirements analysis. User interface
design has as much to do with the study of people as it does with
technology issues. Who is the user? How does the user learn tointeract with a new computer-based system ? So the system should be
developed in a user-friendly manner.
5.4 Procedural Design
A procedural design reduces complexity , facilitates change
( a critical aspect of software maintainability ), and results in easier
implementation by encouraging parallel development of differentparts of a system. Software with effective modularity is easier to
develop because function may be compartmentalized and interfaces
are simplified. Software architecture embodies modularity , that is,
software is divided into separately named and addressable
components called modules, which are integrated to satisfy problem
requirements. Modularity is the single attribute of software that
allows a program to be intellectually manageable. Monolithic
software ( i.e., a large program comprised of a single module) cannot
be easily grasped by reader. The seven important criteria that
13
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 14/48
Employee Management System
enable us to evaluate a design method with respect to its ability to
define an effective procedural design are, as described below
5.5 Modular Description
1. Add the employee details
The employee details such as code, name, age,
salary are entered by pressing 1 from the main menu and these
details are saved. The system prompts whether the user wants to
add more records .
2. Display Record
The user can see all the employee details, by
pressing 2 from the main menu.
3. Modify The Employee Details
If the user wants to modify the details of a perticular record, then the user
has to enter the code by pressing 3 from the main menu which represents the
record to be modify . The details are repeated to the user and after changing the
details. After changing the record the employee details are saved.
14
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 15/48
Employee Management System
4. Delete Record
If the user wants to delete the details of an particular
employee, then the user has to enter the ‘code’ of the employeehe/she wish to delete by pressing 4 from the main menu . The details are
displayed to the user and after delete it.
5. Exit
By pressing 5 from the main menu the user can exit from the
software.
5.6 Data flow diagrams
The Data flow diagrams was first developed by Larry
Constantine as a way of expressing system requirements in a
graphical form and this led to modular design.
A data flow diagram , also known as “ Bubble Chart “ has the
purpose of clarifying system requirements and identifying major
transactions that will become programs in system design . A DFD
consists of series of squares joined by lines. The squares represent
the data transformations and the lines represent data flows in thesystem.
DFD Symbols
1. A rectangle defines a source (originator) or designation of
system data.
2. An arrow identifies data flow i.e, data in motion . It is a pipeline through
Which information flows.
3. A circle represents a process that transforms incoming data flows into
Outgoing data flows.
4. An open re0ctangle is a data store , data at rest , or a temporary repository
of data .
15
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 16/48
Employee Management System
CONTEXT LEVEL DFD
Select s Employee
menu
details
Text file
16
Project Report
User
Employee
management
User
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 17/48
Employee Management System
Add The Employee Details
Text file
Code,
Name,
Age ,
Salary,
17
Project Report
Enter
Employe
e details
Saving
Employ
ee
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 18/48
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 19/48
Employee Management System
Modify Employee Details
Text
file
Select
Edit menu Text fileand enter employee
Code
Name
Age
Salary
. Text file
19
Project Report
Storeemploy
ee
Verify
Employ
ee
Retriev
e
Employ
ee
EditEmploye
e Details
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 20/48
Employee Management System
Delete Particular Employee Details
Text file
Select Text filedelete menu
. enter and Code
20
Project Report
Deleteemploy
ee
Verify
emplo
yee
Retriev
e
Employ
ee
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 21/48
Employee Management System
21
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 22/48
Employee Management System
6. IMPLEMENTATION AND TESTING
6.1 IMPLEMENTATION
The final and important phase in the system life cycle is the implementation
of the new system. The term implementation has different meaning , ranging, from the
conventions of the basic application to a complete replacement of the computer system.
The procedure however is virtually the same. Implimentations include all those
activities that take place to convert from old system to new. The new system may betotally new replacing an existing manual or automated system or it may be major
modification to an existing system. The method of implementation and time scale to
be adopted is found out initially. Next the systems are tested properly and at the
same time the users are trained with the new procedure. Proper implementation is
essential to provide a reliable system to meet organizational requirement. Successful
implimention may not guarantee improvement in the organization using the system, but
it will prevent improper installation. The implementation involves the following things
• Careful planning
• Investigations of system constrain
• Design the method to achieve the change over
• Training the staff in the change phase
• Evaluation of change over method
22
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 23/48
Employee Management System
The method of implementation and time scale to be adopted was found out
initially. Next the system is tested properly and at the same time users were trained
in the new procedure to manipulate the system
23
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 24/48
Employee Management System
24
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 25/48
Employee Management System
25
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 26/48
Employee Management System
26
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 27/48
Employee Management System
27
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 28/48
Employee Management System
28
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 29/48
Employee Management System
7.
CONCLUSION
29
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 30/48
Employee Management System
CONCLUSION
This project ‘ EMPLOYEE
MANAGEMENT SYSTEM ‘ deals with the Member addition
process, Edit, delete, search process for employee details. This
project is successful in meeting the goals of this concern, where
the manual system was not at their full satisfaction. By
computerizing the concern, the accuracy of the data recording has
been increased and the speed is also increased.
This system provides precise enlistment of employee’s information.
It records the customer details and give adequate information about
the employee. Data can be retrieved as and when required. It
creates different data and are stored. These files are also used for
further processes
30
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 31/48
Employee Management System
APPENDIX
31
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 32/48
Employee Management System
#include<iostream.h>
#include<fstream.h>
#include<dos.h>
#include<conio.h>
#include<stdlib.h>
#include<stdio.h>
#include<string.h>
#include<iomanip.h>
struct person
{
char flag;
char empcode[5];
char name[40];
int age;
float sal;
}p;
class group
{
public:
fstream f;
group();
void addrec();
32
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 33/48
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 34/48
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 35/48
Employee Management System
break;
case 2:
g.listrec();
break;
case 3:
g.modirec();
break;
case 4:
g.delrec();
break;
case 5:
g.exits();
exit(0);
default:
cout<<"\nPRESS THE SPECIFIED KEYS ONLY";
delay(1500);
break;
}
}
while(choice!=0);
}
void group::group(void)
{
f.open("praveee.dat",ios::binary|ios::in|ios::out);
p.flag=' ';
35
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 36/48
Employee Management System
if(!f)
{
cout<<endl<<"UNABLE TO OPEN FILE:";
exits();
}
}
void group::addrec( )
{
char ch;
f.seekp(0L,ios::end);
do
{
cout<<"\n<<TO RETURN TO THE MAIN MENU PRESS 'm' KEY ELSE PRESS 'a' >>:";
cin>>ch;
if(ch=='m'||ch=='M')
main();
cout<<"\nENTER EMPLOYEE CODE:";
cin>>p.empcode;
cout<<"\nENTER EMPLOYEE NAME:";
cin>>p.name;
cout<<"\nENTER AGE :";
cin>>p.age;
cout<<"\nENTER SALARY:";
cin>>p.sal;
p.flag=' ';
36
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 37/48
Employee Management System
f.write((char*)&p,sizeof(p));
cout<<"\nADD ANOTHER RECORD?(Y/N):";
cin>>ch;
cout<<"\n";
}
while(ch=='y'||ch=='Y');
}
void group::listrec()
{
int j=1,a,c=0;
f.seekg(0L,ios::beg);
cout<<"\n\t\t\tLIST OF PROGRAMS PRESENTS ARE";
cout<<"\n\n\n\n "<<"CODE"<<" "<<" NAME"<<" "<<"AGE"<<"
"<<"SALARY";
cout<<"\n\t ---------------------------------------";
while(f.read((char*)&p,sizeof(p)))
{
cout<<"\n";
if(p.flag!='*')
{
cout<<endl<<"RECORD
NO:"<<j++<<setw(8)<<p.empcode<<setw(14)<<p.name<<setw(9)<<p.age<<setw(12)<<p.s
al;
c++;
}
}
37
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 38/48
Employee Management System
f.clear();
if(c==0)
{
gotoxy(10,10);
cout<<"NO RECORD EXIT";
gotoxy(10,12);
cout<<"\n\nPRESS ANY KEY...";
getch();
}
else
{
cout<<endl<<endl<<"\n\n\n\n\tPRESS ANY KEY...";
getch();
}
}
void group::modirec( )
{
char code[5];
int count=0;
long int pos;
cout<<"ENTER EMPLOYEE CODE WHOSE RECORD IS TO BE MODIFIED :";
cin>>code;
f.seekg(0L,ios::beg);
while(f.read((char*)&p,sizeof(p)))
{
38
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 39/48
Employee Management System
if(strcmp(p.empcode,code)==0)
{
cout<<endl<<"ENTER NEW RECORD";
cout<<endl<<"ENTER EMPLOYEE NAME:";
cin>>p.name;
cout<<endl<<endl<<"ENTER AGE :";
cin>>p.age;
cout<<endl<<endl<<"ENTER SALARY :";
cin>>p.sal;
p.flag=' ';
pos=count*sizeof(p);
f.seekp(pos,ios::beg);
f.write((char*)&p,sizeof(p));
return;
}
count++;
}
cout<<endl<<"NO EMPLOYEE IN FILE WITH CODE="<<code;
cout<<"\n\nPRESS ANY KEY...";
getch();
f.clear();
}
void group::delrec( )
{
char code[5];
39
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 40/48
Employee Management System
long int pos;
int count=0;
cout<<"\nENTER EMPLOYEE CODE TO BE DELETED:";
cin>>code;
f.seekg(0L,ios::beg);
while(f.read((char*)&p,sizeof(p)))
{
if(strcmp(p.empcode,code)==0)
{
p.flag='*';
pos=count*sizeof(p);
f.seekp(pos,ios::beg);
f.write((char*)&p,sizeof(p));
return;
}
count++;
}
cout<<endl<<"NO EMPLOYEE IN FILE WITH CODE="<<code;
cout<<endl<<endl<<"PRESS ANY KEY...";
getch();
f.clear();
}
void group::exits( )
{
f.close();
40
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 41/48
Employee Management System
}
B. SAMPLE SCREEN SHOTS
41
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 42/48
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 43/48
Employee Management System
Add record
43
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 44/48
Employee Management System
List Record
Modify Record
44
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 45/48
Employee Management System
Delete Record
45
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 46/48
Employee Management System
46
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 47/48
Employee Management System
BIBLIOGRAPHY
BIBLIOGRAPHY
47
Project Report
8/6/2019 14482079 Employee Details in Cpp
http://slidepdf.com/reader/full/14482079-employee-details-in-cpp 48/48
Employee Management System
1. Programming in CPP - Robert Lafore
2. Let Us CPP - Yaswanth Kanitkar
3. System Analysis and Design - Alias M
4. The Analysis Design and
Implementation of Information
Systems - Henry C Lucas
5. Software Engineering Concepts - Richard E Fairley
6. Let Us CPP - Yaswanth Kanitkar