0% found this document useful (0 votes)
68 views

EmpINFO Report

The document discusses the technologies and methodology used in an employee information system project. It includes: 1. An introduction describing the purpose of the project to provide employee information and allow HR to add, delete, and update employee data. C++ and file handling are used for the front-end and back-end technologies. 2. A feasibility study covering the economic, operational, technical, and behavioral feasibility of the project. 3. Descriptions of the front-end C++ language used and back-end file handling for data storage. 4. The document then outlines the methodology, tools, designs, software development life cycle, screenshots, code samples, and conclusions of the project.

Uploaded by

lalit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views

EmpINFO Report

The document discusses the technologies and methodology used in an employee information system project. It includes: 1. An introduction describing the purpose of the project to provide employee information and allow HR to add, delete, and update employee data. C++ and file handling are used for the front-end and back-end technologies. 2. A feasibility study covering the economic, operational, technical, and behavioral feasibility of the project. 3. Descriptions of the front-end C++ language used and back-end file handling for data storage. 4. The document then outlines the methodology, tools, designs, software development life cycle, screenshots, code samples, and conclusions of the project.

Uploaded by

lalit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 32

S. No.

TOPIC

Introduction

PAGE No.

Purpose
Technology Used
2.

Feasiblity Study

Economical
Operational
Technical
Behaviral
3.

Front End Technology

C++
4.

Back End technology

11

File Handling
5.

Methodology

12

6.

Tools

14

7.

Designs

16

Input
Output

8.

Software development life Cycle

17

9.

Snapshots

20

10.

C++ code

28

11.

Conclusion

32

12..

Future Scope

34

1. INTRODUCTION
A).

Purpose :-The purpose of this application are as follows:


This project EmployeeINFO. is an System Application which gives the
all information of employee.It only Handle By HR. He can also add ,Delete Update
the info of employee.

B).

Technology Used:Front End:

C++ Language

Back End:

File Handling for Storage.

2). FEASIBILITY STUDY:After the analysis of the requirement from the proposed system an outlining broad
specification of the proposed system, a feasibility study is conducted. Since H/W and S/W
cost of developing and implementing a major information system can mount to small
fortune, preliminary study of project is extremely important.
The feasibility study includes the investigation of the information needs of the objectives,
constraints, basic resource requirement and cost of the proposed system. This can be
evaluated in terms of following categories: Economic feasibility
Operational feasibility
Technical feasibility
Behavioral feasibility

2.1 ECONOMICAL FEASIBILITY:-

The computerization of project will certainly result in economic gains to the


organization as compared to the cost incurred in the computerization process. The web
college is providing community and simple process for students and no extra expertise
should be hired. Thus the development and implementation of the proposed system would
be returned within a short time span. Economic feasibility is another factor that is to be
considered in the any software development process. This is related to the cost for
developing the software. Software Implementation Process. Software implementation
requires an investment for setting up the hardware as well as for developing the needed
software. Also, it involve the cost roe owning licensed software, cost for training and for
operating the system. The system can be considered to be economically feasible.

2.2 OPERATIONAL FEASIBILITY:The working of the project intends to keep in step within the advantages of information
technologies and is aware of the computerized system and is willing to computerize the
managing so as to provide quick and reliable service to their members.
Operational feasibility is related to the operational aspect of Even if the software is
feasible in all other respects and found to implementation. System become operational not
feasible due to several reason such as lack of skill of the operators, bad and cryptic user
interface, regional difficulties in the use of language etc.

2.3 TECHNICAL FEASIBILITY:Technical feasibility is concerned with the technology associated with the software
project. Technology is continuously changing. With the change in technology, design and
use of hardware is also changing. During the early days of computer development,
punched cards as use as means of feeding data to computer systems. Use of floppy disks
for a data transfer was very common once.

2.4 BEHAVIORAL FEASIBILITY:4

This analysis aims at determining whether the proposed system will support the
organization strategic plans. All the above-mentioned tests were conducted and the project
was seen to have satisfactorily passed all the tests. Thus, the project is feasible to the
organization
Activities in organization are controlled by relevant laws and rules framed for this
purpose. Legal feasibility is another factor that is to be considered in the implementation of
software projects.

3) TECHNOLOGIES:a) Front End

Intro to the C++ Language


A C++ program is a collection of commands, which tell the computer to
do "something". This collection of commands is usually called C++
source code, source code or just code. Commands are either
"functions" or "keywords". Keywords are a basic building block of the
language, while functions are, in fact, usually written in terms of simpler
functions--you'll see this in our very first program, below. (Confused?
Think of it a bit like an outline for a book; the outline might show every
chapter in the book; each chapter might have its own outline, composed
of sections. Each section might have its own outline, or it might have all
of the details written up.) Thankfully, C++ provides a great many
common
functions
and
keywords
that
you
can
use.
But how does a program actually start? Every program in C++ has one
function, always named main, that is always called when your program
first executes. From main, you can also call other functions whether they
are written by us or, as mentioned earlier, provided by the compiler.
So how do you get access to those prewritten functions? To access those
standard functions that comes with the compiler, you include a header
with the #include directive. What this does is effectively take everything
in the header and paste it into your program. Let's look at a working
program:
1 #include <iostream.h>
2
3 int main()
4 {
5

5
6 cout<<"Hello World!\n";
7 cin.get();
8 }
9
Let's look at the elements of the program. The #include is a
"preprocessor" directive that tells the compiler to put code from the
header called iostream into our program before actually creating the
executable. By including header files, you gain access to many different
functions. For example, the cout function requires iostream. Following
the include is the statement, "using namespace std;". This line tells the
compiler to use a group of functions that are part of the standard library
(std). By including this line at the top of a file, you allow the program to
use functions such as cout. The semicolon is part of the syntax of C++.
It tells the compiler that you're at the end of a command. You will see
later that the semicolon is used to end most commands in C++.
The next important line is int main(). This line tells the compiler that
there is a function named main, and that the function returns an
integer, hence int. The "curly braces" ({ and }) signal the beginning and
end of functions and other code blocks. You can think of them as
meaning BEGIN and END.

The next line of the program may seem strange. If you have
programmed in another language, you might expect that print would be
the function used to display text. In C++, however, the cout object is
used to display text (pronounced "C out"). It uses the << symbols,
known as "insertion operators", to indicate what to output. cout<<
results in a function call with the ensuing text as an argument to the
function. The quotes tell the compiler that you want to output the literal
string as-is. The '\n' sequence is actually treated as a single character
that stands for a newline (we'll talk about this later in more detail). It
moves the cursor on your screen to the next line. Again, notice the
semicolon: it is added onto the end of most lines, such as function calls,
in
C++.
The next command is cin.get(). This is another function call: it reads in
input and expects the user to hit the return key. Many compiler
environments will open a new console window, run the program, and
then close the window. This command keeps that window from closing
because the program is not done yet because it waits for you to hit
enter. Including that line gives you time to see the program run.
Upon reaching the end of main, the closing brace, our program will
return the value of 0 (and integer, hence why we told main to return an
6

int) to the operating system. This return value is important as it can be


used to tell the OS whether our program succeeded or not. A return
value of 0 means success and is returned automatically (but only for
main, other functions require you to manually return a value), but if we
wanted to return something else, such as 1, we would have to do it with
a return statement:

b) Back end

DATA FILE HANDLING IN C++


File. The information / data stored under a specific name on a storage device,
is called a file.

Stream. It refers to a sequence of bytes.


Text file. It is a file that stores information in ASCII characters. In text
files, each line of text is terminated with a special character known as
EOL (End of Line) character or delimiter character. When this EOL
character is read or written, certain internal translations take place.
Binary file. It is a file that contains information in the same format as it
is held in memory. In binary files, no delimiters are used for a line and
no translations occur here.
Classes for file stream operation
ofstream: Stream class to write on files
ifstream: Stream class to read from files
fstream: Stream class to both read and write from/to files.
Opening a file
OPENING FILE USING CONSTRUCTOR
ofstream outFile("sample.txt"); //output only
ifstream inFile(sample.txt); //input only
OPENING FILE USING open()
Stream-object.open(filename, mode)
ofstream outFile;
outFile.open("sample.txt");
ifstream inFile;
inFile.open("sample.txt");

File mode
parameter

Meaning

ios::app

Append to end of file

ios::ate

go to end of file on opening

ios::binary

file open in binary mode

ios::in

open file for reading only

ios::out

open file for writing only

ios::nocreate

open fails if the file does not exist

ios::noreplace

open fails if the file already exist

ios::trunc

delete the contents of the file if it exist

All these flags can be combined using the bitwise operator OR (|). For
example, if we want to open the file example.bin in binary mode to add
data we could do it by the following call to member function open():
fstream file;
file.open ("example.bin", ios::out | ios::app | ios::binary);
Closing File
outFile.close();
inFile.close();
INPUT AND OUTPUT OPERATION
put() and get() function
the function put() writes a single character to the associated stream.
Similarly, the function get() reads a single character form the associated
stream.
example :
file.get(ch);
file.put(ch);
write() and read() function
write() and read() functions write and read blocks of binary data.
example:
file.read((char *)&obj, sizeof(obj));
file.write((char *)&obj, sizeof(obj));
ERROR HANDLING FUNCTION
FUN
CTI RETURN VALUE AND MEANING
ON
eof()

returns true (non zero) if end of file is encountered while


reading; otherwise return false(zero)

fail() return true when an input or output operation has failed


bad( returns true if an invalid operation is attempted or any
)
unrecoverable error has occurred.
good
returns true if no error has occurred.
()
9

File Pointers And Their Manipulation


All i/o streams objects have, at least, one internal stream pointer:
ifstream, like istream, has a pointer known as the get pointer that points
to the element to be read in the next input operation.
ofstream, like ostream, has a pointer known as the put pointer that
points to the location where the next element has to be written.
Finally, fstream, inherits both, the get and the put pointers, from
iostream (which is itself derived from both istream and ostream).
These internal stream pointers that point to the reading or writing
locations within a stream can be manipulated using the following
member functions:
seekg()

moves get pointer(input) to a specified location

seekp() moves put pointer (output) to a specified location


tellg()

gives the current position of the get pointer

tellp()

gives the current position of the put pointer


The other prototype for these functions is:

seekg(offset, refposition );
seekp(offset, refposition );
The parameter offset represents the number of bytes the file pointer is
to be moved from the location specified by the parameter refposition.
The refposition takes one of the following three constants defined in the
ios class.
ios::beg start of the file
ios::cur current position of the pointer
ios::end end of the file
example:
file.seekg(-10, ios::cur);

10

4) Methodology:In developing our project execution model, adhere to the international standards like
CMMI-SW, Rational Unified Process and ISO 9001:2000 to make the project flow easy
and transparent for the client. Every project has its 5 stages, which are:
1. Inception
2. Requirements Management
3. Software Solution Development
4. Product Integration
5. Quality Assurance

Inception:This is when the initial requirements collection takes place our business analysts and
software architects will carefully study your requirements to prepare a comprehensive
proposal. You dont have to provide us with structured documentation. Just let us know
your thoughts and expectations, and our specialists will work on defining all the details by
asking you some questions and offering our ideas on your project. The proposal is free for
you and has no obligations.

Requirements Management:At this stage we will clearly describe your requirements in project documentation. Our
specialists will prepare a proposal describing the product's performance, technologies,
design, features, verification requirements, etc. as well as the estimation of workload and
cost of the project.
The requirements management allows for the activities for obtaining and controlling
requirement changes and ensuring that other relevant plans and data are kept current.
Requirements management continues all through the project, culminating in the
comparison of the product against the requirements.

11

5) TOOLS USED:-

HARDWARE AND SOFTWARE REQUIREMENTS

Hardware Requirements
Intel Pentium I MHz or above.
A 256 MB RAM.
A 10 GB of free Hard disk space for compact install.
Microprocessor Pentium III 900 MHz Processor.
104 Keys Enhanced Keyboard.
2 Button Scroll Mouse.
14 or more Color Monitor

Software Requirements
Operating System
: Windows,9X/ME/ P/NT/Vista/Win7.
Programming language :
C++

ANALYSIS OF THE PROPOSED SYSTEM


The proposed computer-based application is a EmployeeINFO., which is
specifically designed for the quick view employee information of book.
Having established what the objectives of the proposed system are, the system was
designed so as to solve daily file work and information. In designing this system, the
system was specified in detail.
The proposed system however has the following features:

12

It provides updating of data with the ability to modify records in the system..

It obtains greater speed and accuracy in handling data and generating reports.

6) DESIGNS

INPUT DESIGN
This form is computer-based and designed using the manual form as a prototype.

The system has several input forms which include: Employee

Name
Date of birth
Joining year
Department
Salary

OUTPUT DESIGN
The output design is the design of the form on which our desired output is
displayed; that has to do with the actual interface.
The system provides several reports to answer different queries and these reports
are: View Post
Name
Date of birth
Joining year
Department
13

Salary
Experience
Gross salary
OBJECTIVE:
The project is intended to provide a better understanding and friendly environment for HR
to maintain all records.
SALIENT FEATURES:
1) User Friendly :-Provides a Simple user interface that can be easily navigated to
process information
2) Compatible to all windows based system.
3) Easy to understand the working and flow of information.
4) Facility to view User Log, detailed info, Book info, and Posted Book.
5) Provides about information about employee who id has mentioned, many more
features.

7 ) SYSTEM DEVELOPMENT LIFE CYCLE


The most basic phases in system development process are:
1) Analysis: In this phase, analysis of various fields such as requirement,
existing system, available options etc is made to know better about what is
to be done and how it can be done.
2) Design: In this phase a design of the system to be developed is made
depending upon the results of the analysis made in the previous phase.
3) Coding:In this phase the actual implementation of the project is made.
System design developed in previous phase is coded to obtain desired system.
4) Testing: In this phase the coded system is tested to check whether it meets
the requirements for which it has been developed.

14

SYSTEM DEVELOPMENT LIFE CYCLE


Analysis

Testing

Design

Coding

PROCESS MODEL:The Water Fall Model:The Waterfall model offers a means of making the development
process more visible.This model is used when one or more of the following criteria are
met:
1. When the detailed requirements are known and are very stable.
2. When the type of application has been developed before.
3. When the type of software class (e.g., compilers or operating systems) has been
demonstrated to be appropriate.
4. When the project has a low risk in such areas as getting the wrong interface or not
meeting stringent performance requirements.
5. When the project has a high risk in budget and schedule predictability and control.
The principle stages of the process are as under

15

16

Snapshots of Application:a) Welcome

17

b) Insert a entry

18

c) Display

d) Search

19

By id

e) Search by name

20

f) Delete

21

22

9) C++ CODE:#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<string.h>
#include<fstream.h>
#include<process.h>

class emp
{
int id,sal;
int jyr;
char name[20],depa[10],dob[20];
public:

int get_id()
{
return id;
}
int get_sal()

23

{
return sal;
}
char* get_name()
{
return name;
}

void input(int i)
{
id=i;
cout<<"Emp id is "<<id;
cout<<"\nEnter Employee Name

:- ";

cin>>name;
cout<<"\nEnter Employee Salary

:- ";

cin>>sal;
cout<<"\nEnter Employee DEpartment

:- ";

cin>>depa;
cout<<"\nEnter Employee date of birth :- ";
cin>>dob;
cout<<"\nEnter Employee joining year :- ";
cin>>jyr;
}
void display()
{
cout<<"\nEmployee Id
cout<<"\nEmployee name

24

:- "<<id;
:- "<<name;

cout<<"\nEmployee Salary:-

:- "<<sal;

cout<<"\nEmployee Departmrnt is
cout<<"\ndob is

:- "<<depa;

:- "<<dob;

cout<<"\nEmployee joining year is

:- "<<jyr;

cout<<"\nEmploeee total work experience :- "<<(2015-jyr)<<" yrs";


}
};

void main()
{
ofstream fout;
ifstream fin;

int n;
emp e;
int no=100;
cout<<"########### Welcome in JSW RAjWEST power PLANT
###########\n\n";
cout<<" ######### India's largest electricity provider
########\n\n";
cout<<"##############Emp Management
System#########\n\n";
while(1)
{
clrscr();
cout<<"\n1.Insert";
cout<<"\n2.Display";
cout<<"\n3.Search";

25

cout<<"\n4.Delete";
cout<<"\n5.Exit";

cout<<"\n\nEnter Your Choice.....";


cin>>n;
switch(n)
{
case 1:
no++;
e.input(no);
fstream fio("a1",ios::app | ios::binary);
fio.write( (char*)&e,sizeof(e));
cout<<"\n\nRecord Inserted Successfully";
fio.close();
getch();
break;

case 2:
fin.open("a1",ios::binary);
if(!fin)
cout<<"\nNo Record";
else
{
while(!fin.eof())
{
fin.read( (char*)&e,sizeof(e));
if(!fin.eof())

26

{
e.display();
getch();
}
}
}
fin.close();
break;
case 3:
int flag=0;
fin.open("a1",ios::binary);
if(!fin)
cout<<"\nERROR: No Records";
else
{
clrscr();
cout<<"\n1.Search By Id";
cout<<"\n2.Search By Name";
cout<<"\n3.Search By Salary";
cout<<"\n\n Enter Your Choice.....";
cin>>n;
switch(n)
{
case 1:
cout<<"\nEnter Id:-";
cin>>n;
while(!fin.eof())

27

{
fin.read( (char*)&e,sizeof(e));
if(n==e.get_id())
{
cout<<"\nRecord Found\n\n";
e.display();
getch();
flag=1;
break;
}
}
if(flag==0)
cout<<"\nRecord Not Found";
break;
case 3:
cout<<"\nEnter Salary:-";
cin>>n;
while(!fin.eof())
{
fin.read( (char*)&e,sizeof(e));
if(n==e.get_sal())
{
cout<<"\nRecord Found\n\n";
e.display();
getch();
flag=1;
break;

28

}
}
if(flag==0)
cout<<"\nRecord Not Found";
break;
case 2:
char myname[20],*ename;
cout<<"\nEnter Name:-";
cin>>myname;
while(!fin.eof())
{
fin.read( (char*)&e,sizeof(e));
ename=e.get_name();
if(strcmp(myname,ename)==0)
{
cout<<"\nRecord Found\n\n";
e.display();
getch();
flag=1;
break;
}
}
if(flag==0)
cout<<"\nRecord Not Found";
break;

29

getch();
}
fin.close();
break;
case 4:
fin.open("a1",ios::binary);
fout.open("temp",ios::binary);
cout<<"\nEnter Employee Which You Want to Delete:-";
cin>>n;
while(!fin.eof())
{
fin.read( (char*)&e,sizeof(e));
if(!fin.eof())
if(n!=e.get_id())
fout.write( (char*)&e,sizeof(e));
}
remove("a1");
rename("temp","a1");
fin.close();
fout.close();
break;

case 5:
exit(0);
}
}

30

13. CONCLUSION:It has been a great pleasure for me to work on this exciting and challenging project.
This project proved good for me as it provided practical knowledge of not only
programming in C++

but also about all handling procedure related with

EmployeeINFO. This application software has been computed successfully and was
also tested successfully by taking test cases. It is user friendly, and has required options,
which can be utilized by the user to perform the desired operations.
The software is developed using C++ as front end and File Handling for storage as
back end in Windows environment. The goals that are achieved by the software are:
Instant access.
Improved productivity.
Optimum utilization of resources.
Efficient management of records.
Simplification of the operations.
Less processing time and getting required information..
Portable and flexible for further enhancement.

31

11). FUTURE SCOPE OF THE PROJECT


The entire things in this world are never prefect. All have some limitations in
themselves. Like the things this project also has some limitations like interface, is
not user friendly and can further be enhances by someone, because there are
certain drawbacks that do not permit the system to be 100% accurate.
We will send notification of book through emails and messages.

32

You might also like