Вы находитесь на странице: 1из 71

ACNOWLEDGEMENT

Gratitude cannot be seen or expressed. It can only be felt in heart and is


beyond description. Often words are inadequate to serve as a model of
expression of ones feeling, specially the sense of indebtedness and
gratitude to all those who help us in our duty.
It is of immense pleasure and profound privilege to express my
gratitude and indebtedness along with sincere thanks to r. !n"ar #igir , for
providing me the opportunity to work for a pro"ect on $%mployee
anagement &ystem'
I want to formally acknowledge my sincerest gratitude to all those
who assisted and guided me in completing this pro"ect report and making
my summer training a memorable and successful experience.
I am beholden to my family and friends for their blessings and
encouragement.
(ogesh )ralia

1

Company Profile
SLR software is a leading technology company with the global out reach
specializing in providing top solutions for all category users. Their strong
commitment towards quality has secured us a privileged position in a fast evolving
market, the key advantage being a state of art of product based on cutting edge
technologies.
The company delivers a full service offerings that helps numerous customers
achieve maimum return on their investment through dedicated software eperts,
management tools and product selection consultation on business critical soft
wares, including desktop, storage, security infrastructure and data management.
Company History
SLR InfoTech was founded in 1!!! and is private owned. "ince its first day of
#usiness, "$% &nfoTech has required no financial #anking or assistance the
company has been self sufficient and profitable in all years of operation.
The directors of company are Mr. Mohanbir Singh Chawla and Mr. Harminder
Singh Chawla, who are highly educated and each having ' to ( years of eperience
in this industry. The company mission and culture has reminded constant over the
years.
)
*oal
The goal of "$% &nfoTech is to be responsive to its users and provide them
with software solution to assist them in being more efficient and productive in their
work.
The company plans on continually improving software to help its clients take
advantage new technology.
2.1 The company
+ounded in 1!!!, "$% &nfoTech is headquartered in Chandigarh, &ndia. The
activity is focused on the following ma,or activity aes-
"oftware .evelopment
/etworking consultancy
Pro,ect 0anagement
"oftware 1port
The Company is
Producing, developing and internationally distributing high quality
software products.
Providing integrated solutions for data security and reliable services
in files like software distribution, consultancy and technical support.
Providing solutions in banking, healthcare, insurance and publishing
industry.
2.2 The People
The people are their key strength. They pick and nurture the best to create
an awesome base of epertise and talent. They are a team of young professionals,
enthusiastic and talented people.
"oftware programmers, product managers or technical support people, the
company is committed to provide their clients with high quality products and
flawless technical support. The people working in sales, marketing and
2
administration divisions are all client driven, closely co3operating with the software
developers, therefore making them as an unbeatable team.
2.3 The Capabilities
The reliability of the products, the fleible licensing program and the low
prices show their commitment towards their clients. "$% software strategic
partnership with reputable companies allover the world has created a global
network with ecellent results and outstanding performance in the distribution of
software products.
2.4 The Product
The products are characterized by innovation hip, ease of use and
multiplatform supports. The software developed is supporting the large variety of
operating systems. The systems undertaken by "$% &nfoTech are as under-
.eveloped publishing software for &CCC publications, which involved the
compilation of all the cases of all high court and "upreme Court and
effective search engine utility for finding relevant cases.
.eveloping an in3house 1P% pro,ects for 4" based company, electrical
company radius power. The company is into design, manufacturing and
sales of electrical equipments like "/0P", filters and 10& etc. The 1%P
software being developed cover productions, finance, marketing and sales
5 purchase modules.
.esigned and developed management system for a reputed employment or
organization, 6"" private limited, which specializes in human resource
development.
.eveloped an office 7utomation suite for the various offices of 6ardaan
sales $T., a leading garment manufacturer of north &ndia.
8
.esigned and developed an accounting software package for sporting
$T.. $udhiana.
.eveloped a hospital 0anagement "ystem for a group of hospitals located
in 9alandhar viz. "an,ivani :ospital, /av,eevan :ospital
.esigning and developing an in3house software &00" integrated
manufacturing management system for manufacturing industries
incorporating the following functions-
+inancial 0anagement
&nventory management
"tore and purchase
:uman %esource management
Training Report
3.1 INTRODUCTION to C
.ennis %itchie designed and implemented the first C compiler on a P.P311 ;a
prehistoric machine by today<s standards, yet one which had enormous influence on
modern scientific computation=. The C language was based on two ;now defunct=
languages- #CP$, written by 0artin %ichards, and #, written by >en Thompson in
1!(? for the first 4/&@ system on a P.P3(. The original AAofficial<< C language
was the AA> 5 %<< C, the nickname coming from the names of the two authors of the
original AAThe C Programming $anguage<<. &n 1!BB, the 7merican /ational
"tandards &nstitute ;7/"&= adopted a AAnew and improved<< version of C, known
today as AA7/"& C<<. This is the version described in the current edition of AAThe C
Programming $anguage 33 7/"& C<<. The 7/"& version contains many revisions to
the synta and the internal workings of the language, the ma,or ones being
improved calling synta for procedures and standarization of most ;but,
unfortunately, not quite allC= system libraries.
The code starts with a series of comments indicating its the purpose, as well as its
author. &t is considered good programming style to identify and document your
'
work ;although, sadly, most people only do this as an afterthought=. Comments can
be written anywhere in the code- any characters between D and D are ignored by the
compiler and can be used to make the code easier to understand. The use of
variable names that are meaningful within the contet of the problem is also a good
idea.
The Einclude statements now also include the header file for the standard
mathematics library math.h. This statement is needed to define the calls to the
trigonometric functions atan and sin. /ote also that the compilation must include
the mathematics library eplicitly by typing
gcc sine.c 3lm
2.1.1 .ata Types
6ariable names are arbitrary ;with some compiler3defined maimum length,
typically 2) characters=. C uses the following standard variable types-
int 3F integer variable
short 3F short integer
long 3F long integer
float 3F single precision real ;floating point= variable
double 3F double precision real ;floating point= variable
char 3F character variable ;single byte=
The compilers checks for consistency in the types of all variables used in any code.
This feature is intended to prevent mistakes, in particular in mistyping variable
names. Calculations done in the math library routines are usually done in double
precision arithmetic ;G8 bits on most workstations=. The actual number of bytes
used in the internal storage of these data types depends on the machine being used.
The printf function can be instructed to print integers, floats and strings properly.
The general synta is
printf; HformatH, variables =I
where HformatH specifies the converstion specification and variables is a list of
quantities to print. "ome useful formats are
J.nd integer ;optional n K number of columnsI if ?, pad with zeroes=
Jm.nf float or double ;optional m K number of columns,
n K number of decimal places=
Jns string ;optional n K number of columns=
Jc character
Ln Lt to introduce new line or tab
Lg ring the bell ;AAbeep<<= on the terminal
G
2.1.) $oops
0ost real programs contain some construct that loops within the program,
performing repetitive actions on a stream of data or a region of memory. There are
several ways to loop in C. Two of the most common are the while loop-
while ;epression=
M
...block of statements to eecute...
N
and the for loop-
for ;epressionO1I epressionO)I epressionO2=
M
...block of statements to eecute...
N
The while loop continues to loop until the conditional epression becomes false.
The condition is tested upon entering the loop. 7ny logical construction ;see below
for a list= can be used in this contet.
The for loop is a special case, and is equivalent to the following while loop-
epressionO1I
while ;epressionO)=
M
...block of statements...
epressionO2I
N
+or instance, the following structure is often encountered-
i K initialOiI
while ;i PK iOma=
M
...block of statements...
i K i Q iOincrementI
N
This structure may be rewritten in the easier synta of the for loop as-
for ;i K initialOiI i PK iOmaI i K i Q iOincrement=
M
...block of statements...
N
&nfinite loops are possible ;e.g. for;II==, but not too good for your computer budgetC
C permits you to write an infinite loop, and provides the break statement to
(
AAbreakout << of the loop. +or eample, consider the following ;admittedly not3so3
clean= re3write of the previous loop-
angleOdegree K ?I
for ; I I =
M
...block of statements...
angleOdegree K angleOdegree Q 1?I
if ;angleOdegree KK 2G?= breakI
N
8. "ymbolic Constants
Rou can define constants of any type by using the Edefine compiler directive. &ts
synta is simple33for instance
Edefine 7/*$1O0&/ ?
Edefine 7/*$1O07@ 2G?
would define 7/*$1O0&/ and 7/*$1O07@ to the values ? and 2G?,
respectively. C distinguishes between lowercase and uppercase letters in variable
names. &t is customary to use capital letters in defining global constants.
2.1.2 Conditionals
Conditionals are used within the if and while constructs-
if ;conditionalO1=
M
...block of statements eecuted if conditionalO1 is true...
N
else if ;conditionalO)=
M
...block of statements eecuted if conditionalO) is true...
N
else
M
...block of statements eecuted otherwise...
N
B
and any variant that derives from it, either by omitting branches or by including
nested conditionals.
Conditionals are logical operations involving comparison of quantities ;of the same
type= using the conditional operators-
P smaller than
PK smaller than or equal to
KK equal to
CK not equal to
FK greater than or equal to
F greater than
and the boolean operators
55 and
SS or
C not
7nother conditional use is in the switch construct-
switch ;epression=
M
case constOepressionO1-
M
...block of statements...
breakI
N
case constOepressionO)-
M
...block of statements...
breakI
N
default-
M
...block of statements..
N
N
The appropriate block of statements is eecuted according to the value of the
epression, compared with the constant epressions in the case statement. The
break statements insure that the statements in the cases following the chosen one
will not be eecuted. &f you would want to eecute these statements, then you
would leave out the break statements. This construct is particularly useful in
handling input variables.
2.1.8 Pointers
!
The C language allows the programmer to AApeek and poke<< directly into memory
locations. This gives great fleibility and power to the language, but it also one of
the great hurdles that the beginner must overcome in using the language.
7ll variables in a program reside in memoryI the statements
float I
K G.'I
request that the compiler reserve 8 bytes of memory ;on a 2)3bit computer= for the
floating3point variable , then put the AAvalue<< G.' in it.
"ometimes we want to know where a variable resides in memory. The address
;location in memory= of any variable is obtained by placing the operator AA5<<
before its name. Therefore 5amp is the address of . C allows us to go one stage
further and define a variable, called a pointer, that contains the address of ;i.e.
AApoints to<<= other variables. +or eample-
float I
float pI
K G.'I
p K 5I
defines p to be a pointer to ob,ects of type float, and sets it equal to the address of
-

Pointer use for a variable
The content of the memory location referenced by a pointer is obtained using the AA
<< operator ;this is called dereferencing the pointer=. Thus, p refers to the value of
.
C allows us to perform arithmetic operations using pointers, but beware that the
AAunit<< in pointer arithmetic is the size ;in bytes= of the ob,ect to which the pointer
points. +or eample, if p is a pointer to a variable of type float, then the
epression p Q 1 refers not to the net bit or byte in memory but to the location of
the net float after ;8 bytes away on most workstations=I if were of type double,
then p Q 1 would refer to a location B bytes ;the size of a double=away, and so on.
Tnly if is of type char will p Q 1 actually refer to the net byte in memory.
Thus, in
char pcI
float pI
float I
K G.'I
1?
p K 5I
pc K ;char = pI
;the ;char = in the last line is a AAcast<<, which converts one data type to another=, p
and pc both point to the same location in memory33the address of 33but p Q 1 and
pc Q 1 point to different memory locations.
2.1.8 7rrays
7rrays of any type can be formed in C. The synta is simple-
type nameUdimVI
&n C, arrays starts at position ?. The elements of the array occupy ad,acent
locations in memory. C treats the name of the array as if it were a pointer to the
first element33this is important in understanding how to do arithmetic with arrays.
Thus, if v is an array, v is the same thing as vU?V, ;vQ1= is the same thing as vU1V,
and so on
B. Character 7rrays
7 string constant , such as
H& am a stringH
is an array of characters. &t is represented internally in C by the 7"C&& characters in
the string, i.e., AA&<<, blank, AAa<<, AAm<<,... for the above string, and terminated by the
special null character AAL?<< so programs can find the end of the string.
"tring constants are often used in making the output of code intelligible using printf
I
printf;H:ello, worldLnH=I
printf;HThe value of a is- JfLnH, a=I
"tring constants can be associated with variables. C provides the char type variable,
which can contain one character331 byte33at a time. 7 character string is stored in
an array of character type, one 7"C&& character per location. /ever forget that,
since strings are conventionally terminated by the null character AAL?<<, we require
one etra storage location in the arrayC
&DT to and from files
"imilar statements also eist for handling &DT to and from files. The statements are
Einclude P stdio.hF
11
+&$1 fpI
fp K fopen;name, mode=I
fscanf;fp, Hformat stringH, variable list=I
fprintf;fp, Hformat stringH, variable list=I
fclose;fp =I
The logic here is that the code must
define a local AApointer<< of type +&$1 ;note that the uppercase is necessary here=,
which is defined in P stdio.hF
AAopen<< the file and associate it with the local pointer via fopen
perform the &DT operations using fscanf and fprintf
disconnect the file from the task with fclose
2.1.' +unctions
+unctions are easy to useI they allow complicated programs to be parcelled up into
small blocks, each of which is easier to write, read, and maintain. We have already
encountered the function main and made use of &DT and mathematical routines
from the standard libraries. /ow let<s look at some other library functions, and how
to write and use our own.
Calling a +unction
The call to a function in C simply entails referencing its name with the appropriate
arguments. The C compiler checks for compatibility between the arguments in the
calling sequence and the definition of the function.
$ibrary functions are generally not available to us in source form. 7rgument type
checking is accomplished through the use of header files ;like stdio.h= which
contain all the necessary information. +or eample, as we saw earlier, in order to
use the standard mathematical library you must include math.h via the statement
Einclude P math.hF
at the top of the file containing your code. The most commonly used header files
are
P stdio.hF 3F defining &DT routines
P ctype.hF 3F defining character manipulation routines
P string.hF 3F defining string manipulation routines
P math.hF 3F defining mathematical routines
P stdlib.hF 3F defining number conversion, storage allocation
and similar tasks
P stdarg.hF 3F defining libraries to handle routines with variable
numbers of arguments
1)
P time.hF 3F defining time3manipulation routines
&n addition, the following header files eist-
P assert.hF 3F defining diagnostic routines
P set,mp.hF 3F defining non3local function calls
P signal.hF 3F defining signal handlers
P limits.hF 3F defining constants of the int type
P float.hF 3F defining constants of the float type
7ppendi # in the > 5 % book describes these libraries in great detail.
Writing Rour Twn +unctions
7 function has the following layout-
return3type function3name ; argument3list3if3necessary =
M
...local3declarations...
...statements...
return return3valueI
N
&f return3type is omitted, C defaults to int. The return3value must be of the declared
type.
7 function may simply perform a task without returning any value, in which case it
has the following layout-
void function3name ; argument3list3if3necessary =
M
...local3declarations...
...statements...
N
Command3line arguments
&t is standard practice in 4/&@ for information to be passed from the command line
directly into a program through the use of one or more command3line arguments,
or switches. "witches are typically used to modify the behavior of a program, or to
set the values of some internal parameters. Rou have already encountered several
of these33for eample, the HlsH command lists the files in your current directory, but
when the switch 3l is added, Hls 3lH produces a so3called AAlong<< listing instead.
"imilarly, Hls 3l 3aH produces a long listing, including AAhidden<< files, the command
Htail 3)?H prints out the last )? lines of a file ;instead of the default 1?=, and so on.
Conceptually, switches behave very much like arguments to functions within C,
and they are passed to a C program from the operating system in precisely the same
way as arguments are passed between functions. 4p to now, the main;= statements
in our programs have had nothing between the parentheses. :owever, 4/&@
12
actually makes available to the program ;whether the programmer chooses to use
the information or not= two arguments to main- an array of character strings,
conventionally called argv, and an integer, usually called argc, which specifies the
number of strings in that array. The full statement of the first line of the program is
main;int argc, char argv=
;The synta char argv declares argv to be a pointer to a pointer to a character, that
is, a pointer to a character array ;a character string=33in other words, an array of
character strings. Rou could also write this as char argvUV. .on<t worry too much
about the details of the synta, however33the use of the array will be made clearer
below.=
When you run a program, the array argv contains, in order, all the information on
the command line when you entered the command ;strings are delineated by
whitespace=, including the command itself. The integer argc gives the total number
of strings, and is therefore equal to equal to the number of arguments plus one


18
Project Report
8.1 7bout Pro,ect
This Pro,ect was made using cQQ. This pro,ect is made on employee management.
:ow to write the 1mployee data in the file so that to recollect later is the main
purpose of the pro,ect. &t works on the following functions.
1. Pesonal .etails
). 1ducational .etails
2. 9ob .etails
8. Contact .etails
'. "alary .etails
Personal Details- &t is a function including all the contents required to get the
full information and to manage the data later, like 7dd to add the 1mployee
information, 0odify to modify the data later, .elete to delete the particular
record , "earch to search the particular record , $ist to print all the personal
records of 1mployee in one time in form of list.
Educational Details: &t is the function including all the educational details of
employee regarding to manage the data later like 7dd to add the 1mployee
information, 0odify to modify the data later like if anybody update its
educational details.
Job Details: &t is the function including all the ,ob details of employee and to
manage the data later like 7dd to add more information of ,obs, 0odify to
modify the data later like if anybody gives the wrong entry.
Contact Details: &t is the function including all the contact details of employee
regarding the data later like,if anyone changes his address then we can update
its address in our records.
Salar Details: &t is the function including all the salary details of the
employee. We can modify the salary of the employee.
1'
!"# $%RD&%RE RE'(IRE)E*TS
The system must have the following hardware reuirements!
* +entium I, +rocessors
- -./ 0 of 1!
2 .G0 of 3ard 4isk
5 &erver achine
. 6lient achine
!"+ S,-T&%RE RE'(IRE)E*TS
The system must have the following software reuirements!
* 7urbo 688
1G
"#" $oftware Develo%ment Life&y&le
'EA$()(L(LT* ANAL*$($
9easibility study is done so that an ill:conceived system is recogni;ed
early in definition phase. 4uring system engineering, however, we
concentrate our attention on four primary areas of interest. 7his phase is
really important as before starting with the real work of building the
system it was very important to find out whether the idea thought is
possible or not.
* E&onomi& 'easi+ility! !n evaluation of development cost weighted
against the ultimate income or benefit derived from the developed
system.
- Te&hni&al 'easi+ility! ! study of function, performance and
constraints that may affect the ability to achieve an acceptable
system#
2 O%erational 'easi+ility! ! study about the operational aspects of
the system.
"#"#, ECONOM(C ANAL*$($
!mong the most important information contained in feasibility study is
6ost 0enefit !nalysis and assessment of the economic "ustification for a
computer based system pro"ect. 6ost 0enefit !nalysis delineates costs
1(
for the pro"ect development and weighs them against tangible and
intangible benefits of a system. 6ost 0enefits !nalysis is complicated by
the criteria that vary with the characteristics of the system to be
developed, the relative si;e of the pro"ect and the expected return on
investment desired as part of companys strategic plan. In addition,
many benefits derived from a computer:based system are intangible
<e.g. better design quality through iterative optimi;ation, increased
customer satisfaction through programmable control etc.=!s this is an
in:house pro"ect for the company, to be used for its own convenience
and also it is not that big a pro"ect. &o neither it requires a huge amount
of money nor any costly tools or infrastructure need to be set up for it.
O%erational 'easi+ility
7he pro"ect is operationally feasible. 7his pro"ect is being made for the
convenience of the patients and doctors only. 7his system will greatly
reduce a huge burden of doctors. &o because of the above stated
advantages the users of the system will not be reluctant at all.
"#"#- $*$TEM ANAL*$($
(NT.OD/CT(ON!
&ystem analysis is the process of studying the business processors and
procedures, generally referred to as business systems, to see how they can
operate and whether improvement is needed.
1B
7his may involve examining data movement and storage, machines and
technology used in the system, programs that control the machines, people
providing inputs, doing the processing and receiving the outputs.
(N0E$T(GAT(ON 12A$E
7he investigation phase is also known as the fact:finding stage or the
analysis of the current system. 7his is a detailed study conducted with the
purpose of wanting to fully understand the existing system and to identify
the basic information requirements. ,arious techniques may be used in
fact:finding and all fact obtained must be recorded.
! thorough investigation was done in every effected aspect when
determining whether the purposed system is feasible enough to be
implemented.
(N0E$T(GAT(ON
!s it was essential for us to find out more about the present system, we
used the following methods to gather the information> :
*. O+servation! 3 #ecessary to see the way the system works first hand.
- Do&ument sam%ling! 3 7hese are all the documents that are used in the
system. 7hey are necessary to check all the data
that enters and leaves the system.
1!
2 4uestionnaires! 3 7hese were conducted to get views of the other
employees who are currently employed in the
system.
ANAL*$($ O' T2E (N0E$T(GAT(ON
Strengths of the System
*. No &om%le5 eui%ment> : 7he equipment that is used is very simple
and no special skills have to be mastered to be
able to operate the system. 7herefore no training
is required for the employees.
-. Low &ost> : 7here is little money spent in maintaining the
present system other than buying the necessary
office equipment and the ledgers.
CON$T.A(NT$ AND L(M(TAT(ON$
7he constraints and limitation within a system are the drawbacks that occur
during the implementation of the system. 7hese limitations and constraints
can crop up in almost every system? the most important fact is to find a way
to overcome these problems.
&oftware design is the first of three technical activities @ design, code
generation, and test that are required to build and verify the
)?
software. %ach activity transforms information in manner that
ultimately results in validated computer software.
7he design task produces a data design, an architectural design, an
interface design and component design.
7he design of an information system produces the details that clearly
describe how a system will meet the requirements identified during
system analysis. 7he system design process is not a step by step
adherence of clear procedures and guidelines. Ahen I started
working on system design, I face different types of problems? many
of these are due to constraints imposed by the user or limitations of
hardware and software available. &ome times it was quite difficult to
enumerate that complexity of the problems and solutions thereof
since the variety of likely problems is so great and no solutions are
exactly similar however the following consideration I kept in mind
during design phased.
Design o+6e&tives!3
7he primary ob"ective of the design is to deliver the requirements as
specified in the feasibility report. 7hese are the some of the
ob"ectives, which I kept in mind.
1ra&ti&ality! 7he system is quite stable and can be
operated by the people with average intelligence.
Effi&ien&y! I tried to involve accuracy, timeliness and
comprehensiveness of the system output.
Cost! It is desirable to aim for the system with a
minimum cost sub"ect to the condition that it must
)1
satisfy the entire requirement.
'le5i+ility! I have tried that the system should be
modifiable depending on the changing needs of the
user. &uch modifications should entail extensive
reconstructing or recreation of software. It should
also be portable to different computer systems.
$e&urity! 7his is very important aspect which I
followed in this designing phase and tried to covers
the areas of hardware reliability, fallback
procedures, and physical security of data.
"#"#7 (N(T(AL $T/D* AND 'EA$()(L(T* ANAL*$($
(N(T(AL $T/D*
))
I*TR,D(CTI,*:
7he first step in the &oftware 4evelopment Bife 6ycle <&4B6= is the
preliminary investigation to determine the feasibility of the system.
7he purpose of the preliminary investigation is to evaluate pro"ect
requests. It is not a design study nor does it include the collection of
details to describe the business system in all aspect. 1ather it is the
collection of the information that helps committee members to
evaluate the merits of the pro"ect request and make an informed
"udgment about the feasibility of the proposed pro"ect.
The %reliminary investigation should a&&om%lish the following
o+6e&tives#
,# 6larify and understand the pro"ect request
-.4etermine the si;e of the pro"ect.
2.!ssess costs and benefits of alternative approaches.
5.4etermine the technical and operational feasibility of alternative
approaches
..1eport the findings to management? with recommendations
outlining the acceptance or re"ection of the proposal.
.E4/(.EMENT AND 'EA$()(L(T* ANAL*$($
(NT.OD/CT(ON!
)2
W2AT ($ A 'EA$()(L(T* $T/D*8
+rior to stating whether the system we have to develop is feasible or not we
believe that we should emphasi;e on what is implied by the word
$9easibility'. 9easibility is the measure of how beneficial or practical the
development of the system will be to the organi;ation. It is a preliminary
survey for the systems investigation. It aims to provide information to
facilitate a later in:depth investigation.
7he report produced at the end of the feasibility study contains suggestions
and reasoned arguments to help management decide whether to commit
further resources to the proposed pro"ect.
Aithin the scheduled duration we were assigned to study both the positive
and negative aspects of the current manual system, in which we have
come up with a number of drawbacks that prevent the progress of the clinic
if it is continued to function manually.
3aving gone through all measures of feasibility we report to the
management to figure out if the ob"ectives of the new system are met.
9or e.g. : Is the system within the budget allowed for itC
Aill the organi;ations needs, be met by the new proposed system
as
Originally envisagedC
If and when the ob"ectives of the system are met and the new system is
approved, then the more specific details in the proposal should be
considered and approved.
)8
T*1E$ O' 'EA$()(L(T*
7here are various measures of feasibility that helps to decide whether a
particular pro"ect is feasible or not. 7hese measures include:
* Operational 9easibility
- 7echnical 9easibility
2 %conomical and 9inancial 9easibility
%ach of these types will be explained in detail throughout the pro"ect report.
,PER%TI,*%L -E%SI.ILIT/
! proposed system is beneficial only if it can be turned into an information
system that will meet the operational requirements of an organi;ation. !
system often fails if it does not fit within existing operations and if users
resist the change.
Important issues a systems developer must look into are>
* Aill the new system be used if implemented in an
organi;ationC
- !re there ma"or barriers to implementation or is
proposed system accepted without destructive
resistanceC
7he whole purpose of computeri;ing the 7ender &ystem is to handle the
work much more accurately and efficiently with less time consumption.
7here will be additional work to be completed, because now the contractors
can submit their tenders online. 7heir database is maintained separately.
)'
6ompared to the semi:computeri;ed system the chances of avoiding errors
in a computeri;ed system is much higher because the user need not stress
himself unnecessarily resulting in recklessness. Dnlike the semi:
computeri;ed system there would be backup data for all the information
concerning the daily transactions occurred within the organi;ation.
If we are considering the performance and response time for each task, it is
very much faster since there is less paper work to be completed. Ahen
entering data into the system to relieve the user from additional work and
typing incorrect data, the system provides options such as combo boxes,
check boxes, option buttons and etc. if the users type in incorrect data they
would be informed immediately about the error by the error detection
control.
!nother important fact to be regarded is the security control, which is
handled by the system. &ince data regarding each contractor and the
company is confidential, security is a key issue. Information falling into the
wrong hands could "eopardi;e the entire organi;ation. Dnlike in semi:
computeri;ed systems the proposed system offers adequate control to
protect the organi;ation against fraud and embe;;lement and guarantees
the accuracy and security of data and information. 7his is handled by the
system providing each department and individuals with separate login
names and passwords.
7he new system is more user:friendly, which enables the end:user to
complete hisEher work efficiently and accurately with interest. !fter taking
the above fact into consideration we can state the operating of the
proposed system within the organi;ation is feasible.
In this phase of the feasibility study the following two main topics
)G
* 7echnical +erformance !spect
- !cceptance within the organi;ation
7echnical performance aspect is explained in the technical feasibility report
and there is no new information is needed in this to explain it again, but as
for the acceptance within the organi;ation the following points are important
and those are explained according to the topics
*. Ahether the system provides right information to the right place.
In the current system which is the semi computeri;ed system the
information may be lost in the process of sending from one place to
another. 7his is mainly due to human interaction in the process of the
transferring information from one place to another.
-. Ahether the new system affect the current users in the system
7he new proposed system will affect the users in the following areas
!ccuracy
%fficiency
+roductivity
1obustness
Besser time consuming
2. &kill and attitude
)(
7his system is developed according to the experience of the current
employees and the management structure, so for this system to function
within the current employee community. 7he employees do not need to
have new skills other than the skills which are gained in the current system.
5. Fob restructuring and training
9or the new system to have an effect in the organi;ation the employees
should be give a proper training in operating the software and computer
systems. If the employee does not have the minimal experience should be
given the proper training
If the organi;ation is reluctant to give a full training to the employees who
require the full knowledge organi;ation can restructure the structure of the
departments.
TEC$*IC%L -E%SI.ILIT/
0ased on the outline design of system requirements in terms of inputs,
outputs, files, procedures and staff, the technical issues raised during
technical feasibility include>
* 4oes the necessary technology exist to do what is
proposedC
- 4oes the proposed equipment have the technical
capacity to hold the data required to use in the new
systemC
2 !dequate responses provided by the proposed
)B
systemC
5 Is the system flexible enough to facilitate expansionC
. Is there any technical guarantee of accuracy, reliability,
ease of access and data securityC
7he system developers task is to view needed capabilities in light of
currently available technology. &ince the existing system is semi:
computeri;ed it is clear to us that there is no efficiency in the use of
technology within the organi;ation. 7he solution is the implementing the
new computeri;ed system, which works hand in hand with high technology.
! database has to be maintained in order to update and backup data
whenever a transaction occurs. 7o create databases we use &GB server.
!fter taking the above facts into consideration we can state that the new
proposed system is technically feasible.
$*$TEM $EC/.(T*
&ystem security is a vital aspect when it comes to developing a system.
7he system should ensure the facility of preventing unauthori;ed personnel
from accessing the information and the data within the system. 7he system
should provide total protection for each users information so that the
integrity of data is sustained and also prevent hackers from hacking the
system.

7he proposed system ensures the security and the integrity of data. 7his is
done by providing a password login system for each authori;ed users. !nd
for example the &ystem !dministrator has access to all kinds of
information.

)!
0y providing this facility information is properly managed and information is
protected. 9or example the system administrators day to day tasks are
lessened and easier because he doesnt have to have a constant eye on
the system and worry about hackers hacking the system.
ECONOM(CAL AND '(NANC(AL 'EA$()(L(T*
In making recommendations a study of the economics of the proposed
system should be made. 7he proposed system must be "ustifiable in terms
of cost and benefit, to ensure that the investment in a newEchanged system
provide a reasonable return.
6ost:benefit analysis of information is complicated by the fact that many of
the systems cost elements are poorly defined and that benefit can often be
highly qualitative and sub"ective in nature.
In our proposed system various costs are evaluated. %ven though finding
out the costs of the proposed pro"ect is difficult we and assume and
estimate the costs and benefits as follows.
2?
!ccording to the computeri;ed system we propose, the costs can be
broken down to two categories.
*. 6osts associated with the development of the system.
-. 6osts associated with operating the system.
"#"#" $O'TWA.E .E4/(.EMENT $1EC('(CAT(ON
7he software requirement specification is produced at the
culmination of the analysis task. 7he function and performance
allocated to software as part of system engineering are refined by
establishing a complete information description, a detailed functional
description, a representation of system behavior, an indication of
performance requirement and design constraints appropriate
validation criteria, and other information pertinent to requirement.
7he introduction to software requirements specification states the
goals and ob"ectives of the software, describing it in the context of
the computer based system.
21
7he Information 4escription provides a detailed description of the
problem that the software must solve. Information content, flow and
structure are documented.
! description of each function required to solve the problem is
presented in the 9unctional 4escription.
,alidation 6riteria is probably the most important and ironically the
most often neglected section of the software requirement
specification.
&oftware requirement specification can be used for different
purpose. 3ere are the ma"or uses.
Source Code

XXXXXXXXXXX Pro,ect of 1mployeeXXXXXXXXXXXXXXX

EincludePiostream.hF
EincludePconio.hF
EincludePgraphics.hF
EincludePstdlib.hF
EincludePdos.hF
EincludePstring.hF
EincludePstdio.hF
EincludePfstream.hF
2)
Edefine stopleft )1B
Edefine stophori 1!G
Edefine stopright 1!1
Edefine sbottomleft 1!)
Edefine sbottomhori 1!G
Edefine sbottomright )1(
Edefine sside 1(!
Edefine dtopleft )?1
Edefine dtophori )?'
Edefine dtopright 1B(
Edefine dbottomleft )??
Edefine dbottomhori )?'
Edefine dbottomright 1BB
Edefine dside 1BG
struct PersonO.etails
M
char firstOnameU)?V,lastOnameU)?VI
char dobU)?VI
char martialU1?VI
char seU1?VI
int ageI
NI
struct ContactO.etails
M
char officeOaddressU8?VI
char officeOcityU)?VI
char homeOaddressU8?VI
char homeOcityU)?VI
char stateU)?VI
char mailU2?VI
long int pinI
long int mobileI
long int homeOlandlineI
long int officeOlandlineI
NI
struct 1ducationalO.etails
M
char bachelorOdegreeU)?VI
char masterOdegreeU)?VI
22
char otherOdegreeU)?VI
float bachelorOpercentageI
float masterOpercentageI
NI
struct 9obO.etails
M
int idI
char designationU2?VI
float previousOeperienceI
float currentOeperienceI
float totalOeperienceI
NI
struct "alaryO.etails
M
float basicOsalaryI
float daI
float hraI
float taI
float pfI
float grossOsalaryI
float basicOsalary1I
float da1I
float hra1I
float ta1I
float pf1I
NI
struct 1mployee
M
struct PersonO.etails personI
struct ContactO.etails contactI
struct 1ducationalO.etails educationI
struct 9obO.etails ,obI
struct "alaryO.etails salaryI
NempI
DD
DD Class of 1mployee
DD
class %ecord
M
private -
1mployee empI
28
public -
void getdata;=I
void writeOtoOfile;=I
void showOdata;=I
void readOrecord;=I
void showOrecord;=I
void searchOrecord;=I
void editOrecord;=I
void file1rror;=I
void Personal;=I
void 1ducation;=I
void Contact;=I
void 9ob;=I
void "alary;=I
void 1ditOrecord;=I
void deleteOrecord;=I
void recordOnotOfound;=I
NI
void .raw%ect;int,int,int,int=I
void ..raw%ect;int,int,int,int=I
void mainOmenu;=
M
clrscr;=I
..raw%ect;18,8,GB,)?=I
.raw%ect;1G,',G8,(=I
gotoy;1B,G=I
coutPPHPPPPPPPP 07&/ 01/4 FFFFFFFFHI
gotoy;1B,B=I
coutPPH-3 Choice -3HI
gotoy;8G,B=I
coutPPH-3 7ction -3HI
gotoy;)?,1?=I
coutPPH1 -3HI
gotoy;8G,1?=I
coutPPHTo 7dd 7 /ew %ecordHI
2'
gotoy;)?,11=I
coutPPH) -3HI
gotoy;8G,11=I
coutPPHTo "how 7ll %ecordsHI
gotoy;)?,1)=I
coutPPH2 -3HI
gotoy;8G,1)=I
coutPPHTo "earch The %ecordsHI
gotoy;)?,12=I
coutPPH8 -3HI
gotoy;8G,12=I
coutPPHTo 1dit The %ecordsHI
gotoy;)?,18=I
coutPPH' -3HI
gotoy;8G,18=I
coutPPHTo .elete The %ecordsHI
gotoy;)?,1'=I
coutPPH? -3HI
gotoy;8G,1'=I
coutPPH+or 1itHI
gotoy;)',1B=I
coutPPH1nter Rour Choice -HI
N
void %ecord -- recordOnotOfound;=
M
clrscr;=I
gotoy;1G,)2=I
coutPPH/o %ecord +ound CCCCCHI
gotoy;1G,)'=I
coutPPHPress any key to continue CCCCCHI
getch;=I
2G
N
void %ecord -- getdata;=
M
clrscr;=I

DDXXXXXXXXXXXXXXXXXXXX 1nter Personal .etails XXXXXXXXXXXXXXXXXXX

gotoy;2,'=I
coutPPH-3 1nter Personal .etails of 1mployee -3HI
gotoy;1?,(=I
coutPPH1nter +irst /ame of employee -HI
gotoy;1?,B=I
coutPPH1nter last /ame of employee -HI
gotoy;1?,!=I
coutPPH1nter .ate of #irth ;ddDmmDyyyy= -HI
gotoy;1?,1?=I
coutPPH1nter 7ge -HI
gotoy;1?,11=I
coutPPH1nter 0artial "tatus ;0arriedD4nmarried= -HI
gotoy;1?,1)=I
coutPPH1nter se -HI

DD XXXXXXXXXXXXXXX 1nter Contact .etails XXXXXXXXXXXXXXXXXXX
gotoy;2,18=I
coutPPH-3 1nter Contact .etails of 1mployee -3HI
gotoy;1?,1G=I
coutPPH1nter :ome 7ddress -HI
gotoy;1?,1(=I
coutPPH1nter :ome City -HI
gotoy;1?,1B=I
coutPPH1nter "tate -HI
gotoy;1?,1!=I
2(
coutPPH1nter Pincode -HI
gotoy;1?,)?=I
coutPPH1nter Phone /o. ;:ome= -HI
gotoy;1?,)1=I
coutPPH1nter Phone /o. ;Tffice= -HI
gotoy;1?,))=I
coutPPH1nter 0obile /o. -HI
gotoy;1?,)2=I
coutPPH1nter 130ail &. -HI
DD XXXXXXXXXXXXXXXXXXXXX &nput XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
gotoy;'B,(=I
fflush;stdin=I
gets;emp.person.firstOname=I
gotoy;'B,B=I
fflush;stdin=I
gets;emp.person.lastOname=I
gotoy;'B,!=I
fflush;stdin=I
gets;emp.person.dob=I
gotoy;'B,1?=I
cinFFemp.person.ageI
gotoy;'B,11=I
fflush;stdin=I
gets;emp.person.martial=I
gotoy;'B,1)=I
fflush;stdin=I
gets;emp.person.se=I
gotoy;'B,1G=I
fflush;stdin=I
gets;emp.contact.homeOaddress=I
2B
gotoy;'B,1(=I
fflush;stdin=I
gets;emp.contact.homeOcity=I
gotoy;'B,1B=I
fflush;stdin=I
gets;emp.contact.state=I
gotoy;'B,1!=I
cinFFemp.contact.pinI
gotoy;'B,)?=I
cinFFemp.contact.homeOlandlineI
gotoy;'B,)1=I
cinFFemp.contact.officeOlandlineI
gotoy;'B,))=I
cinFFemp.contact.mobileI
gotoy;'B,)2=I
fflush;stdin=I
gets;emp.contact.mail=I
clrscr;=I

DDXXXXXXXXXXXXXXXXX 1nter 1ducational .etails
XXXXXXXXXXXXXXXXXXXXXXXXXXXXX

gotoy;2,'=I
coutPPH-3 1nter 1ducational .etails -3HI
gotoy;1?,(=I
coutPPH1nter #achelor .egree -HI
gotoy;1?,B=I
coutPPH1nter #achelor Percentage -HI
gotoy;1?,!=I
coutPPH1nter 0aster .egree -HI
gotoy;1?,1?=I
2!
coutPPH1nter 0aster Percentage -HI
gotoy;1?,11=I
coutPPH1nter other qualification -HI

DDXXXXXXXXXXXXXXXXXXXXX 1nter 9ob .etails XXXXXXXXXXXXXXXXXXXX

gotoy;2,18=I
coutPPH-3 1nter ,ob .etails -3HI
gotoy;1?,1G=I
coutPPH1nter &d -HI
gotoy;1?,1(=I
coutPPH1nter .esignation -HI
gotoy;1?,1B=I
coutPPH1nter Previous 1perience -HI
gotoy;1?,1!=I
coutPPH1nter Current 1perience -HI
gotoy;1?,)?=I
coutPPHTotal 1perience -HI
DDXXXXXXXXXXXXXXXXX &nput XXXXXXXXXXXXXXXXX
gotoy;'?,(=I
fflush;stdin=I
gets;emp.education.bachelorOdegree=I
gotoy;'?,B=I
cinFFemp.education.bachelorOpercentageI
gotoy;'?,!=I
fflush;stdin=I
gets;emp.education.masterOdegree=I
gotoy;'?,1?=I
fflush;stdin=I
cinFFemp.education.masterOpercentageI
gotoy;'?,11=I
fflush;stdin=I
gets;emp.education.otherOdegree=I
8?
gotoy;'?,1G=I
cinFFemp.,ob.idI
gotoy;'?,1(=I
fflush;stdin=I
gets;emp.,ob.designation=I
gotoy;'?,1B=I
cinFFemp.,ob.previousOeperienceI
gotoy;'?,1!=I
cinFFemp.,ob.currentOeperienceI
emp.,ob.totalOeperience K ;float=;emp.,ob.previousOeperience Q
emp.,ob.currentOeperience=I
gotoy;'?,)?=I
coutPPemp.,ob.totalOeperienceI
getch;=I
clrscr;=I

DDXXXXXXXXXXXXXXXX 1nter "alary .etails XXXXXXXXXXXXXXXXXXXX
gotoy;2,'=I
coutPPH-3 1nter "alary .etails -3HI
gotoy;1?,(=I
coutPPH1nter #asic salary -HI
gotoy;1?,B=I
coutPPH1nter .aily 7llowance;Jc of salary= -HI
gotoy;1?,!=I
coutPPH1nter :ouse %ent 7llowance;Jc of salary= -HI
gotoy;1?,1?=I
coutPPH1nter Travel 7llowance;Jc of salary= -HI
gotoy;1?,11=I
coutPPH1nter Provident +und;Jc of salary= -HI
81
gotoy;1?,1)=I
coutPPH*ross "alary -HI
gotoy;'),(=I
cinFFemp.salary.basicOsalaryI
gotoy;'),B=I
cinFFemp.salary.daI
emp.salary.da1 K ;float=;emp.salary.basicOsalary emp.salary.da= D 1??I
gotoy;'(,B=I
coutPPH3FHPPemp.salary.da1I
gotoy;'),!=I
cinFFemp.salary.hraI
emp.salary.hra1 K ;float=;emp.salary.basicOsalary emp.salary.hra= D 1??I
gotoy;'(,!=I
coutPPH3FHPPemp.salary.hra1I
gotoy;'),1?=I
cinFFemp.salary.taI
emp.salary.ta1 K ;float=;emp.salary.basicOsalary emp.salary.ta= D 1??I
gotoy;'(,1?=I
coutPPH3FHPPemp.salary.ta1I
gotoy;'),11=I
cinFFemp.salary.pfI
emp.salary.pf1 K ;float=;emp.salary.basicOsalary emp.salary.pf= D 1??I
gotoy;'(,11=I
coutPPH3FHPPemp.salary.pf1I
emp.salary.grossOsalary K ;float=;emp.salary.basicOsalary Q emp.salary.da1
Q emp.salary.hra1 Q emp.salary.ta1 3 emp.salary.pf1=I
gotoy;'),1)=I
coutPPemp.salary.grossOsalaryI
getch;=I
N
8)
DD XXXXXXXXXXXXXXXXX WriteOToOfile XXXXXXXXXXXXXXXXXXXXXXXXXX
void %ecord -- writeOtoOfile;=
M
getdata;=I
fstream fileI
file.open;H1mployee.datH,ios--out S ios--binary S ios--app=I
if;file KK /4$$=
M
file1rror;=I
returnI
N
file.write;;char =5emp, sizeof;emp==I
file.close;=I
getch;=I
N
DDXXXXXXXXXXXXXXXXX"howO%ecord XXXXXXXXXXXXXXXXXXX
void %ecord -- readOrecord;=
M
clrscr;=I
DD XXXXXXXXXXXXXXXXXX"how Personal .etails XXXXXXXXXXXXXXXXXXX
gotoy;2,'=I
coutPPH-3 Personal .etails of 1mployee -3HI
gotoy;1?,(=I
coutPPH+irst /ame of employee -HPPemp.person.firstOnameI
gotoy;1?,B=I
coutPPHlast /ame of employee
-HPPemp.person.lastOnameI
gotoy;1?,!=I
coutPPH.ate of #irth ;ddDmmDyyyy= -HPPemp.person.dobI
gotoy;1?,1?=I
coutPPH7ge -HPPemp.person.ageI
gotoy;1?,11=I
82
coutPPH0artial "tatus ;0arriedD4nmarried= -HPPemp.person.martialI
gotoy;1?,1)=I
coutPPH"e -HPPemp.person.seI
DD XXXXXXXXXXXXXXXXXX"how Contact .etails XXXXXXXXXXXXXXXX
gotoy;2,18=I
coutPPH-3 Contact .etails of 1mployee -3HI
gotoy;1?,1G=I
coutPPH:ome 7ddress
-HPPemp.contact.homeOaddressI
gotoy;1?,1(=I
coutPPH:ome City -HPPemp.contact.homeOcityI
gotoy;1?,1B=I
coutPPH"tate -HPPemp.contact.stateI
gotoy;1?,1!=I
coutPPHPincode -HPPemp.contact.pinI
gotoy;1?,)?=I
coutPPHPhone /o. ;:ome=
-HPPemp.contact.homeOlandlineI
gotoy;1?,)1=I
coutPPHPhone /o. ;Tffice=
-HPPemp.contact.officeOlandlineI
gotoy;1?,))=I
coutPPH0obile /o. -HPPemp.contact.mobileI
gotoy;1?,)2=I
coutPPH130ail &. -HPPemp.contact.mailI
getch;=I
clrscr;=I
DD XXXXXXXXXXXXXXXX"how 1ducational .etails XXXXXXXXXXXXXXXXXXXXXX
gotoy;2,'=I
88
coutPPH-3 1ducational .etails -3HI
gotoy;1?,(=I
coutPPH#achelor .egree
-HPPemp.education.bachelorOdegreeI
gotoy;1?,B=I
coutPPH#achelor Percentage -HPPemp.education.bachelorOpercentageI
gotoy;1?,!=I
coutPPH0aster .egree
-HPPemp.education.masterOdegreeI
gotoy;1?,1?=I
coutPPH0aster Percentage
-HPPemp.education.masterOpercentageI
gotoy;1?,11=I
coutPPHTther qualification -HPPemp.education.otherOdegreeI
DD XXXXXXXXXXXXXXXXXXXXX "how 9ob .etails XXXXXXXXXXXXXXXXXXX
gotoy;2,18=I
coutPPH-3 9ob .etails -3HI
gotoy;1?,1G=I
coutPPH&d -HPPemp.,ob.idI
gotoy;1?,1(=I
coutPPH.esignation -HPPemp.,ob.designationI
gotoy;1?,1B=I
coutPPHPreious 1perience -HPPemp.,ob.previousOeperienceI
gotoy;1?,1!=I
coutPPHCurrent 1perience -HPPemp.,ob.currentOeperienceI
gotoy;1?,)?=I
coutPPHTotal 1perience -HPPemp.,ob.totalOeperienceI
getch;=I
clrscr;=I
DD XXXXXXXXXXXXXXXX "how "alary .etailsXXXXXXXXXXXXXXXXX

gotoy;2,'=I
8'
coutPPH-3 "alary .etails -3HI
gotoy;1?,(=I
coutPPH#asic salary -HPPemp.salary.basicOsalaryI
gotoy;1?,B=I
coutPPH.aily 7llowance;Jc of salary= -HPPemp.salary.da1I
gotoy;1?,!=I
coutPPH:ouse %ent 7llowance;Jc of salary= -HPPemp.salary.hra1I
gotoy;1?,1?=I
coutPPHTravel 7llowance;Jc of salary= -HPPemp.salary.ta1I
gotoy;1?,11=I
coutPPHProvident +und;Jc of salary= -HPPemp.salary.pf1I
gotoy;1?,1)=I
coutPPH*ross "alary -HPPemp.salary.grossOsalaryI
getch;=I
clrscr;=I
N
DD XXXXXXXXXXXXXXXXXXXX "how %ecord XXXXXXXXXXXXXXXXXX
void %ecord -- showOrecord;=
M
int sizeKsizeof;emp=I
fstream fileI
file.open;H1mployee.datH,ios--in S ios--binary=I
file.seekg;?=I
if;file KK /4$$=
M
file1rror;=I
returnI
N
else
M
file.read;;char =5emp, size=I
while;Cfile.eof;==
M
8G
readOrecord;=I
file.read;;char =5emp, size=I
N
file.close;=I
N
N
DD XXXXXXXXXXXXXXXXXXXXXX "earch 0enu XXXXXXXXXXXXXXXXXXXXXXXXX
void %ecord -- searchOrecord;=
M
int chI
char anotherK<y<I
char nameU)?V,name1U)?VI
fstream fileI
int size K sizeof;emp=I
int eidI
float salI
do
M
clrscr;=I
anotherK<y<I
..raw%ect;18,8,GB,)?=I
.raw%ect;1G,',G8,(=I
gotoy;1B,G=I
coutPPHPPPPPPPP "17%C: 01/4 FFFFFFFFHI
gotoy;1B,B=I
coutPPH-3 Choice -3HI
gotoy;8G,B=I
coutPPH-3 7ction -3HI
gotoy;)?,1?=I
coutPPH1 -3HI
gotoy;8G,1?=I
coutPPH"earch by +irst /ameHI
gotoy;)?,11=I
coutPPH) -3HI
8(
gotoy;8G,11=I
coutPPH"earch by last /ameHI
gotoy;)?,1)=I
coutPPH2 -3HI
gotoy;8G,1)=I
coutPPH"earch by 1mployee &.HI
gotoy;)?,12=I
coutPPH8 -3HI
gotoy;8G,12=I
coutPPH"earch by "alaryHI
gotoy;)?,18=I
coutPPH? -3HI
gotoy;8G,18=I
coutPPH+or *o 0ain 0enuHI
gotoy;)',1B=I
coutPPH1nter Rour Choice -HI
fflush;stdin=I
cinFFchI
clrscr;=I
switch;ch=
M
case 1-
M
file.open;H1mployee.datH,ios--in S
ios--binary=I
file.seekg;?=I
while;another KK <y<=
M
gotoy;)?,18=I
coutPPH1nter the first name of
1mployee -HI
fflush;stdin=I
gets;name=I
while;Cfile.eof;==
M
file.read;;char =5emp, size=I
8B
if;strcmp;emp.person.firstOname,name=KK?=
M
clrscr;=I
readOrecord;=I
file.read;;char =5emp,
size=I
N DD1nd &f statement
N DDend "econd While loop
clrscr;=I
gotoy;)',1?=I
coutPPHPress R for anotherHI
gotoy;)',18=I
coutPPHPress any key to go "earch
0enu HI
gotoy;)',1B=I
coutPPHChoice -HI
cinFFanotherI
clrscr;=I
N DD1nd first while loop
file.close;=I
breakI
N DD1nd Case 1
case )-
M
file.open;H1mployee.datH,ios--in S
ios--binary=I
file.seekg;?=I
while;another KK <y<=
M
gotoy;)?,18=I
coutPPH1nter the $ast name of
1mployee -HI
fflush;stdin=I
gets;name1=I
while;Cfile.eof;==
M
file.read;;char =5emp, size=I
if;strcmp;emp.person.lastOname,name1=KK?=
M
clrscr;=I
readOrecord;=I
8!
file.read;;char =5emp,
size=I
N DD1nd if "tatement
N DD 1nd "econd while loop
clrscr;=I
gotoy;)',1?=I
coutPPHPress R for anotherHI
gotoy;)',18=I
coutPPHPress any key to go "earch
0enu HI
gotoy;)',1B=I
coutPPHChoice -HI
cinFFanotherI
clrscr;=I
N DD1nd +irst while loop
file.close;=I
breakI
N DD1nd Case )
case 2-
M
int flagI
file.open;H1mployee.datH,ios--in S
ios--binary=I
while;another KK <y<=
M
flag K ?I
file.seekg;?=I
gotoy;)?,18=I
coutPPH1nter 1mployee &d you want
to "earch -HI
cinFFeidI
file.read;;char =5emp, size=I
while;Cfile.eof;==
M
if;emp.,ob.id KK eid=
M
clrscr;=I
readOrecord;=I
flag K 1I
breakI
N DD1nd &f statement
file.read;;char =5emp, size=I
'?
N DD 1nd second While lop
if;flag KK ?=
M
recordOnotOfound;=I
N
clrscr;=I
gotoy;)',1?=I
coutPPHPress R for anotherHI
gotoy;)',18=I
coutPPHPress any key to go "earch
0enu HI
gotoy;)',1B=I
coutPPHChoice -HI
cinFFanotherI
clrscr;=I
N DD1nd first while loop
file.close;=I
breakI
N DD1nd Case 2
case 8-
M
file.open;H1mployee.datH,ios--in S
ios--binary=I
file.seekg;?=I
while;another KK <y<=
M
gotoy;)?,18=I
coutPPH1nter 1mployee *ross "alary
you want to "earch -HI
cinFFsalI
while;Cfile.eof;==
M
file.read;;char =5emp, size=I
if;salFKemp.salary.grossOsalary=
M
clrscr;=I
readOrecord;=I
file.read;;char =5emp, size=I
N DD1nd &f statement
N DD1nd "econd while loop
clrscr;=I
'1
gotoy;)',1?=I
coutPPHPress R for anotherHI
gotoy;)',18=I
coutPPHPress any key to go "earch
0enu HI
gotoy;)',1B=I
coutPPHChoice -HI
cinFFanotherI
clrscr;=I
N DD1nd first while loop
file.close;=I
breakI
N DD1nd Case 8
case ?-
M
breakI
N DD1nd Case ?
default-
clrscr;=I
gotoy;)',1'=I
coutPPHPPPPP Wrong ChoiceFFFFFHI
getch;=I
N DD1nd "witch
Nwhile;ch CK ?=I
N DD1nd
DD XXXXXXXXXXXXXXXXXX1dit Tnly Personal .etails Tf 1mployee
XXXXXXXXXXXXXXXXX
void %ecord -- Personal;=
M
clrscr;=I
gotoy;2,'=I
coutPPH-3 1nter Personal .etails of 1mployee -3HI
gotoy;1?,(=I
coutPPH1nter +irst /ame of employee -HI
gotoy;1?,B=I
coutPPH1nter last /ame of employee -HI
')
gotoy;1?,!=I
coutPPH1nter .ate of #irth ;ddDmmDyyyy= -HI
gotoy;1?,1?=I
coutPPH1nter 7ge -HI
gotoy;1?,11=I
coutPPH1nter 0artial "tatus ;0arriedD4nmarried= -HI
gotoy;1?,1)=I
coutPPH1nter se -HI
gotoy;'B,(=I
fflush;stdin=I
gets;emp.person.firstOname=I
gotoy;'B,B=I
fflush;stdin=I
gets;emp.person.lastOname=I
gotoy;'B,!=I
fflush;stdin=I
gets;emp.person.dob=I
gotoy;'B,1?=I
cinFFemp.person.ageI
gotoy;'B,11=I
fflush;stdin=I
gets;emp.person.martial=I
gotoy;'B,1)=I
fflush;stdin=I
gets;emp.person.se=I
N
DD XXXXXXXXXXXXXXXXXXX1dit Tnly 1ducation .etails Tf 1mployee
XXXXXXXXXXXXXXXXX
void %ecord -- 1ducation;=
M
clrscr;=I
gotoy;2,'=I
'2
coutPPH-3 1nter 1ducational .etails -3HI
gotoy;1?,(=I
coutPPH1nter #achelor .egree -HI
gotoy;1?,B=I
coutPPH1nter #achelor Percentage -HI
gotoy;1?,!=I
coutPPH1nter 0aster .egree -HI
gotoy;1?,1?=I
coutPPH1nter 0aster Percentage -HI
gotoy;1?,11=I
coutPPH1nter other qualification -HI
gotoy;'?,(=I
fflush;stdin=I
gets;emp.education.bachelorOdegree=I
gotoy;'?,B=I
cinFFemp.education.bachelorOpercentageI
gotoy;'?,!=I
fflush;stdin=I
gets;emp.education.masterOdegree=I
gotoy;'?,1?=I
fflush;stdin=I
cinFFemp.education.masterOpercentageI
gotoy;'?,11=I
fflush;stdin=I
gets;emp.education.otherOdegree=I
N
DD XXXXXXXXXXXXXXXX 1dit Tnly Contact .etails Tf 1mployee
XXXXXXXXXXXXXXXXXXX
void %ecord -- Contact;=
M
'8
clrscr;=I
gotoy;2,18=I
coutPPH-3 1nter Contact .etails of 1mployee -3HI
gotoy;1?,1G=I
coutPPH1nter :ome 7ddress -HI
gotoy;1?,1(=I
coutPPH1nter :ome City -HI
gotoy;1?,1B=I
coutPPH1nter "tate -HI
gotoy;1?,1!=I
coutPPH1nter Pincode -HI
gotoy;1?,)?=I
coutPPH1nter Phone /o. ;:ome= -HI
gotoy;1?,)1=I
coutPPH1nter Phone /o. ;Tffice= -HI
gotoy;1?,))=I
coutPPH1nter 0obile /o. -HI
gotoy;1?,)2=I
coutPPH1nter 130ail &. -HI
gotoy;'B,1G=I
fflush;stdin=I
gets;emp.contact.homeOaddress=I
gotoy;'B,1(=I
fflush;stdin=I
gets;emp.contact.homeOcity=I
gotoy;'B,1B=I
fflush;stdin=I
gets;emp.contact.state=I
gotoy;'B,1!=I
cinFFemp.contact.pinI
gotoy;'B,)?=I
''
cinFFemp.contact.homeOlandlineI
gotoy;'B,)1=I
cinFFemp.contact.officeOlandlineI
gotoy;'B,))=I
cinFFemp.contact.mobileI
gotoy;'B,)2=I
fflush;stdin=I
gets;emp.contact.mail=I
N
DDXXXXXXXXXXXXXXX1dit Tnly 9ob .etails Tf 1mployee XXXXXXXXXXXXXXX
void %ecord -- 9ob;=
M
clrscr;=I
gotoy;2,18=I
coutPPH-3 1nter ,ob .etails -3HI
gotoy;1?,1G=I
coutPPH1nter &d -HI
gotoy;1?,1(=I
coutPPH1nter .esignation -HI
gotoy;1?,1B=I
coutPPH1nter Previous 1perience -HI
gotoy;1?,1!=I
coutPPH1nter Current 1perience -HI
gotoy;1?,)?=I
coutPPHTotal 1perience -HI
gotoy;'?,1G=I
cinFFemp.,ob.idI
gotoy;'?,1(=I
fflush;stdin=I
gets;emp.,ob.designation=I
'G
gotoy;'?,1B=I
cinFFemp.,ob.previousOeperienceI
gotoy;'?,1!=I
cinFFemp.,ob.currentOeperienceI
emp.,ob.totalOeperience K ;float=;emp.,ob.previousOeperience Q
emp.,ob.currentOeperience=I
gotoy;'?,)?=I
coutPPemp.,ob.totalOeperienceI
getch;=I
N
DD XXXXXXXXXXXXXX 1dit Tnly "alary .etails Tf 1mployee XXXXXXXXXXXXXXX
void %ecord -- "alary;=
M
gotoy;2,'=I
coutPPH-3 1nter "alary .etails -3HI
gotoy;1?,(=I
coutPPH1nter #asic salary -HI
gotoy;1?,B=I
coutPPH1nter .aily 7llowance;Jc of salary= -HI
gotoy;1?,!=I
coutPPH1nter :ouse %ent 7llowance;Jc of salary= -HI
gotoy;1?,1?=I
coutPPH1nter Travel 7llowance;Jc of salary= -HI
gotoy;1?,11=I
coutPPH1nter Provident +und;Jc of salary= -HI
gotoy;1?,1)=I
coutPPH1nter *ross "alary -HI
gotoy;'),(=I
cinFFemp.salary.basicOsalaryI
'(
gotoy;'),B=I
cinFFemp.salary.daI
emp.salary.da1 K ;float=;emp.salary.basicOsalary emp.salary.da= D 1??I
gotoy;'(,B=I
coutPPH3FHPPemp.salary.da1I
gotoy;'),!=I
cinFFemp.salary.hraI
emp.salary.hra1 K ;float=;emp.salary.basicOsalary emp.salary.hra= D 1??I
gotoy;'(,!=I
coutPPH3FHPPemp.salary.hra1I
gotoy;'),1?=I
cinFFemp.salary.taI
emp.salary.ta1 K ;float=;emp.salary.basicOsalary emp.salary.ta= D 1??I
gotoy;'(,1?=I
coutPPH3FHPPemp.salary.ta1I
gotoy;'),11=I
cinFFemp.salary.pfI
emp.salary.pf1 K ;float=;emp.salary.basicOsalary emp.salary.pf= D 1??I
gotoy;'(,11=I
coutPPH3FHPPemp.salary.pf1I
emp.salary.grossOsalary K ;float=;emp.salary.basicOsalary Q emp.salary.da1
Q emp.salary.hra1 Q emp.salary.ta1 3 emp.salary.pf1=I
gotoy;'),1)=I
coutPPemp.salary.grossOsalaryI
N
DDXXXXXXXXXXXXXXX1dit 0enu XXXXXXXXXXXXXXX
void %ecord -- 1ditOrecord;=
M
int ch1I
int edidI
char anotherK<y<I
int size K sizeof;emp=I
fstream fileI
'B
do
M
clrscr;=I
anotherK<y<I
..raw%ect;18,8,(?,)?=I
.raw%ect;1G,',G',(=I
gotoy;1B,G=I
coutPPHPPPPPPPP 1.&T 01/4 FFFFFFFFHI
gotoy;1B,B=I
coutPPH-3 Choice -3HI
gotoy;8G,B=I
coutPPH-3 7ction -3HI
gotoy;)?,1?=I
coutPPH1 -3HI
gotoy;8G,1?=I
coutPPH1dit Personal .etailsHI
gotoy;)?,11=I
coutPPH) -3HI
gotoy;8G,11=I
coutPPH1dit Contact .etailsHI
gotoy;)?,1)=I
coutPPH2 -3HI
gotoy;8G,1)=I
coutPPH1dit 9ob .etailsHI
gotoy;)?,12=I
coutPPH8 -3HI
gotoy;8G,12=I
coutPPH1dit 1ducational .etailsHI
gotoy;)?,18=I
coutPPH' -3HI
'!
gotoy;8G,18=I
coutPPH1dit "alary .etailsHI
gotoy;)?,1'=I
coutPPH? -3HI
gotoy;8G,1'=I
coutPPH*o To 0ain 0enuHI
gotoy;)',1B=I
coutPPH1nter Rour Choice -HI
fflush;stdin=I
cinFFch1I
clrscr;=I
switch;ch1=
M
case 1-
M
long int editOlocationK?I
file.open;H1mployee.datH,ios--app S ios--binary S
ios--in=I
while;another KK <y< =
M
file.seekg;?=I
gotoy;)?,18=I
coutPPH1nter 1mployee &d you want to
"earch -HI
cinFFedidI
file.read;;char =5emp, size=I
while;Cfile.eof;==
M
if;emp.,ob.id KK edid=
M
editOlocation K file.tellg;=I
clrscr;=I
coutPPH%ecord has been found
at location - HPP;editOlocation3size=I
getch;=I
readOrecord;=I
clrscr;=I
Personal;=I
file.seekp;?=I
G?
file.seekg;;editOlocation3
size=,ios--beg=I
file.seekp;;editOlocation3
size=,ios--beg=I
file.write;;char =5emp,size=I
breakI
N DD1nd &f statement
else
M
file.read;;char =5emp, size=I
N
N DD 1nd second While loop
clrscr;=I
gotoy;)',1?=I
coutPPHPress R for anotherHI
gotoy;)',18=I
coutPPHPress any key for go to 1dit 0enuHI
gotoy;)',1B=I
coutPPHChoice -HI
cinFFanotherI
clrscr;=I
N DD 1nd +irst While loop
file.close;=I
breakI
N DD 1nd Case 1
case )-
M
file.open;H1mployee.datH,ios--app S ios--binary S
ios--in=I
file.seekg;?=I
while;another KK <y< =
M
gotoy;)?,18=I
coutPPH1nter 1mployee &d you want to
"earch -HI
cinFFedidI
while;Cfile.eof;==
M
file.read;;char =5emp, size=I
if;emp.,ob.id KK edid=
M
clrscr;=I
Contact;=I
G1
N DD 1nd &f statement
N DD 1nd second While loop
file.write;;char =5emp, size=I
clrscr;=I
gotoy;)',1?=I
coutPPHPress R for anotherHI
gotoy;)',18=I
coutPPHPress any key for go to 1dit 0enuHI
gotoy;)',1B=I
coutPPHChoice -HI
cinFFanotherI
clrscr;=I
N DD1nd first While loop
file.close;=I
breakI
N DD 1nd Case )
case 2-
M
file.open;H1mployee.datH,ios--app S ios--binary S
ios--in=I
file.seekg;?=I
while;another KK <y< =
M
gotoy;)?,18=I
coutPPH1nter 1mployee &d you want to
"earch -HI
cinFFedidI
while;Cfile.eof;==
M
file.read;;char =5emp, size=I
if;emp.,ob.id KK edid=
M
clrscr;=I
9ob;=I
N DD1nd if statement
N DD1nd "econd While loop
file.write;;char =5emp, size=I
clrscr;=I
gotoy;)',1?=I
coutPPHPress R for anotherHI
gotoy;)',18=I
coutPPHPress any key for go to 1dit 0enuHI
gotoy;)',1B=I
coutPPHChoice -HI
G)
cinFFanotherI
clrscr;=I
N DD1nd +irst while loop
file.close;=I
breakI
N DD 1nd Case 2
case 8-
M
file.open;H1mployee.datH,ios--app S ios--binary S
ios--in=I
file.seekg;?=I
while;another KK <y< =
M
gotoy;)?,18=I
coutPPH1nter 1mployee &d you want to
"earch -HI
cinFFedidI
while;Cfile.eof;==
M
file.read;;char =5emp, size=I
if;emp.,ob.id KK edid=
M
clrscr;=I
1ducation;=I
N DD1nd if "tatement
N DD 1nd second while $oop
file.write;;char =5emp, size=I
clrscr;=I
gotoy;)',1?=I
coutPPHPress R for anotherHI
gotoy;)',18=I
coutPPHPress any key for go to 1dit 0enuHI
gotoy;)',1B=I
coutPPHChoice -HI
cinFFanotherI
clrscr;=I
N DD1nd +irst While loop
file.close;=I
breakI
NDD1nd Case 8
case '-
M
G2
file.open;H1mployee.datH,ios--app S ios--binary S
ios--in=I
file.seekg;?=I
while;another KK <y< =
M
gotoy;)?,18=I
coutPPH1nter 1mployee &d you want to
"earch -HI
cinFFedidI
while;Cfile.eof;==
M
file.read;;char =5emp, size=I
if;emp.,ob.id KK edid=
M
clrscr;=I
"alary;=I
N DD1nd &f "tatement
N DD 1nd second While loop
file.write;;char =5emp, size=I
clrscr;=I
gotoy;)',1?=I
coutPPHPress R for anotherHI
gotoy;)',18=I
coutPPHPress any key for go to 1dit 0enuHI
gotoy;)',1B=I
coutPPHChoice -HI
cinFFanotherI
clrscr;=I
N DD1nd +irst While $oop
file.close;=I
breakI
N DD1nd Case '
case ?-
M
breakI
N DD 1nd Case ?
default -
clrscr;=I
gotoy;)',1'=I
coutPPHPPPPP Wrong ChoiceFFFFFHI
getch;=I
G8
N DD1nd "witch Case
Nwhile;ch1CK?=I DD1nd .o While loop
N DD 1nd
DD XXXXXXXXXXXXXXX.elete %ecordXXXXXXXXXXXXXXX
void %ecord -- deleteOrecord;=
M
fstream file,file1I
int eidI
int size K sizeof;emp=I
clrscr;=I
file.open;H1mployee.datH,ios -- in S ios -- binary=I
file1.open;H1mp.datH,ios -- app S ios -- binary=I
gotoy;)',1?=I
coutPPH1nter the id you want to delete -HI
cinFFeidI
while;Cfile.eof;==
M
file.read;;char =5emp, size=I
if;emp.,ob.id KK eid=
M
continueI
N
else
M
file1.write;;char =5emp,size=I
N
N
file.close;=I
file1.close;=I
remove;H1mployee.datH=I
rename;H1mp.datH,H1mployee.datH=I
clrscr;=I
N
DD XXXXXXXXXXXXXXX+ile 1rror XXXXXXXXXXXXXXX
G'
void %ecord -- file1rror;=
M
clrscr;=I
gotoy;)',2?=I
printf;H+ile can<t be opened CCCCCCCH=I
gotoy;)(,2?=I
printf;HPress any key to return .........H=I
getch;=I
N
DD XXXXXXXXXXXXXXX .raw %ectangle XXXXXXXXXXXXXXX
void .raw%ect;int 1, int y1, int ), int y)=
M
int o1 K 1, oy1 K y1, o) K ), oy) K y)I
gotoy;1QQ,y1=I
putchar;stopleft=I
for;I 1 P )I 1QQ=
M
gotoy;1,y1=I
putchar;stophori=I
N
gotoy;),y1=I
putchar;stopright=I
1 K o1, y1 K oy1, ) K o), y) K oy)I
gotoy;1QQ,y)=I
putchar;sbottomleft=I
for;I 1 P )I 1QQ=
M
gotoy;1,y)=I
putchar;stophori=I
N
gotoy;),y)=I
putchar;sbottomright=I
1 K o1, y1 K oy1 Q 1, ) K o), y) K oy)I
for;I y1 P y)I y1QQ=
M
gotoy;1,y1=I
putchar;sside=I
N
1 K o1, y1 K QQoy1, ) K o), y) K oy)I
for;I y1 P y)I y1QQ=
M
GG
gotoy;),y1=I
putchar;sside=I
N
N
void ..raw%ect;int 1, int y1, int ), int y)=
M
int o1 K 1, oy1 K y1, o) K ), oy) K y)I
gotoy;1QQ,y1=I
putchar;dtopleft=I
for;I 1 P )I 1QQ=
M
gotoy;1,y1=I
putchar;dtophori=I
N
gotoy;),y1=I
putchar;dtopright=I
1 K o1, y1 K oy1, ) K o), y) K oy)I
gotoy;1QQ,y)=I
putchar;dbottomleft=I
for;I 1 P )I 1QQ=
M
gotoy;1,y)=I
putchar;dtophori=I
N
gotoy;),y)=I
putchar;dbottomright=I
1 K o1, y1 K oy1 Q 1, ) K o), y) K oy)I
for;I y1 P y)I y1QQ=
M
gotoy;1,y1=I
putchar;dside=I
N
1 K o1, y1 K QQoy1, ) K o), y) K oy)I
for;I y1 P y)I y1QQ=
M
gotoy;),y1=I
putchar;dside=I
N
N
DD XXXXXXXXXXXXXXX +ront Page XXXXXXXXXXXXXXX
void .raw$ine;int 1, int y1, int len=
G(
M
for ;I 1PlenI 1QQ=
M
gotoy;1,y1=I coutPPH3HI
N
N
void +ront;=
M
clrscr;=I
gotoy;)B,'=I coutPPH1mployee 0anagement "ystemHI
.raw$ine;1',G,GG=I
gotoy;1',(=I coutPPHPurpose - 0anages 1mployee informationHI
gotoy;1',B=I coutPPH.eveloped #y - 0anish >umar ;chandigarh=HI
.raw$ine;1',!,GG=I
gotoy;)B,1)=I coutPPHPress any key to continue...HI
getch;=I
N
DDXXXXXXXXXXXXXXX 0ain XXXXXXXXXXXXXXX
void main;=
M
%ecord rI
clrscr;=I
+ront;=I
int choiceI
doM
mainOmenu;=I
char anotherK<y<I
cinFFchoiceI
switch;choice=
M
case 1-
M
while;anotherKK<y<=
M
r.writeOtoOfile;=I
clrscr;=I
gotoy;)',1?=I
coutPPHPress R for anotherHI
gotoy;)',18=I
GB
coutPPHPress / for eitHI
gotoy;)',1B=I
coutPPHChoice -HI
cinFFanotherI
N DD1nd While $oop
breakI
N DD1nd Case 1
case )-
M
r.showOrecord;=I
breakI
N DD1nd Case )
case 2-
M
r.searchOrecord;=I
breakI
N DD1nd Case 2
case 8-
M
r.1ditOrecord;=I
breakI
N DD1nd Case 8
case '-
M
r.deleteOrecord;=I
breakI
N DD1nd Case '
case ?-
M
breakI
N DD1nd Case ?
default-
clrscr;=I
gotoy;)',1'=I
coutPPHPPPPP Wrong ChoiceFFFFFHI
getch;=I
N DD1nd "witch case
G!
Nwhile;choiceCK?=I DD1nd do while loop
N DD1nd main
(?
.I.LI,0R%P$/:
WWW.W&>&P1.&7.CT0
$et us CQQ #R 3R7":W7/T
>7/&T>7%
"R"T10 7/7$R"&" 7/. .1"&*/ #R3 1$&7" 0.
7W7.
.7&$R .7&%R
(1

Вам также может понравиться