Computer Project FileJEEVAN
Computer Project FileJEEVAN
INVESTIGATORY PROJECT
AISSCE 2019-20 CLASS – XII
2019-2020
TOPIC:STUDENT REPORT CARD
PREPARATION
DONE BY:JEEVAN
CLASS: 12-B
ACKNOWLEDGEMENT
I would like to express my special thanks of gratitude to our teacher as well as our
Principal Mrs.Shanthi Samuel who gave me the golden opportunity to do this
wonderful project on the topic-” STUDENT REPORT CARD REPORT CARD
PREPERATION IN C++”which also helped me in research and gain knowledge
about many new things. Secondly, I would also like to thank my parents and friends
who helped me in finalizing this project within limited time frame.
INDEX
1. About C++
2. About Student Report card Maker
3. Hierarchical Diagram of Student report card
4. Data required as input
5. Report required as output
6. Classes and their functions
7. Hardware and Software requirement
8. Project Listing
9. Output Screens
10. Reference.
Data Required as Input
• Admno - To store student admno no
• Name - name of student
• Father Name - father Name of student
• Class & section - class and section of student
• Session - session
• Marks obtained in 5 subject -
• Total Mark - Total marks
• Percentage - percentage marks of student
• Grade - Grade of student
Criteria for Grade calculation
Percentage mark Grade
>=95 A+
<95 and >=90 A
<90 and >=80 B+
<80 and >=70 B
<70 and >=60 C+
<60 C
Program Listing
#include<iostream>
#include<fstream>
#include<conio.h>
#include<string.h>
using namespace std;
class report {
private :
int admno;
char name[30];
char fname[30];
int std;
char section;
int phy;
int chem;
int math;
int comp;
int eng;
int total;
float per;
char grade[3];
public :
void main_menu(); //function to display main menu
void search_menu(); // function to display search menu
void report_menu( ); // function to display report menu
void read_data( ); // function to read all the data members from the
//keyboard
void calculate(); // function to calculate total marks, per and grade
return;
}
return;
}
case 4: break;
default :
cout<<"\n Wrong Choice.... Try agian";
} // end of switch
}while(choice!=4);
return;
}
return;
}
if(per>=95)
strcpy(grade,"A+");
void report::disp_data()
{
return ;
}
void report::search_name( )
{
ifstream fin;
fin.open("report.dat");
char tname[30];
int flag=0;
system("cls");
cout<<"\n Enter Name to search :";
cin>>tname;
while(fin.read((char*)this,sizeof(report)))
{
if(strcmpi(tname,name)==0)
{
system("cls");
cout<<"\n Student Information ";
cout<<"\n--------------------------------------------------------"<<endl;
disp_data();
flag=1;
}
}
fin.close();
if(flag==0)
cout<<"\n No such name : "<<strupr(tname)<<" exist in our record... Try again";
return;
}
system("cls");
cout<<"\n Class :"<<tstd<<" - "<<tsect<<endl;
cout<<"-------------------------------------------------------------------------------"<<endl;
cout<<"Admno\tName\tFname\t Phy \t Chem\t Math \t Comp \t Eng \t Total \t
per\n";
cout<<"-------------------------------------------------------------------------------"<<endl;
while(fin.read((char*)this,sizeof(report)))
{
if(tsect==section && tstd == std)
{
cout<<admno<<"\t"<<name<<"\t"<<fname<<"\t"<<phy<<"\t"<<chem<<"\t"<<mat
h<<"\t"<<comp<<"\t"<<eng<<"\t"<<total<<"\t"<<per<<endl;
flag=1;
}
}
cout<<"-------------------------------------------------------------------------------"<<endl;
fin.close();
if(flag==0)
cout<<"\n\n information Not availabl for class :"<<tstd <<" - "<<tsect;
return;
int tadmno;
int flag=0;
system("cls");
cout<<"\n Enter Admission Number to search : ";
cin>>tadmno;
while(fin.read((char*)this,sizeof(report)))
{
if(tadmno == admno)
{
system("cls");
cout<<"\n Student Information ";
cout<<"\n--------------------------------------------------------"<<endl;
disp_data();
flag = 1;
}
}
fin.close();
if(flag==0)
cout<<"\n\n Admission No : "<<tadmno <<" does not exist.... Try again";
return;
void report::single_report_card()
{
system("cls");
return;
}
int tstd;
char tsect;
system("cls");
system("cls");
while(fin.read((char*)this, sizeof(report)))
{
if(tstd==std && tsect== section )
{
row= row+1;
no++;
if(row>=30)
{
cout<<"\n\n Press any key to continue ................";
getch();
cout<<"\n\t\t D.A.V. Centenary Public School Chander Nagar, GZB";
cout<<"\n\t\t Class :"<<tstd<<"-"<<tsect<<"\t\t Session : 2012-13"<<endl;
cout<<"-------------------------------------------------------------------------------
"<<endl;
cout<<"Admno\tName\tFname\t Phy \t Chem\t Math \t Comp \t Eng \t
Total \t per\n";
cout<<"-------------------------------------------------------------------------------
"<<endl;
row =6;
}
cout<<admno<<"\t"<<name<<"\t"<<fname<<"\t"<<phy<<"\t"<<chem<<"\t"<<mat
h<<"\t"<<comp<<"\t"<<eng<<"\t"<<total<<"\t"<<per<<endl;
}
}
fin.close();
cout<<"-------------------------------------------------------------------------------"<<endl;
cout<<"\n Total Student : "<<no<<" Report prepared By :"<<" Rakesh Kumar ";
getch();
return ;
int tstd;
char tsect;
ifstream fin;
fin.open("report.dat");
system("cls");
while(fin.read((char*)this, sizeof(report)))
{
row= row+1;
no++;
if(row>=30)
{
cout<<"\n\n Press any key to continue ................";
getch();
cout<<"\n\t\t D.A.V. Centenary Public School Chander Nagar, GZB";
cout<<"\n\t\t Class :"<<tstd<<"-"<<tsect<<"\t\t Session : 2012-13"<<endl;
cout<<"-------------------------------------------------------------------------------
"<<endl;
cout<<"Admno\tName\tFname\t Phy \t Chem\t Math \t Comp \t Eng \t
Total \t per\n";
cout<<"-------------------------------------------------------------------------------
"<<endl;
row =6;
}
cout<<admno<<"\t"<<name<<"\t"<<fname<<"\t"<<phy<<"\t"<<chem<<"\t"<<mat
h<<"\t"<<comp<<"\t"<<eng<<"\t"<<total<<"\t"<<per<<endl;
}
fin.close();
cout<<"-------------------------------------------------------------------------------"<<endl;
cout<<"\n Total Student : "<<no<<" Report prepared By :"<<" Rakesh Kumar ";
getch();
return ;
}
void report::del_record ()
{
ifstream fin;
ofstream fout;
int tadmno;
int flag =0;
system("cls");
cout<<"\n Enter admno to delete :";
cin>>tadmno;
fin.open("report.dat",ios::binary);
fout.open("temp.dat");
while(fin.read((char*)this, sizeof(report)))
{
if(tadmno!=admno)
fout.write((char*)this,sizeof(report));
else
flag=1;
}
fin.close();
fout.close();
if(flag==1)
cout<<"\n\n Record Sucessfully removed ";
else
cout<<"\n Admission No :"<<tadmno <<" does not exist...Try again";
getch();
return;
}
ifstream fin;
ofstream fout;
int tadmno;
int flag =0;
system("cls");
cout<<"\n Enter Admno to Modify :";
cin>>tadmno;
fin.open("report.dat",ios::binary);
fout.open("temp.dat");
while(fin.read((char*)this, sizeof(report)))
{
if(tadmno == admno)
{ read_data(); calculate(); flag=1; }
fout.write((char*)this,sizeof(report));
}
fin.close();
fout.close();
if(flag==1)
cout<<"\n\n Record Sucessfully modified ";
else
cout<<"\n Admission No :"<<tadmno <<" does not exist...Try again";
getch();
return;
int main()
{
report r;
r.main_menu();
return 0;
}
OUTPUT SCREENS
Main Menu
Add Student Record
Modify Record
Search Menu
Report Menu
Single student report card
Class wise report
Reference
1. Computer Projects
1. By – Rakesh Kumar
2. Computer science
1. By Sumita Arora