ORANGE COUNTY SCHOOL,
Rajsamand
Nurturing mind for the future
Session
2018-2019
Computer Science Project File
Topic
“Student Performance Program”
Submitted By: Submitted To :
Sunil Kumawat Mrs.AnuradhaGoswami
Class-XIIth
Science (PGT COMPUTER)
Roll Number-
CERTIFICATE
This is to certify that Sunil Kumawat of class XII,
Orange County School, Rajsamand has successfully
completed his project in Computer practical for the
AISSCE as prescribed by CBSE in the year 2018-
2019.
Date:
Registration No. :
Internal Principal’s External
Signature Signature Signature
Acknowledgement
I have taken efforts in this project. However, it
would not have been possible without the kind
support and help of many individuals. I would like
to extend my sincere thanks to all of them.
I thank my Computer Science teacher
Mrs.AnuradhaGoswami for guidance and support.
I also thank my Principal Mr.AruneshSaxena.
Finally, I would like to thank CBSE for giving me
this opportunity to undertake this project.
TABLE OF CONTENTS
Synopsis
Requirements
Coding
Output
Limitation
Bibliography
SYNOPSIS
This is an automated software system written in
C++ programming language for Student
Performance management system
which is used to store records various information
about the students and books details. It performs the
following operations:-
 BOOK ISSUE: It stores the data of the students
which issue the book.
 Book deposit : It cancels the already stored records
of the customer in case they want to cancel the
tickets they reserved.
 There are other operations which are used to see
various lists of records of customer, flights and
passengeronboard.
REQUIREMENTS
HARDWARE REQUIRED
 Printer to print the required documents of the project
 Compact Drive
 Processor : Pentium III
 Ram : 64 MB
 Hard disk : 20 GB
SOFTWARE REQUIRED
 Operating system : Windows XP
 Turbo C++ for execution of program
Ms Word for presentation of output
CODING
//***************************************************************
// HEADER FILE USED IN PROJECT
//****************************************************************
#include<conio.h>
#include<stdio.h>
#include<process.h>
#include<fstream.h>
#include<iomanip.h>
//***************************************************************
// CLASS USED IN PROJECT
//****************************************************************
class student
{
int rollno;
char name[50];
int p_marks,c_marks,m_marks,e_marks,cs_marks;
float per;
char grade;
int std;
void calculate()
{
per=(p_marks+c_marks+m_marks+e_marks+cs_marks)/5.0;
if(per>=60)
grade='A';
else if(per>=50 && per<60)
grade='B';
else if(per>=33 && per<50)
grade='C';
else
grade='F';
}
public:
void getdata()
{
cout<<"nEnter Theroll number of student ";
cin>>rollno;
cout<<"nnEnter TheNameof student ";
gets(name);
cout<<"nEnter Themarksin physicsout of 100 : ";
cin>>p_marks;
cout<<"nEnter Themarksin chemistryout of 100 : ";
cin>>c_marks;
cout<<"nEnter Themarksin mathsout of 100 : ";
cin>>m_marks;
cout<<"nEnter Themarksin english out of 100 : ";
cin>>e_marks;
cout<<"nEnter Themarksin computer scienceout of
100 : ";
cin>>cs_marks;
calculate();
}
void showdata()
{
cout<<"nRoll number of student : "<<rollno;
cout<<"nNameof student : "<<name;
cout<<"nMarksinPhysics: "<<p_marks;
cout<<"nMarksinChemistry: "<<c_marks;
cout<<"nMarksinMaths: "<<m_marks;
cout<<"nMarksinEnglish : "<<e_marks;
cout<<"nMarksinComputer Science:"<<cs_marks;
cout<<"nPercentageofstudent is
:"<<setprecision(2)<<per;
cout<<"nGradeofstudent is :"<<grade;
}
void show_tabular()
{
cout<<rollno<<setw(12)<<name<<setw(10)<<p_marks<<setw(
3)<<c_marks<<setw(3)<<m_marks<<setw(3)<<
e_marks<<setw(3)<<cs_marks<<setw(6)<<setprecision(3)<<per<<"
"<<grade<<endl;
}
int retrollno()
{ return rollno; }
}; //class ends here
//***************************************************************
// global declarationfor stream object, object
//****************************************************************
fstream fp;
student st;
//***************************************************************
// functionto writein file
//****************************************************************
void write_student()
{
fp.open("student.dat",ios::out|ios::app);
st.getdata();
fp.write((char*)&st,sizeof(student));
fp.close();
cout<<"nnstudent record HasBeen Created ";
getch();
}
//***************************************************************
// functionto read all recordsfrom file
//****************************************************************
void display_all()
{
clrscr();
cout<<"nnnttDISPLAY ALLRECORD !!!nn";
fp.open("student.dat",ios::in);
while(fp.read((char*)&st,sizeof(student)))
{
st.showdata();
cout<<"nn====================================
n";
getch();
}
fp.close();
getch();
}
//***************************************************************
// functionto read specific record from file
//****************************************************************
void display_sp(int n)
{
int flag=0;
fp.open("student.dat",ios::in);
while(fp.read((char*)&st,sizeof(student)))
{
if(st.retrollno()==n)
{
clrscr();
st.showdata();
flag=1;
}
}
fp.close();
if(flag==0)
cout<<"nnrecord not exist";
getch();
}
//***************************************************************
// functionto modifyrecord of file
//****************************************************************
void modify_student()
{
int no,found=0;
clrscr();
cout<<"nntToModify";
cout<<"nntPleaseEnter The roll number of student";
cin>>no;
fp.open("student.dat",ios::in|ios::out);
while(fp.read((char*)&st,sizeof(student)) && found==0)
{
if(st.retrollno()==no)
{
st.showdata();
cout<<"nPleaseEnter The New Details of
student"<<endl;
st.getdata();
int pos=-1*sizeof(st);
fp.seekp(pos,ios::cur);
fp.write((char*)&st,sizeof(student));
cout<<"nnt Record Updated";
found=1;
}
}
fp.close();
if(found==0)
cout<<"nnRecord Not Found ";
getch();
}
//***************************************************************
// functionto delete record of file
//****************************************************************
void delete_student()
{
int no;
clrscr();
cout<<"nnntDeleteRecord";
cout<<"nnPleaseEnter The roll number of student You Want
To Delete";
cin>>no;
fp.open("student.dat",ios::in|ios::out);
fstream fp2;
fp2.open("Temp.dat",ios::out);
fp.seekg(0,ios::beg);
while(fp.read((char*)&st,sizeof(student)))
{
if(st.retrollno()!=no)
{
fp2.write((char*)&st,sizeof(student));
}
}
fp2.close();
fp.close();
remove("student.dat");
rename("Temp.dat","student.dat");
cout<<"nntRecordDeleted ..";
getch();
}
//***************************************************************
// functionto displayall studentsgradereport
//****************************************************************
void class_result()
{
clrscr();
fp.open("student.dat",ios::in);
if(!fp)
{
cout<<"ERROR!!! FILE COULD NOT BE OPENnnn
Go To Entry Menu to createFile";
cout<<"nnnProgramisclosing ....";
getch();
exit(0);
}
cout<<"nnttALLSTUDENTS RESULT nn";
cout<<"=======================================
=============n";
cout<<"Roll No. Name P C M E CS %ageGraden";
cout<<"=======================================
=============n";
while(fp.read((char*)&st,sizeof(student)))
{
st.show_tabular();
}
fp.close();
getch();
}
//***************************************************************
// functionto displayresult menu
//****************************************************************
void result()
{
int ans,rno;
char ch;
clrscr();
cout<<"nnnRESULT MENU";
cout<<"nnn1. Class Resultnn2. Student Report
Cardnn3.BacktoMainMenu";
cout<<"nnnEnter Choice(1/2)? ";
cin>>ans;
switch(ans)
{
case 1 : class_result();break;
case 2 : {
do{
clrscr();
char ans;
cout<<"nnEnter Roll Number Of
Student : ";
cin>>rno;
display_sp(rno);
cout<<"nnDoyou want to See More
Result (y/n)?";
cin>>ans;
}while(ans=='y'||ans=='Y');
break;
}
case 3: break;
default: cout<<"a";
}
}
//***************************************************************
// INTRODUCTION FUNCTION
//****************************************************************
void intro()
{
clrscr();
gotoxy(35,11);
cout<<"STUDENT";
gotoxy(33,14);
cout<<"REPORT CARD";
gotoxy(35,17);
cout<<"PROJECT";
cout<<"nnMADEBY : SULABH AGRAWAL";
cout<<"nnSCHOOL: B.N GANDHISEVA SADAN SR. SEC.
SCHOOL, RAJSAMAND";
getch();
}
//***************************************************************
// ENTRY / EDIT MENUFUNCTION
//****************************************************************
void entry_menu()
{
clrscr();
char ch2;
cout<<"nnntENTRY MENU";
cout<<"nnt1.CREATESTUDENT RECORD";
cout<<"nnt2.DISPLAYALLSTUDENTS RECORDS";
cout<<"nnt3.SEARCHSTUDENT RECORD";
cout<<"nnt4.MODIFY STUDENT RECORD";
cout<<"nnt5.DELETESTUDENT RECORD";
cout<<"nnt6.BACKTO MAIN MENU";
cout<<"nntPleaseEnter Your Choice (1-6) ";
ch2=getche();
switch(ch2)
{
case '1': clrscr();
write_student();
break;
case '2': display_all();break;
case '3':
int num;
clrscr();
cout<<"nntPleaseEnter The roll number ";
cin>>num;
display_sp(num);
break;
case '4': modify_student();break;
case '5': delete_student();break;
case '6': break;
default:cout<<"a";entry_menu();
}
}
//***************************************************************
// THE MAIN FUNCTION OF PROGRAM
//****************************************************************
void main()
{
char ch;
intro();
do
{
clrscr();
cout<<"nnntMAINMENU";
cout<<"nnt01. RESULT MENU";
cout<<"nnt02. ENTRY/EDIT MENU";
cout<<"nnt03. EXIT";
cout<<"nntPleaseSelect Your Option(1-3) ";
ch=getche();
switch(ch)
{
case '1': clrscr();
result();
break;
case '2': entry_menu();
break;
case '3':exit(0);
default :cout<<"a";
}
}while(ch!='3');
}
//***************************************************************
// END OF PROJECT
//***************************************************************
OUTPUT
Output screen 1
Student
ACADEMIC PERFOMANCE
PROJECT
MADE BY- PRANJAL PAGARIA
SCHOOL-ORANGE COUNTY SCHOOL
Output screen 2
MAIN MENU
01.REASULT MENU
02.ENTRY/EDIT MENU
03.EXIT
PLEASE SELECT YOUR OPTION(1-3):1-3]1
Output screen 3
REASULT MENU
1. Class result
2. Student report card
3. Back to main menu
4. Enter Choice(1/2)? 1
Output screen 4
ALL STUDENTS DETAILS
==================================================
Roll no. Name P C M E CS %age Grade
==================================================
1. Ram 67 79 89 90 67 78.4 A
2. Mohan 100 100 100 100 100 100 A
3. Manish 45 89 90 79 78 76.2 A
Limitation
1.It can add data but cannot modify it.
2.There is no unique attribute check in it.
3.The software is not acceptable by
BORLAND C++
compiler
BIBLIOGRAPHY
SUMITA ARORA - Computer science with C++
Application - Turbo C++
Website - www.cbseportal.com

Sunil

  • 1.
    ORANGE COUNTY SCHOOL, Rajsamand Nurturingmind for the future Session 2018-2019 Computer Science Project File Topic “Student Performance Program” Submitted By: Submitted To : Sunil Kumawat Mrs.AnuradhaGoswami
  • 2.
  • 3.
    CERTIFICATE This is tocertify that Sunil Kumawat of class XII, Orange County School, Rajsamand has successfully completed his project in Computer practical for the AISSCE as prescribed by CBSE in the year 2018- 2019. Date: Registration No. : Internal Principal’s External Signature Signature Signature
  • 4.
    Acknowledgement I have takenefforts in this project. However, it would not have been possible without the kind support and help of many individuals. I would like to extend my sincere thanks to all of them. I thank my Computer Science teacher Mrs.AnuradhaGoswami for guidance and support. I also thank my Principal Mr.AruneshSaxena. Finally, I would like to thank CBSE for giving me this opportunity to undertake this project. TABLE OF CONTENTS Synopsis Requirements
  • 5.
  • 6.
    SYNOPSIS This is anautomated software system written in C++ programming language for Student Performance management system which is used to store records various information about the students and books details. It performs the following operations:-  BOOK ISSUE: It stores the data of the students which issue the book.  Book deposit : It cancels the already stored records of the customer in case they want to cancel the tickets they reserved.  There are other operations which are used to see various lists of records of customer, flights and passengeronboard. REQUIREMENTS HARDWARE REQUIRED
  • 7.
     Printer toprint the required documents of the project  Compact Drive  Processor : Pentium III  Ram : 64 MB  Hard disk : 20 GB SOFTWARE REQUIRED  Operating system : Windows XP  Turbo C++ for execution of program Ms Word for presentation of output CODING
  • 8.
    //*************************************************************** // HEADER FILEUSED IN PROJECT //**************************************************************** #include<conio.h> #include<stdio.h> #include<process.h> #include<fstream.h> #include<iomanip.h> //*************************************************************** // CLASS USED IN PROJECT //**************************************************************** class student { int rollno; char name[50]; int p_marks,c_marks,m_marks,e_marks,cs_marks; float per; char grade; int std; void calculate() { per=(p_marks+c_marks+m_marks+e_marks+cs_marks)/5.0; if(per>=60) grade='A'; else if(per>=50 && per<60) grade='B'; else if(per>=33 && per<50) grade='C'; else grade='F'; } public: void getdata() {
  • 9.
    cout<<"nEnter Theroll numberof student "; cin>>rollno; cout<<"nnEnter TheNameof student "; gets(name); cout<<"nEnter Themarksin physicsout of 100 : "; cin>>p_marks; cout<<"nEnter Themarksin chemistryout of 100 : "; cin>>c_marks; cout<<"nEnter Themarksin mathsout of 100 : "; cin>>m_marks; cout<<"nEnter Themarksin english out of 100 : "; cin>>e_marks; cout<<"nEnter Themarksin computer scienceout of 100 : "; cin>>cs_marks; calculate(); } void showdata() { cout<<"nRoll number of student : "<<rollno; cout<<"nNameof student : "<<name; cout<<"nMarksinPhysics: "<<p_marks; cout<<"nMarksinChemistry: "<<c_marks; cout<<"nMarksinMaths: "<<m_marks; cout<<"nMarksinEnglish : "<<e_marks; cout<<"nMarksinComputer Science:"<<cs_marks; cout<<"nPercentageofstudent is :"<<setprecision(2)<<per; cout<<"nGradeofstudent is :"<<grade; } void show_tabular() { cout<<rollno<<setw(12)<<name<<setw(10)<<p_marks<<setw( 3)<<c_marks<<setw(3)<<m_marks<<setw(3)<< e_marks<<setw(3)<<cs_marks<<setw(6)<<setprecision(3)<<per<<" "<<grade<<endl;
  • 10.
    } int retrollno() { returnrollno; } }; //class ends here //*************************************************************** // global declarationfor stream object, object //**************************************************************** fstream fp; student st; //*************************************************************** // functionto writein file //**************************************************************** void write_student() { fp.open("student.dat",ios::out|ios::app); st.getdata(); fp.write((char*)&st,sizeof(student)); fp.close(); cout<<"nnstudent record HasBeen Created "; getch(); } //*************************************************************** // functionto read all recordsfrom file //**************************************************************** void display_all() { clrscr();
  • 11.
    cout<<"nnnttDISPLAY ALLRECORD !!!nn"; fp.open("student.dat",ios::in); while(fp.read((char*)&st,sizeof(student))) { st.showdata(); cout<<"nn==================================== n"; getch(); } fp.close(); getch(); } //*************************************************************** //functionto read specific record from file //**************************************************************** void display_sp(int n) { int flag=0; fp.open("student.dat",ios::in); while(fp.read((char*)&st,sizeof(student))) { if(st.retrollno()==n) { clrscr(); st.showdata(); flag=1; } } fp.close(); if(flag==0) cout<<"nnrecord not exist"; getch(); }
  • 12.
    //*************************************************************** // functionto modifyrecordof file //**************************************************************** void modify_student() { int no,found=0; clrscr(); cout<<"nntToModify"; cout<<"nntPleaseEnter The roll number of student"; cin>>no; fp.open("student.dat",ios::in|ios::out); while(fp.read((char*)&st,sizeof(student)) && found==0) { if(st.retrollno()==no) { st.showdata(); cout<<"nPleaseEnter The New Details of student"<<endl; st.getdata(); int pos=-1*sizeof(st); fp.seekp(pos,ios::cur); fp.write((char*)&st,sizeof(student)); cout<<"nnt Record Updated"; found=1; } } fp.close(); if(found==0) cout<<"nnRecord Not Found "; getch(); } //***************************************************************
  • 13.
    // functionto deleterecord of file //**************************************************************** void delete_student() { int no; clrscr(); cout<<"nnntDeleteRecord"; cout<<"nnPleaseEnter The roll number of student You Want To Delete"; cin>>no; fp.open("student.dat",ios::in|ios::out); fstream fp2; fp2.open("Temp.dat",ios::out); fp.seekg(0,ios::beg); while(fp.read((char*)&st,sizeof(student))) { if(st.retrollno()!=no) { fp2.write((char*)&st,sizeof(student)); } } fp2.close(); fp.close(); remove("student.dat"); rename("Temp.dat","student.dat"); cout<<"nntRecordDeleted .."; getch(); } //*************************************************************** // functionto displayall studentsgradereport //**************************************************************** void class_result() {
  • 14.
    clrscr(); fp.open("student.dat",ios::in); if(!fp) { cout<<"ERROR!!! FILE COULDNOT BE OPENnnn Go To Entry Menu to createFile"; cout<<"nnnProgramisclosing ...."; getch(); exit(0); } cout<<"nnttALLSTUDENTS RESULT nn"; cout<<"======================================= =============n"; cout<<"Roll No. Name P C M E CS %ageGraden"; cout<<"======================================= =============n"; while(fp.read((char*)&st,sizeof(student))) { st.show_tabular(); } fp.close(); getch(); } //*************************************************************** // functionto displayresult menu //**************************************************************** void result() { int ans,rno; char ch; clrscr(); cout<<"nnnRESULT MENU"; cout<<"nnn1. Class Resultnn2. Student Report Cardnn3.BacktoMainMenu"; cout<<"nnnEnter Choice(1/2)? "; cin>>ans;
  • 15.
    switch(ans) { case 1 :class_result();break; case 2 : { do{ clrscr(); char ans; cout<<"nnEnter Roll Number Of Student : "; cin>>rno; display_sp(rno); cout<<"nnDoyou want to See More Result (y/n)?"; cin>>ans; }while(ans=='y'||ans=='Y'); break; } case 3: break; default: cout<<"a"; } } //*************************************************************** // INTRODUCTION FUNCTION //**************************************************************** void intro() { clrscr(); gotoxy(35,11); cout<<"STUDENT"; gotoxy(33,14); cout<<"REPORT CARD"; gotoxy(35,17); cout<<"PROJECT"; cout<<"nnMADEBY : SULABH AGRAWAL"; cout<<"nnSCHOOL: B.N GANDHISEVA SADAN SR. SEC. SCHOOL, RAJSAMAND";
  • 16.
    getch(); } //*************************************************************** // ENTRY /EDIT MENUFUNCTION //**************************************************************** void entry_menu() { clrscr(); char ch2; cout<<"nnntENTRY MENU"; cout<<"nnt1.CREATESTUDENT RECORD"; cout<<"nnt2.DISPLAYALLSTUDENTS RECORDS"; cout<<"nnt3.SEARCHSTUDENT RECORD"; cout<<"nnt4.MODIFY STUDENT RECORD"; cout<<"nnt5.DELETESTUDENT RECORD"; cout<<"nnt6.BACKTO MAIN MENU"; cout<<"nntPleaseEnter Your Choice (1-6) "; ch2=getche(); switch(ch2) { case '1': clrscr(); write_student(); break; case '2': display_all();break; case '3': int num; clrscr(); cout<<"nntPleaseEnter The roll number "; cin>>num; display_sp(num); break; case '4': modify_student();break; case '5': delete_student();break; case '6': break; default:cout<<"a";entry_menu(); }
  • 17.
    } //*************************************************************** // THE MAINFUNCTION OF PROGRAM //**************************************************************** void main() { char ch; intro(); do { clrscr(); cout<<"nnntMAINMENU"; cout<<"nnt01. RESULT MENU"; cout<<"nnt02. ENTRY/EDIT MENU"; cout<<"nnt03. EXIT"; cout<<"nntPleaseSelect Your Option(1-3) "; ch=getche(); switch(ch) { case '1': clrscr(); result(); break; case '2': entry_menu(); break; case '3':exit(0); default :cout<<"a"; } }while(ch!='3'); } //*************************************************************** // END OF PROJECT //***************************************************************
  • 19.
    OUTPUT Output screen 1 Student ACADEMICPERFOMANCE PROJECT MADE BY- PRANJAL PAGARIA SCHOOL-ORANGE COUNTY SCHOOL
  • 20.
    Output screen 2 MAINMENU 01.REASULT MENU 02.ENTRY/EDIT MENU 03.EXIT PLEASE SELECT YOUR OPTION(1-3):1-3]1
  • 21.
    Output screen 3 REASULTMENU 1. Class result 2. Student report card 3. Back to main menu 4. Enter Choice(1/2)? 1
  • 22.
    Output screen 4 ALLSTUDENTS DETAILS ================================================== Roll no. Name P C M E CS %age Grade ================================================== 1. Ram 67 79 89 90 67 78.4 A 2. Mohan 100 100 100 100 100 100 A 3. Manish 45 89 90 79 78 76.2 A
  • 23.
    Limitation 1.It can adddata but cannot modify it. 2.There is no unique attribute check in it. 3.The software is not acceptable by BORLAND C++ compiler
  • 24.
    BIBLIOGRAPHY SUMITA ARORA -Computer science with C++ Application - Turbo C++ Website - www.cbseportal.com