1. A Project Report On
REPORT CARD MAKING
Computer Science Investigatory Project
AISSE2015-2016
Submitted By
MITUL M PATEL
Class : XII
Under the Guidance of
Mr. SANJAY
PARMAR PGT
(Computer Science)
Department of Computer Science.
2. Department of Computer Science
C E R T I F I C A T E
This is to certify that MITUL M PATEL
Of Class XII has prepared the report on the Project
entitled “Report Card Making”. The report is the result of
his efforts & endeavors. The report is found worthy of
acceptance as final project report for the subject Computer
Science of Class
XII. He has prepared the report under my guidance.
(Mr. SANJAY PARMAR)
PGT (Computer Science)
Department of Computer
Science.
3. Department of Computer Science
ceR TiFicaTe
The project report entitled
“ReportCardMaking”,
Submitted by MITUL PATEL of Class XII for
the CBSE Senior Secondary Examination class XII of
Computer Science has been examined.
SIGNATURE OF EXAMINER
4. D E C L A R A T I O N
I hereby declare that the project work
entitled “Report Card Making”, submitted to
Department of Computer Science, is
prepared by me. All the coding are result of
my personal efforts.
MITUL PATEL
Class XII
5. A C K N O W L E D G E M E N T
I would like to express a deep sense of thanks & gratitude to my
project guide Mr. Sanjay Parmar Sir for guiding me immensely through
the course of the project. He always evinced keen interest in my work.
His constructive advice & constant motivation have been responsible for
the successful completion of this project.
My sincere thanks goes to Shri !!!!!!!!!!, Our principal sir, for his
co-ordination in extending every possible support for the completion of
this project.
I also thanks to my parents for their motivation & support. I must
thanks to my classmates for their timely help & support for compilation
of this project.
Last but not the least, I would like to thank all those who had
helped directly or indirectly towards the completion of this project.
MITUL PATEL
Class: XII
7. HEADER FILES USED
1. FSTREAM.H – for file handling, cin and cout
2. PROCESS.H – for exit() function
3. CONIO.H – for clrscr() and
getch() functions
4. STDIO.H – for standard I/O operations
5. STRING.H – for string handling
6. MATH.H–for doing mathematical operations
9. WORKING DESCRIPTION
This program consists of EIGHT
options as follows
1. TO MAKE REPORT CARD
2. TO APPEND NAMES
3. SORT NAMES
4. TO SEARCH A NAME
5. TO UPDATE GRADE
6. VIEW REPORT CARD
7. LIST OF FAILURES
8. MAIN MANU
10. HARDWARE AND SOFTWARE
SPECIFICATION
HardwareRequirement
Pentium (III-IV)Processor
64/128MB ofRAM
20/40GB HDD
3¼
FDD
CDRomDrive
Mouse,Keyboard & Printer
VGA/SVGA
Software Requirement
Windows XP/2007
Borland C++ /Turbo C++/ VC4.5
Platform :- (WindowsXP)
Operating system Win-xp was chosen as the platform for developing
the project. The choice was because of the following features
provided by it:-
12. ADVANTAGES OF USING C++
Severaladvantages ofusing C++are:-
DataAbstraction& Encapsulation.
Datamodularity.
Reusability&transitive.
Polymorphism.
Inheritance.
OPERATING INSTRUCTION
This program has beenstored infile ProgramFile :
officemg.cpp
DataFile : empdl.dat
To compileand run thisprogram:-
Firstgo to thedirectorythatcontain
it.(CDprojectOFFICEMG.CPPs )
Open Turbo C++
13. Now openthefileprogress card and press Ctrl+f9 to compile
and run it.
Now thewelcome screenappears.
process as peryour choice
15. cout<<"tENTER MARKS IN ENGLISH:";
cin>>m1;
cout<<"n";
cout<<"tENTER MARKS IN MATHS:";
cin>>m2;
cout<<"n";
cout<<"tENTER MARKS IN PHYSICS:";
cin>>m3;
cout<<"n";
cout<<"tENTER MARKS IN CHEMISTRY:";
cin>>m4;
cout<<"n";
cout<<"tENTER MARKS IN COMPUTER:";
cin>>m5;
cout<<"n";
cleardevice();
t=m1+m2+m3+m4+m5;
p=t/5;
gotoxy(1,1);
}
void output()
{
cout<<"n";
cout<<" "<<roll<<"t"<<" "<<na<<setw(10)<<"t";
cout<<" "<<m1<<","<<m2<<","<<m3<<","<<m4<<","<<m5<<"t";
cout<<" "<<p<<"%"<<"t"<<"t"<<""<<g<<"n";
cout<<"t";
}
}s[30];
int i,n;
void writes()
{
clrscr();
cleardevice();
cout<<"n";
cout<<"tENTER THE NUMBER OF RECORDS TO BE CREATED :";
cin>>n;
cleardevice();
for(i=0;i<n ;i++)
16. {
s[i].input();
if(s[i].p>=95)
strcpy(s[i].g,"A1");
if(s[i].p>=90 && s[i].p<=95)
strcpy(s[i].g,"A2");
if(s[i].p>=80 && s[i].p<=90)
strcpy(s[i].g,"B1");
if(s[i].p>=70 &&s[i].p<=80)
strcpy(s[i].g,"B2");
if(s[i].p>=60 &&s[i].p<=70)
strcpy(s[i].g,"C1");
if(s[i].p>=50 && s[i].p<=60)
strcpy(s[i].g,"C2");
if(s[i].p>=40&&s[i].p<=50)
strcpy(s[i].g,"D,1");
if(s[i].p<=40)
strcpy(s[i].g,"D2");
r.write((char*)&s[i],sizeof(s[i]));
}
}
void append()
{
clrscr();
cleardevice();
cout<<"n";
int k;
cout<<"ttt*-----------*"<<"n";
cout<<"ttt| APPENDING |"<<"n";
cout<<"ttt*-----------*"<<"n"<<"n";
cout<<"tENTER THE NUMBER OF RECORDS TO BE APPENDED :";
cin>>k;
for(i=0;i<k ;i++)
{
s[i].input();
if(s[i].p>=95)
strcpy(s[i].g,"A1");
if(s[i].p>=90&&s[i].p<=95)
strcpy(s[i].g,"A2");
if(s[i].p>=80&&s[i].p<=90)
strcpy(s[i].g,"B1");
18. }
if(flag==0)
{
cleardevice();
cout<<"tSORRYn";
cout<<"tTHENAME DOES NOT EXIST.n";
}
getch();
}
void update()
{
clrscr();
cleardevice();
cout<<"ttt*--------------*"<<"n";
cout<<"ttt| UPDATED LIST |"<<"n";
cout<<"ttt*--------------*"<<"n"<<"n";
cout<<"ROLL NAME MARKS PERCENTAGE
GRADE"<<"n";
cout<<"-----------------------------------------------------------"<<"n";
for(i=0;i<n;i++)
{
if(s[i].p<=40.0)
s[i].t=s[i].t+(s[i].t/10);
s[i].p=s[i].t/5.0;
if(s[i].p>=50.0&&s[i].p<=60.0)
strcpy(s[i].g,"C2");
if(s[i].p>=40.0&&s[i].p<=50.0)
strcpy(s[i].g,"D1");
if(s[i].p<=40.0)
strcpy(s[i].g,"Failed");
r.write((char*)&s[i],sizeof(s[i]));
s[i].output();
}
getch();
}
void sort()
{
clrscr();
cleardevice();
xii tp;
19. cout<<"ttt*-------------*"<<"n";
cout<<"ttt| SORTEDLIST |"<<"n";
cout<<"ttt*-------------*"<<"n"<<"n";
cout<<"ROLL NAME MARKS PERCENTAGE
GRADE"<<"n";
cout<<"---------------------------------------------------------"<<"n";
for(i=0;i<n;i++)
{
t.read((char *) &s[i],sizeof(s[i]));
for(i=0;i<n-1;i++)
{ for(int j=i+1;j<n;j++)
{ if(strcmp(s[i].na,s[j].na)>0)
{ tp=s[i];
s[i]=s[j];
s[j]=tp;
}
}
}
for(i=0;i<n ;i++)
s[i].output();
}
getch();
}
void failed()
{
cleardevice();
cout<<"t**----------------------------------------------------------**"<<"n";
cout<<"t|| THE LIST OF STUDENTS WHO FAILED IN MORE THAN
ONE SUBJECT ||"<<"n";
cout<<"t**----------------------------------------------------------**nn";
cout<<"ROLL NAME MARKS PERCENTAGE
GRADE"<<"n";
cout<<"-------------------------------------------------------"<<"n";
for(i=0;i<n;i++)
{
int c=0;
t.read((char *) &s[i],sizeof(s[i]));
if (s[i].m1<=40)
c++;
20. if (s[i].m2<=40)
c++;
if (s[i].m3<=40)
c++;
if (s[i].m4<=40)
c++;
if (s[i].m5<=40)
c++;
if(c>=2)
{
s[i].output();
}
}
getch();
}
void reads()
{
clrscr();
cleardevice();
cout<<"n";
cout<<"t**------------------------------------------------**"<<"n";
cout<<"t|| THE REPORT CARD OF STUDENTS OF CLASS XII-B2
||"<<"n";
cout<<"t**------------------------------------------------**"<<"n"<<"n";
cout<<"ROLL NAME MARKS PERCENTAGE
GRADE"<<"n";
cout<<"--------------------------------------------------------"<<"n";
for(i=0;i<n;i++)
{
t.read((char *) &s[i],sizeof(s[i]));
s[i].output();
}
getch();
}
void terms()
{
int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver,&gmode,"turboc3bgi");
errorcode= graphresult();
if (errorcode!=grOk) /* an error codeoccurred */
{
21. printf("Graphics error: %sn", grapherrormsg(errorcode));
printf("Press any key to halt:");
getch;
exit(1); /* terminate with an error code*/
}
char chc;
rectangle(1,1,getmaxx(),getmaxy());
settextstyle(GOTHIC_FONT,VERT_DIR,5);
settextjustify(LEFT_TEXT,CENTER_TEXT); //Was actually-
settextjustify(LEFT_TEXT,CENTER_TEXT,5);
outtextxy(50,240,"REPORT CARD");
settextstyle(SANS_SERIF_FONT,HORIZ_DIR,5);
outtextxy(240,50,"SELECT A TERM");
outtextxy(240,90,"OF YOUR CHOICE.");
outtextxy(240,105," ......................................");
settextstyle(SANS_SERIF_FONT,HORIZ_DIR,4);
setbkcolor(BLACK);
outtextxy(300,170,"1.Ist TERM");
outtextxy(300,220,"2.IInd TERM");
outtextxy(300,270,"3.IIIrd TERM");
outtextxy(300,320,"4.EXIT");
settextstyle(SANS_SERIF_FONT,HORIZ_DIR,3);
outtextxy(400,400,"ENTER CHOICE");
chc=getch();
switch(chc)
{
case '1':cleardevice();
menu1();
break;
case '2':cleardevice();
menu2();
break;
case '3':cleardevice();
menu3();
break;
case '4':cleardevice();
credits();
exit(0);
default :clrscr();
cleardevice();