2. SUBMITTED IN THE PARTIAL FULFILLMENT OF THE
REQUIREMENT OF CBSE BOARD
Thisistocertifythatprojectworkentitled:
Student progress record SYSTEM
Hasbeen carriedout by
Studentsof classXII ‘A’
RoshanKumarBASTIA
Kendriya Vidyalaya,SECL,Baikunthpur(C.G)
Hehadsubmittedthisprojectduringthe
Academicyear2015-2016,
Towardspartial fulfilment of requirement
Of CBSE Board.
CERTIFICATE
3. Mr.R.K.Asanani Signature
(ComputerTeacher) [External]
ACKNOWLEDGMENT
I am extremely grateful to Mr. R.k.Asnani, Teacher
of Department of Computer Science for his able
guidance and useful suggestions, which helped me
in completing the project work, in time.
I would also like to thank all the teaching and
non-teaching staff of Computer Science department
who helped me directly or indirectly in the
completion of this project i.e. Student progress
System.
Finally, yet importantly, I would like to express my
heartfelt thanks to my beloved parents for their
blessings, my friends/classmates for their help and
wishes for the successful completion of this project.
4. RoshankumarBASTIA
KendriyavidyalayaSECL,
Baikunthpur(C.G)
This project has been prepared keeping in view the
requirements of Central Board Of Secondary Education,
New Delhi.
This project deals with every aspect of C++
functions and graphics. User defined functions have been
developed to make the program code as simpler and easier
as possible.
This project is aimed at providing a thorough base
and understanding in various latest trends and techniques
in C++.
PREFACE
5. INTRODUCTION
The project undertaken does the automation of the
STUDENT PROGRESS SYSTEM in the organization. It builds
on the performance, reliability, quality and ease of use. It also
includes a number of features that further establish it as a
better GUI application. STUDENT PROGRESS SYSTEM is a
system having Menu Driven User Interface. It contains
the vital data and marks scored in academics by
student. Administrator of the project can enter new student
record, display all/specific student record, he can modify and
delete student record. Administrator can enter new student
record, display all records, modify & delete student records.
The software is developed in C++. The software is
developed to reduce the workload for and provides
better service to the students.
6. The main reason of developing this software
is to reduce the workload and to provide ease of use to
accomplish the desired task.
We have chosen C++ because of its ease of use, versatility
& ability to implement OOP in its true sense. It offers a great
combination of in built scientific, mathematical, string, graphical
functions & scores of other user defined functions to accomplish any
given task. C++ emphasizes more on what has to be done rather than
how it has to be done. C++ allows the programmer to carry out
virtually any task, given the knowledge and skill of its application.
The OOP (Object Oriented Programming )approach is based
on certain concepts that help to attain its goal of overcoming the
drawbacks or shortcomings of conventional programming
approach.
These general concepts of OOP are: -
DATA ABSTRACTION
C++ & OOP concepts
7. DATA ENCAPSULATION
MODULARITY
INHERITANCE (HIERARCHY)
POLYMORPHISM
MINIMUM: -
Intel 486 Processor
8 MB RAM
14” Monitor
Keyboard US layout
Printer
System Requirements
8. RECOMMENDED: -
Intel core i5 processor CPU @ 2.20GHz
8 GB RAM
14” Colour led Monitor
Keyboard US Layout
Mouse
Printer
//***********************************
****************************
// HEADER FILE USED
IN PROJECT
//***********************************
*****************************
#include<fstream.h>
#include<iomanip.h>
Source Code
10. void getdata(); //function to
accept data from user
void showdata(); //function to
show data on screen
void show_tabular();
int retrollno();
}; //class ends here
void student::calculate()
{
per=(p_marks+c_marks+m_marks+e_mar
ks+cs_marks)/5.0;
if(per>=60)
grade='A';
else if(per>=50)
grade='B';
else if(per>=33)
grade='C';
else
grade='F';
}
11. void student::getdata()
{
cout<<"nEnter The roll number of
student ";
cin>>rollno;
cout<<"nnEnter 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 : ";
12. cin>>cs_marks;
calculate();
}
void student::showdata()
{
cout<<"nRoll number of student :
"<<rollno;
cout<<"nName of student :
"<<name;
cout<<"nMarks in Physics :
"<<p_marks;
cout<<"nMarks in Chemistry :
"<<c_marks;
cout<<"nMarks in Maths :
"<<m_marks;
cout<<"nMarks in English :
"<<e_marks;
cout<<"nMarks in Computer Science
: "<<cs_marks;
cout<<"nPercentage of student is
: "<<per;
cout<<"nGrade of student is :
"<<grade;
14. int student::retrollno()
{
return rollno;
}
//***********************************
****************************
// function declaration
//***********************************
*****************************
void write_student(); //write the
record in binary file
void display_all(); //read all
records from binary file
void display_sp(int); //accept
rollno and read record from binary
file
void modify_student(int); //accept
rollno and update record of binary
file
15. void delete_student(int); //accept
rollno and delete selected records
from binary file
void class_result(); //display all
records in tabular format from binary
file
void result(); //display result menu
void intro(); //display welcome
screen
void entry_menu(); //display entry
menu on screen
void exit() ;
//***********************************
****************************
// THE MAIN FUNCTION OF PROGRAM
//***********************************
*****************************
void main()
{
char ch;
16. cout.setf(ios::fixed|ios::showpoin
t);
cout<<setprecision(2); // program
outputs decimal number to two decimal
places
clrscr();
intro();
do
{
clrscr();
cout<<"nnntMAIN MENU";
cout<<"nnt01. RESULT MENU";
cout<<"nnt02. ENTRY/EDIT
MENU";
cout<<"nnt03. EXIT";
cout<<"nntPlease Select Your
Option (1-3) ";
cin>>ch;
clrscr();
switch(ch)
{
case '1': result();
break;
17. case '2': entry_menu();
break;
case '3':
break;
}
}while(ch!='3');
}
//***********************************
****************************
// function to write in file
//***********************************
*****************************
void write_student()
{
student st;
ofstream fout;
fout.open("student.dat",ios::binar
y|ios::app);
18. st.getdata();
fout.write((char *) &st,
sizeof(student));
fout.close();
cout<<"nnStudent record Has Been
Created ";
getch();
}
//***********************************
****************************
// function to read all records
from file
//***********************************
*****************************
void display_all()
{
student st;
ifstream fin;
fin.open("student.dat",ios::binary
);
if(!fin)
19. {
cout<<"File could not be open
!! Press any Key...";
getch();
return;
}
cout<<"nnnttDISPLAY ALL
RECORD !!!nn";
while(fin.read((char *) &st,
sizeof(student)))
{
st.showdata();
cout<<"nn~+~+~+~+~+~+~+~+~+~+~+~
+~+~+~+~+~+~n";
}
fin.close();
getch();
}
20. //***********************************
****************************
// function to read specific
record from file
//***********************************
*****************************
void display_sp(int n)
{
student st;
ifstream fin;
fin.open("student.dat",ios::binary
);
if(!fin)
{
cout<<"File could not be open
!! Press any Key...";
getch();
return;
}
int flag=0;
22. void modify_student(int n)
{
int found=0;
student st;
fstream Fio;
Fio.open("student.dat",ios::binary
|ios::in|ios::out);
if(!Fio)
{
cout<<"File could not be open
!! Press any Key...";
getch();
return;
}
while(Fio.read((char *) &st,
sizeof(student)) && found==0)
{
if(st.retrollno()==n)
{
st.showdata();
23. cout<<"nnPlease Enter The
New Details of student"<<endl;
st.getdata();
int pos=(-1)*sizeof(st);
Fio.seekp(pos,ios::cur);
Fio.write((char *) &st,
sizeof(student));
cout<<"nnt Record
Updated";
found=1;
}
}
Fio.close();
if(found==0)
cout<<"nn Record Not Found ";
getch();
}
//***********************************
****************************
// function to delete record of
file
26. //***********************************
****************************
// function to display all
students grade report
//***********************************
*****************************
void class_result()
{
student st;
ifstream fin;
fin.open("student.dat",ios::binary
);
if(!fin)
{
cout<<"File could not be open
!! Press any Key...";
getch();
return;
}
28. //***********************************
****************************
// function to display result
menu
//***********************************
*****************************
void result()
{
char ch,ein='n';
int rno;
do
{
clrscr();
cout<<"nnntRESULT MENU";
cout<<"nnnt1. Class Result";
cout<<"nnt2. Student Report
Card";
cout<<"nnt3. Back to Main
Menu";
cout<<"nnntEnter Choice
(1/2/3)? ";
29. cin>>ch;
clrscr();
switch(ch)
{
case '1' : class_result();
break;
case '2' :
cout<<"nntEnter Roll Number Of
Student : "; cin>>rno;
display_sp(rno); break;
case '3' : cout<<"nndo you
want to exit to main
minu?(y/n)t";cin>>ein;
if(ein=='y')
exit();
else
ein='n';
break;
}
getch();
}while(ein=='N'||ein=='n');
31. //***********************************
****************************
// ENTRY / EDIT MENU FUNCTION
//***********************************
*****************************
void entry_menu()
{
char ch;
int num;
char ein='n';
do
{ clrscr();
cout<<"nnntENTRY MENU";
cout<<"nnt1.CREATE STUDENT
RECORD";
cout<<"nnt2.DISPLAY ALL
STUDENTS RECORDS";
cout<<"nnt3.SEARCH STUDENT
RECORD ";
cout<<"nnt4.MODIFY STUDENT
RECORD";
32. cout<<"nnt5.DELETE STUDENT
RECORD";
cout<<"nnt6.BACK TO MAIN
MENU";
cout<<"nntPlease Enter Your
Choice (1-6) ";
cin>>ch;
clrscr();
switch(ch)
{
case '1': write_student();
break;
case '2': display_all();
break;
case '3':
cout<<"nntPlease Enter The roll
number "; cin>>num;
display_sp(num);
break;
case '4':
cout<<"nntPlease Enter The roll
number "; cin>>num;
modify_student(num);break;
33. case '5':
cout<<"nntPlease Enter The roll
number "; cin>>num;
delete_student(num);break;
case '6': cout<<"nndo you
want to exit to main
minu?(y/n)t";cin>>ein;
if(ein=='y')
exit();
else
ein='n';
break;
default: cout<<"a";
}
getch();
}while(ein=='N'||ein=='n');
}
void exit()
{
}
35. This project is user friendly and menu driven package.The
application is fully tested by us. User modify it very easily.
The application is helpful for the School Departments.
The application has been developed with a view to reduce the
workload and also to provide faster service.
Sumita Arora Computer science with c++
Internet
Bibliography