Computer Science Anshu
Computer Science Anshu
on –
STUDENT REPORT CARD
Submitted by :
ANSHU GANGWAR
Class- XII-A
Under the guidance of
Mr. Munendra Naithani
PGT (Computer Science)
Kendriya Vidyalaya no.2, jla , Bareilly cantt
CERTIFICATE
This is to certify that Anshu Gangwar
of class twelve, KV No. 2 jla Bareilly
cantt School, has successfully completed
the research on the project ‘student
report card’ during the year 2017-
2018 .
[Signature of Examiner]
___________________.
[Signature of Cs teacher]
__________________.
ACKNOWLEDGEMENT
I thank my Computer Science teacher
Mr.Munendra Naithani for guidance and
support.
I also thank my Principal Mrs. Swarna
Shrivastava. I would also like to thank my
parents and my friends for encouraging me
during the course of this project. Finally I
would like to thank CBSE for giving me
this opportunity to undertake this project.
ANSHU GANGWAR
CLASS: XII-A
TABLE OF CONTENTS
1- Certificate…………………….
2- Acknowledgement…………….
4- Coding …………………………
5- Limitations…………………….
6- Requirements………………….
7- Bibliography…………………
void student::calculate()
{
per=(p_marks+c_marks+m_marks+e_marks+cs_marks)/5.0;
if(per>=60)
grade='A';
else if(per>=50)
grade='B';
else if(per>=33)
grade='C';
else
grade='F';
}
void student::getdata()
{
cout<<"\nEnter The roll number of student ";
cin>>rollno;
cout<<"\n\nEnter The Name of student ";
gets(name);
cout<<"\nEnter The marks in physics out of 100 : ";
cin>>p_marks;
cout<<"\nEnter The marks in chemistry out of 100 : ";
cin>>c_marks;
cout<<"\nEnter The marks in maths out of 100 : ";
cin>>m_marks;
cout<<"\nEnter The marks in english out of 100 : ";
cin>>e_marks;
cout<<"\nEnter The marks in computer science out of 100 : ";
cin>>cs_marks;
calculate();
}
void student::show_tabular()
{
cout<<rollno<<setw(6)<<"
"<<name<<setw(10)<<p_marks<<setw(4)<<c_marks<<setw(4)<<m_marks<<set
w(4)
<<e_marks<<setw(4)<<cs_marks<<setw(6)<<per<<setw(6)<<"
"<<grade<<endl;
}
int student::retrollno()
{
return rollno;
}
FUNCTION DECLARATION:
void write_student()
{
student st;
ofstream outFile;
outFile.open("student.dat",ios::binary|ios::app);
st.getdata();
outFile.write((char *) &st, sizeof(student));
outFile.close();
cout<<"\n\nStudent record Has Been Created ";
cin.ignore();
getch();
}
cout<<"==========================================================
\n";
cout<<"R.No Name P C M E CS %age Grade"<<endl;
cout<<"==========================================================
\n";
while(inFile.read((char *) &st, sizeof(student)))
{
st.show_tabular();
}
getch();
inFile.close();
}
BIBILOGRAPHY:
Internet, Wikipedia, Google, SUMITA
ARORA, MOVE FAST class-12