You are on page 1of 10

Term paper

COMPUTER SCIENCE

ATTENDANCE
RECORD SYSTEM
Submitted to:-
MAM SUKHDILPREET KAUR
Submitted by:-
YOGESH KUMAR
Reg.no.:- 11004073
Roll no.:- A08
Sec.;- D6001
CONTENT-
1. Introduction
2. Requirement Analysis
3. Source code
4. Future scope of project
5. Conclusion
6. Refrences
1.Introduction:-

This project is designed to produce a


computerized solution to the manual attendance taking
procedures. Because manual controlling of the attendance
is a time consuming process and mostly not effective.
This system is intended for schools or universities. It
helps instructors for controlling absence of student and
also help parent controlling the attendance of his child
and learn child success in school. This system is new
student attendance system, technology help us in this
subject.

2.Requirement Analysis:-
the project which is given to
me I can made on any window like window xp,window-
vista etc.the main condition is that it should have
Microsoft installed with Microsoft window as basic
neccessty.the system shoul have ram of 256MB or more
than.the RAM of my laptop is 512MB.the hard disk
capacity have 40GB or more than.processor must be
pletinm with C complier.
3.Source code:-
The source code of my
project like this-
#include<stdio.h>
#include<conio.h>
void getatted(int choice);
struct stu
{
char s[20],t[20],p[20];
}s1;
void main()
{
FILE *fp;
int d,i,f,e,m,n,q,j,choice,y;
char pa,c,g[20];
mov:
clrscr();
printf("\n\n\n\n\t************* Welcome to Attedance
Record System *****************\n\n");
fflush(stdin);
printf("\n\t\tPress (1) for take attedance");
printf("\n\t\tPress (2) for check the attedance");
printf("\n\t\tPress (0) for exit ");
printf("\n\n\t\t enter your choice:");
scanf("%d",&choice);
fflush(stdin);
switch (choice)
{
case 0:
fflush(stdin);
printf("Please wait....");
sleep(3);
exit(1);
break;
case 1:
clrscr();
fflush(stdin);
printf("\n\t\t***********Welcome**********");
getatted(choice);
goto mov;
break;
case 2:
clrscr();
fflush(stdin);
printf("enter the date to find record of the
attendence :");
scanf("%s",g);
fp=fopen(g,"r");
printf("\n\n\tthe record of attendance is like this:\n");
y=getw(fp);
for(i=1;i<=y;i++)
{
d=getw(fp);
printf("\t%d\t",d);
c=getc(fp);
printf("\t%c\n",c);
}
fclose(fp);
getch();
goto mov;
break;
default:
printf("Enter a vali option");
goto mov;
}
getch();
}
void getatted(int choice)
{
FILE *fp;
int i,f,e,m,n,q,j;
char pa;
printf("\n\nEnter the today's date
day/month/year(E.G.12121992):=>");
scanf("%s",s1.s);
printf("\n\t\t**Remember this date to find the
record**\n");
printf("Enter the sloat (timing)hour:min=>");
scanf("%s",s1.t);
printf("Enter the name of section:");
scanf("%s",s1.p);
fp=fopen(s1.s,"w");
printf("Enter the total no of student in your class:");
scanf("%d",&n);
putw(n,fp);
clrscr();

printf("\n\n**************************************
****************************************");
printf("\n\ndate is %s \t\t section is %s \t\t timing
%s\n\n",s1.s,s1.p,s1.t);
printf("\n****************************************
****************************************");
lov:
e=0;
f=0;
printf("\n\n\t\t\t take attedance:\n\n");
printf("\n\t\t=> for present press 'p/P' & for absent press
'a/A'\n\n\n");
printf("\nRoll no: \t\t Attedance\n\n");
for(i=1;i<=n;i++)
{
putw(i,fp);
printf("%d\t\t\t\t",i);
fflush(stdin);
pa=getchar();
putc(pa,fp);
if(pa=='p'||pa=='P')
{
e++;
}
if(pa=='a'||pa=='A')
{
f++;
}
}
printf("\nenter the total present student:");
scanf("%d",&m);
if(m==e)
{
printf("Please wait........");
sleep(3);
printf("\n\n\t\t***The attedance is matched and
marked!!!!!***\n");
printf("\n\n\t\ttotal absenties are %d and total present
student are %d",f,e);
getch();
}
else
{
printf("Please wait.......");
sleep(4);
printf("\n\n\t\t Sorry the attedance cann't marked\n\n");
printf("\t\tdo u wanna try again...........???????\n\n\n if
yes den press (y/Y) else press (n/N)");
fflush(stdin);
q=getchar();

if(q=='y'||q=='Y')
{
goto lov;
}
if(q=='n'||q=='N')
{
printf("\n\n\t\t*****Thank you*****");
getch();
}
}
fclose(fp);
}
4.Future scope for the project:-
This system is
intended for schools or universities.it helps instructors for
controlling absence of student and also help parent
controlling the attendance of his child and learn success in
school/university.this system is new attendance record
system, technology help us in this subject.
5.Conclusion-
Traditionally,student attendance is done
using pen & papers.therefor,computer based students
attendance record system is required to assist the faculty
and the lecturer for this time-consuming
process.attendance record system provides instructor for
controlling absence of computer.this new system also help
teacher to controlling the attendance of the student and
leanr student success in the school/university.
6.References-
(1) Programming with C,second edition by
Gottfried
(2) Let us C
(3) Ansi c

You might also like