EmpINFO Report
EmpINFO Report
TOPIC
Introduction
PAGE No.
Purpose
Technology Used
2.
Feasiblity Study
Economical
Operational
Technical
Behaviral
3.
C++
4.
11
File Handling
5.
Methodology
12
6.
Tools
14
7.
Designs
16
Input
Output
8.
17
9.
Snapshots
20
10.
C++ code
28
11.
Conclusion
32
12..
Future Scope
34
1. INTRODUCTION
A).
B).
C++ Language
Back End:
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.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.
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.
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
b) Back end
File mode
parameter
Meaning
ios::app
ios::ate
ios::binary
ios::in
ios::out
ios::nocreate
ios::noreplace
ios::trunc
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()
tellp()
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 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++
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.
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.
14
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
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;
:- "<<jyr;
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";
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++
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
32