Krishna Gupta Himanshu Chavan: Suman Educational Trust's Dilkap Research Institute of Engineering and Management Studies
Krishna Gupta Himanshu Chavan: Suman Educational Trust's Dilkap Research Institute of Engineering and Management Studies
A PROJECT REPORT ON
KRISHNA GUPTA
HIMANSHU CHAVAN
Page | 1
DATA STRUCTURE LAB Report
CERTIFICATE
THIS IS TO CERTIFY THAT
1.KRISHNA GUPTA(10)
2.HIMANSHU CHAVAN(07)
Page | 2
DATA STRUCTURE LAB Report
ACKNOWLEDGEMENT
We would like to express our gratitude and appreciation to all those who
gave us the possibility to complete this project and this report. I and my
team thank our head of department Prof. Ankush Pawar for giving us the
necsesorry environment to acquire knowledge and skill. A special thanks
to Ms. Arti Orchani Mam, whose help, stimulating suggestions and
encouragement, helped us to coordinate our project especially in writing
this report.
Page | 3
DATA STRUCTURE LAB Report
CONTENTS
Page | 4
DATA STRUCTURE LAB Report
CHAPTER 1
1.1 INTRODUCTION :
Page | 5
DATA STRUCTURE LAB Report
CHAPTER 2
2.1 DESCRIPTION:
The project is create to collect data of employee, this
project contains certain function that needs to be
incorporated in the system design. So, for getting the
better understanding of the project, these modules are
described below –
Page | 6
DATA STRUCTURE LAB Report
CHAPTER 3
CHAPTER 3 .IMPLEMENTATION
Page | 7
DATA STRUCTURE LAB Report
Source Code:
#include <stdio.h> ///for input output functions like printf, scanf
#include <stdlib.h>
#include <string.h> ///string operations
void flush()
{
int c;
while ((c = getchar()) != '\n' && c != EOF);
}
int main(){
FILE *fp, *ft; /// file pointers
char another, choice;
Page | 8
DATA STRUCTURE LAB Report
switch(choice){
case '1': /// if user press 1
fseek(fp,0,SEEK_END); /// search the file and move cursor to end of
the file
another = 'y';
while(another == 'y'){ /// if user want to add another record
flush();
printf("\nEnter name: ");
fgets(e.name, 40, stdin);
printf("\nEnter age: ");
scanf("%d", &e.age);
printf("\nEnter basic salary: ");
scanf("%f", &e.bs);
Page | 9
case '4':
fclose(fp); /// close the file
exit(0); /// exit from the program
}
}
return 0;
}
Page | 10
DATA STRUCTURE LAB Report
CHAPTER 4: SNAPSHOTS
Page | 12
EMPLOYEE DATA WHICH I ADDED IN
LIST .. IT CAN DELETED WHEN U
CHOICE OPTION 3…ENTER THE
EMPLOYEE NAME WHICH DATA YOU
WISH TO DELETE
Page | 13
DATA STRUCTURE LAB Report
CHAPTER 6: CONCLUSION
CHAPTER 6: CONCLUSION
It was a great experience to design and
implement the Employee Management
System by using an C language and to work
on its documentation. While working on this
project, I have learned many things especially
how to apply the concepts of file handling
structure. This assignment helped me to get
the better understanding to develop and
derive new class structures. It also helped me
in getting in the better understanding of basic
programming concepts of C language such as
loops, control structure, file handling etc.
After doing this assignment, I am in position
to explain Employee data structure mini
project.
Page | 14
CHAPTER 6: FLOWCHART
Page | 15
Page | 16
Page | 17
Page | 18
Page | 19