Documente Academic
Documente Profesional
Documente Cultură
UNIVERSITY
JALANDHAR
CSE
TERMPAPER
PRESENTED BY:
RAHUL KUMAR SINGH
RB1902 A13
ACKNOWLEDGEMENT
Lastly, We are thankful to all those, particularly the various friends , who have
been instrumental in creating proper, healthy and conductive environment
and including new and fresh innovative ideas for us during the project, their
help, it would have been extremely difficult for us to prepare the project in a
time bound framework.
TABLE OF CONTENTS
1. Introduction
2. Requirement Analysis
3. System Design
4. Source code
5. Future scope of project
INTRODUCTION
In the existing system, most of the records are maintained on paper. It becomes
very inconvenient to modify the data. In the existing system, here is a possibility
that the same data in different registers may have different values which means
the entries of the same data do not match. This inconsistent state does not
supply the concrete information which poses a problem in the case information
related to particular search record.
Our project is very useful. User is no longer required to check his register in
search of records, as now it can be searched over the software by choosing some
options. The user need not to type in most of the information. He/she is just
required to enter the desired options. On the whole it liberates the user from
keeping lengthy manual records. In a nutshell, it abates the work load of an
organization.
REQUIREMENT ANALYSIS
char lname[20];
char sub_taken[20];
char last_edu[20];
char join_date[20];
int id;
int age;
float bsal;
}Employee;//Structure Variable
{
int id, check;
char another,choice;
Employee emp;
char fname[20];
char lname[20];
if(fp==NULL)
while(1)
scanf("%c",&choice);
{
case'1':
another='Y';
while(another=='Y'|| another=='y')
scanf("%s %d
%f",emp.fname,&emp.age,&emp.bsal);
scanf("%s %d %s
%s",emp.join_date,&emp.id,emp.last_edu,
emp.sub_taken);
fwrite(&emp,recsize,1,fp);//writes to a stream
fflush(stdin);
another=getchar();
break;
case '2':
another='Y';
while(another=='Y'|| another=='y')
scanf("%d",&id);
ft=fopen("TEMP.DAT","wb");//another file is
opened
rewind(fp);//Reposition file pointers to stream’s
beginning
while(fread(&emp,recsize,1,fp)==1)
if(emp.id!=id)
fwrite(&emp,recsize,1,ft);//Contents are
added if the file does not have that data
rename("TEMP.DAT","EMP.DAT");//renames the
file
fp=fopen("EMP.DAT","rb+");
fflush(stdin);
another=getchar();
break;
case '3':
another='Y';
while(another=='Y'|| another=='y')
scanf("%s",emp.fname);
rewind(fp);
while(fread(&emp,recsize,1,fp)==1)
{
if(emp.id!=id)
scanf("%s%s%d%f%s%s
%s",emp.fname,emp.lname,&emp.age,&emp.bsal,emp.join_date,emp.sub_taken,
emp.last_edu);
fseek(fp,-recsize,SEEK_CUR);
fwrite(&emp,recsize,1,fp);
break;
fflush(stdin);
another=getchar();//taking Input
break;
case '4':
rewind(fp);
while(fread(&emp,recsize,1,fp)==1)
printf("%s %s %d
%g",emp.fname,emp.lname,emp.age,emp.bsal,emp.join_date,emp.last_edu,emp
.sub_taken);
break;
case '5':
fclose(fp);//File is closed
return 0;
Our project will be able to implement in future after making some changes and
modifications as we make our project at a very low level. So the modifications
that can be done in our project are:-
This project can be implement only at small bank branches. It cannot be used for
large scale bank purposes.