You are on page 1of 19

Lovely Professional

University

TERM PAPER REPORTS


ON
CSE
TOPIC:-
EXAMINATION
MANAGEMENT SYSTEM
Submitted TO:- Submitted by:-

MR.MUNISH KUMAR VIJAY KUMAR

ROLL NO.:-
R270B44

REG.ID:-
10801820
ACKNOWLED
GEMENT
No work of significance can be claimed on a
result of an individual Efforts and same
holds true further for this project as well, for
through it carries my name the energy of
many have contributed in no small measure
in completion of this project.
I am very thankful to my friend and our
teachers “MR.MUNISH KUMAR” who help
me to make this project.
INTRODUCTION TO C
LANGUAGE

C IS A PROGRAMMING LANGUAGE
DEVELOPED AT AT AND T’S BELL
LABORATRIES OF USA IN 1972.IT
WAS DESIGNED AND WRITTEN BY
DENNIS RITCHIE.IT IS A SENSITIVE
AND REDUCES THE GAP BETWEEN
LOWER AND UPPER CASE
LETTERS SO MANY
PROGRAMMERS PREFFERED C TO
OLDER LANGUAGES LIKE
FORTRAN OR PL/I,OR THE NEWER
ONES LIKE PASCAL AND APL

INTRODUCTION TO EXAMINATION
MANAGEMENT SYSTEM

As we all know that time is very precious


and no one is ready to waste his time .so we
are designing a project that will help to save
the time of people in schools and
colleges.The project helps the teachers to
make the results of the students easily and
quickly. This software is designed to enter
the marks and other details by only entering
the rollno of the student.The whole details of
the class can be seen easily.Also the toppers
and failures can be easily known of the
class. This software will help to save the
time and also decrease the mistakes that
are made manually .So we hope that this
software will help to save the Time and
data.

SYSTEM REQUIREMENTS

Operating System: Windows 2000/NT/Xp/Vista


RAM: 256 MB or more
HARD DISK 40 GB or more
Processor P3 or High
Compiler Standard C++ Compiler
SOURCE CODE:

//Examination management system

#include<stdio.h>

#include<conio.h>

void main()

FILE *fp, *ft;

char another, choice;

struct Exam
{ int r_no;

char clas[20];

char name[40];

char add[40];

char f_name[40];

float math;

float phy;

float che;

float comp;

float avg;

float avg1;

};

struct Exam f;

long int amount,flag;

long int recsize;

float avg;

int r_no;

char clas[20];

fp=fopen("EXAM.DAT","rb+");

if(fp==NULL)

fp=fopen("EXAM.DAT","wb+");

if(fp==NULL)

{
puts("Cannot open file");

exit(1);

recsize = sizeof(f);

while(1)

clrscr();

gotoxy(30,10);

printf("1. Student detail");

gotoxy(30,12);

printf("2. Display Record");

gotoxy(30,14);

printf("3. Topper");

gotoxy(30,16);

printf("4. Failer");

gotoxy(30,18);

printf("5. Delete Record");

gotoxy(30,20);

printf("0.Exit");

gotoxy(30,22);

printf("Your choice");

fflush(stdin);
choice = getche();

switch(choice)

case '1':

fseek(fp,0,SEEK_END);

another = 'Y';

while((another == 'Y') || (another == 'y'))

printf("\nEnter Roll_no");

scanf("%d", &f.r_no);

printf("\nEnter Name");

scanf(" %s",f.name);

printf("\nEnter class");

scanf("%s",f.clas);

printf("\nEnter Address");

scanf("%s",f.add);

printf("\nEnter Father name");

scanf("%s",f.f_name);

printf("\nEnter Maths marks ");

scanf("%f", &f.math);

printf("\nEnter phy marks");

scanf("%f",&f.phy);

printf("\nEnter che marks");

scanf("%f",&f.che);
printf("enter computer marks");

scanf("%f",&f.comp);

f.avg=f.math+f.comp+f.phy+f.che;

f.avg1=f.avg/4;

fwrite(&f, recsize, 1, fp);

printf("\nCreate another Student Record(Y/N)");

fflush(stdin);

another = getche();

break;

case '2':

clrscr();

rewind(fp);

printf("R no name class Address Father'Nm maths


phy che comp Avg");

while(fread(&f, recsize, 1, fp) == 1)

printf("\n%d\t%s\t%s\t%s\t%s\t%2.2f\t%2.2f\t
%2.2f\t%2.2f\t%2.2f", f.r_no,f.name,f.clas, f.add, f.f_name,
f.math,f.phy,f.che,f.comp,f.avg1);

getch();

break;

case '3':

another='Y';
avg=0.0;

while(another=='Y')

printf("\nenter the class");

scanf("%s",clas);

rewind(fp);

while(fread(&f, recsize, 1, fp)==1)

if((f.avg>=avg)&&(strcmp(f.clas,clas)==0))

avg = f.avg;

printf("Student topped information is below");

printf("Name = %s", f.name);

fflush(stdin);

another=getche();

break;

case '4':

another='Y';

avg=33.3;

while(another=='Y')

printf("\nEnter class to check the score");


scanf("%s",clas);

rewind(fp);

//flag=0;

while(fread(&f, recsize, 1, fp)==1)

//flag=1;

//printf("\n%f",f.avg1);

if((strcmp(f.clas,clas)==0)&&(f.avg1<=avg))

printf("\n failed",f.r_no);

printf("\n Students name is


%s",f.name);

printf("\n Father's name is


%s",f.f_name);

//getch();

//if(flag==0)

//{

// printf("Sorry !! Invalid roll number");

// getch();
//}

fflush(stdin);

another=getche();

break;

case '5':

another='Y';

while(another=='Y')

printf("\nEnter roll number to delete");

scanf("%d",&r_no);

ft = fopen("TEMP.DAT","wb");

rewind(fp);

while(fread(&f, recsize, 1, fp) == 1)

if(f.r_no!=r_no)

fwrite(&f, recsize, 1, ft);

fclose(fp);

fclose(ft);

remove("EXAM.DAT");

rename("TEMP.DAT", "EXAM.DAT");
fp=fopen("EXAM.DAT", "rb+");

printf("Delete another record(Y/N)");

fflush(stdin);

another = getche();

break;

case '0':

fclose(fp);

exit();

}
Requirement Analysis:

THE PROJECT WHICH IS GIVEN TO ME I CAN BE MADE


ON ANY WINDOWS LIKE WINDOWS-VISTA WINDOWSXP,
WINDOWS 2000. THE MAIN CONDITION IS THAT IT
SHOULD HAVE MICROSOFT INSTALLED WITH
MICROSOFT WINDOWS AS BASIC NECCESSSITY. THE
SYSTEM SHOLD HAVE RAM OF 256MB OR MORE. HARD
DISK CAPACITY OF 40GB OR MORE. PROCESSOR MUST
BE PENTIUM 3 0R 4 WITH C++ COMPILER.
SYSTEM DESCRIPTION

THE OPERATING SYSTEM USED IN THIS PROJECT IS


WINDOWSXPIT HAS MICROSOFT OFFICE INSTALLED IN
IT. IT HAS RAM OF 2GB. HARD DISK CAPACITY OF
OPERATING SYSTEM IS 160GB. IT CONSISTS OF
PENTIUM-4 PROCESSOR.THE OPEREATING SYSTEM
ALSO HAS C++ COMPILER. THE SYSTEM ALSO HAS
TYPE CONVERSIONS WHICH CONVERT LOWER TO
UPPER TYPE. THE OPERATING SYSTEM HAVE 1GB RAM
FOR MICROSOFT WORLD.
TESTING

THE SOURCECODE DECLARED ABOVE FOR THE


PROGRAM OF FACULTY INFORMATION & MANAGEMENT
SYSTEM HAS BEEN TESTED AND IT HAS BEEN FOUND
THAT THE ABOVE SOURCE CODE IS OKAY AND
CORRECT.THE PROGRAM INVOLVES MANY TYPE OF
CONVERSIONS. THESE CONVERSIONS HAS TO DONE
CAREFULLY. THE PROGRAMME IS DONE INTEGRATION
VISE.
FUTURE SCOPE:

• Review performance and objectives with your


manager.
• Focus on delivering quantifiable results.
• Link to goals and objectives.
• Monitor development needs & action plan.
• Resource for review monthly to ensure completion
by year end.
• Add new development needs to list as identified.
• Build resume for potential job changes.
• First impression for potential hiring manager
REFRENCES:

BOOKS: LET US C

ANSIC

ANSIC & TURBO C

COMPLETE REFRENCES

You might also like