SlideShare a Scribd company logo
………………………………………………………
……………………………………………….
Project Report
On
STUDENT REPORT CARD
SYSTEM
……………………….
CLASS—XII
ACKNOWLEDGEMENT
I would like to convey my heartful thanks to
……………………….. (Computer Science) who
always gave valuable suggestions & guidance for
completion of my project.
He helped me to understand & remember important
details of the project. My project has been a success
only because of his guidance.
I am especially indented & I am also beholden to my
friends. And finally I thank to the members of my
family for their support & encouragement.
CERTIFICATE
This is to certify that ……………………. of
………….. of
…………………………………… has completed
his project under my supervision. He has taken
proper care & shown sincerity in completion of
this project.
I certify that this project is up to my
expectation & as per the guideline issued by
CBSE.
…………………………………….
(Computer Science faculty )
Content
1. Introduction
2. Source Code
3. Output
4. Requirement
5. Advantages and disadvantages
6. Conclusion
7. System design
This project STUDENT REPORT CARD SYSTEM includes facilities of
registration, search, display, modification, deletion of student
information about the marks and their name and rolls number.
This software searches the student information on the basis of
roll number which is store in the record.
The software used for small schools for maintaining their
records related to report card and marks of student and cost
savings.
//***************************************************************
// HEADER FILE USED IN PROJECT
//****************************************************************
#include<iostream.h>
#include<fstream.h>
#include<iomanip.h>
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
void entry_menu();
int checkpass();
int selectgroup();
void intromain();
void intro();
void display_all();
void display_allrec();
int getrollno();
void modify_record(int n);
void delete_record(int n);
void againopenandclose();
void reportcard(int c);
//***************************************************************
// CLASS USED IN PROJECT
//****************************************************************
class student
{ int group;
int rollno;
char name[50];
int p_marks,c_marks,m_marks,e_marks,cs_marks,b_marks,phyed_marks;
int eco_marks,bstud_marks,account_marks,total;
float per;
char grade;
void calculate(int c); //function to calculate grade
public:
student()
{
rollno=0;group=0;p_marks=0;c_marks=0;m_marks=0;e_marks=0;
cs_marks=0;b_marks=0;eco_marks=0;phyed_marks=0;bstud_marks=0;
account_marks=0;total=0;per=0.00;
}
void getdatamulti(int c,int rn1);
void showdatamulti();
void showall(int c);
void reportcard();
void modifydata(int n1,char snm[15],int grp);
int retrollno()
{ return rollno; }
char *getnm()
{ return name; }
int getgroup()
{ return group; }
}; //class ends here
//*****************************************************
// report card of the student
//****************************************************
void student::reportcard()
{
clrscr();
gotoxy(1,2);
cout<<"**************************DOON PUBLIC SCHOOOL,HALDWANI**************************";
gotoxy(1,3);
cout<<"********************************************************************************";
gotoxy(24,4); cout<<"-------------REPORT CARD-------------";
gotoxy(1,5);
cout<<"================================================================================";
gotoxy(5,6); cout<<"ROLL NO:";
gotoxy(18,6); cout<<rollno;
gotoxy(40,6); cout<<"NAME OF STUDENT:";
gotoxy(60,6); cout<<name;
gotoxy(1,7);
cout<<"================================================================================";
gotoxy(12,8); cout<<"------------------------------------------------------------|";
gotoxy(11,8); cout<<"|";
gotoxy(15,9); cout<<"S.NO";
gotoxy(25,8); cout<<"|";
gotoxy(30,9); cout<<"SUBJECTS";
gotoxy(48,8); cout<<"|";
gotoxy(55,9); cout<<"MARKS";
gotoxy(65,8); cout<<"|";
gotoxy(12,10);cout<<"------------------------------------------------------------|";
gotoxy(11,10);cout<<"|";
gotoxy(25,10);cout<<"|";
gotoxy(48,10);cout<<"|";
gotoxy(65,10);cout<<"|";
//**********************subjects with marks column wise*******************
switch(group)
{
case 1:
gotoxy(11,11);cout<<"|";
gotoxy(15,11);cout<<"1.";
gotoxy(25,11);cout<<"|";
gotoxy(30,11);cout<<"ENGLISH";
gotoxy(48,11);cout<<"|";
gotoxy(55,11);cout<<e_marks;
gotoxy(65,11);cout<<"|";
gotoxy(72,11);cout<<"|";
//**************second subject
gotoxy(11,12);cout<<"|";
gotoxy(15,12);cout<<"2.";
gotoxy(25,12);cout<<"|";
gotoxy(30,12);cout<<"PHYSICS";
gotoxy(48,12);cout<<"|";
gotoxy(55,12);cout<<p_marks;
gotoxy(65,12);cout<<"|";
gotoxy(72,12);cout<<"|";
//*****************************************
//**************third subject
gotoxy(11,13);cout<<"|";
gotoxy(15,13);cout<<"3.";
gotoxy(25,13);cout<<"|";
gotoxy(30,13);cout<<"CHEMISTRY";
gotoxy(48,13);cout<<"|";
gotoxy(55,13);cout<<c_marks;
gotoxy(65,13);cout<<"|";
gotoxy(72,13);cout<<"|";
//**************third subject
gotoxy(11,14);cout<<"|";
gotoxy(15,14);cout<<"4.";
gotoxy(25,14);cout<<"|";
gotoxy(30,14);cout<<"MATHS";
gotoxy(48,14);cout<<"|";
gotoxy(55,14);cout<<m_marks;
gotoxy(65,14);cout<<"|";
gotoxy(72,14);cout<<"|";
//**************third subject
gotoxy(11,15);cout<<"|";
gotoxy(15,15);cout<<"5.";
gotoxy(25,15);cout<<"|";
gotoxy(30,15);cout<<"PHYSICAL EDUCATION";
gotoxy(48,15);cout<<"|";
gotoxy(55,15);cout<<phyed_marks;
gotoxy(65,15);cout<<"|";
gotoxy(72,15);cout<<"|";
break;
case 2:
//**********************first subject*****************
gotoxy(11,11);cout<<"|";
gotoxy(15,11);cout<<"1.";
gotoxy(25,11);cout<<"|";
gotoxy(30,11);cout<<"ENGLISH:";
gotoxy(48,11);cout<<"|";
gotoxy(55,11);cout<<e_marks;
gotoxy(65,11);cout<<"|";
gotoxy(72,11);cout<<"|";
//**************second subject
gotoxy(11,12);cout<<"|";
gotoxy(15,12);cout<<"2.";
gotoxy(25,12);cout<<"|";
gotoxy(30,12);cout<<"PHYSICS:";
gotoxy(48,12);cout<<"|";
gotoxy(55,12);cout<<p_marks;
gotoxy(65,12);cout<<"|";
gotoxy(72,12);cout<<"|";
//*****************************************
//**************third subject
gotoxy(11,13);cout<<"|";
gotoxy(15,13);cout<<"3.";
gotoxy(25,13);cout<<"|";
gotoxy(30,13);cout<<"CHEMISTRY:";
gotoxy(48,13);cout<<"|";
gotoxy(55,13);cout<<c_marks;
gotoxy(65,13);cout<<"|";
gotoxy(72,13);cout<<"|";
//**************fourth subject
gotoxy(11,14);cout<<"|";
gotoxy(15,14);cout<<"4.";
gotoxy(25,14);cout<<"|";
gotoxy(30,14);cout<<"MATHS:";
gotoxy(48,14);cout<<"|";
gotoxy(55,14);cout<<m_marks;
gotoxy(65,14);cout<<"|";
gotoxy(72,14);cout<<"|";
//**************fifth subject
gotoxy(11,15);cout<<"|";
gotoxy(15,15);cout<<"5.";
gotoxy(25,15);cout<<"|";
gotoxy(30,15);cout<<"COMPUTER SCIENCE:";
gotoxy(48,15);cout<<"|";
gotoxy(55,15);cout<<cs_marks;
gotoxy(65,15);cout<<"|";
gotoxy(72,15);cout<<"|";
break;
case 3:
//**********************first subject*****************
gotoxy(11,11);cout<<"|";
gotoxy(15,11);cout<<"1.";
gotoxy(25,11);cout<<"|";
gotoxy(30,11);cout<<"ENGLISH:";
gotoxy(48,11);cout<<"|";
gotoxy(55,11);cout<<e_marks;
gotoxy(65,11);cout<<"|";
gotoxy(72,11);cout<<"|";
//**************second subject
gotoxy(11,12);cout<<"|";
gotoxy(15,12);cout<<"2.";
gotoxy(25,12);cout<<"|";
gotoxy(30,12);cout<<"PHYSICS:";
gotoxy(48,12);cout<<"|";
gotoxy(55,12);cout<<p_marks;
gotoxy(65,12);cout<<"|";
gotoxy(72,12);cout<<"|";
//*****************************************
//**************third subject
gotoxy(11,13);cout<<"|";
gotoxy(15,13);cout<<"3.";
gotoxy(25,13);cout<<"|";
gotoxy(30,13);cout<<"CHEMISTRY:";
gotoxy(48,13);cout<<"|";
gotoxy(55,13);cout<<c_marks;
gotoxy(65,13);cout<<"|";
gotoxy(72,13);cout<<"|";
//**************fourth subject
gotoxy(11,14);cout<<"|";
gotoxy(15,14);cout<<"4.";
gotoxy(25,14);cout<<"|";
gotoxy(30,14);cout<<"MATHS:";
gotoxy(48,14);cout<<"|";
gotoxy(55,14);cout<<m_marks;
gotoxy(65,14);cout<<"|";
gotoxy(72,14);cout<<"|";
//**************fifth subject
gotoxy(11,15);cout<<"|";
gotoxy(15,15);cout<<"5.";
gotoxy(25,15);cout<<"|";
gotoxy(30,15);cout<<"BIOLOGY:";
gotoxy(48,15);cout<<"|";
gotoxy(55,15);cout<<b_marks;
gotoxy(65,15);cout<<"|";
gotoxy(72,15);cout<<"|";
break;
case 4:
//**********************first subject*****************
gotoxy(11,11);cout<<"|";
gotoxy(15,11);cout<<"1.";
gotoxy(25,11);cout<<"|";
gotoxy(30,11);cout<<"ENGLISH:";
gotoxy(48,11);cout<<"|";
gotoxy(55,11);cout<<e_marks;
gotoxy(65,11);cout<<"|";
gotoxy(72,11);cout<<"|";
//**************second subject
gotoxy(11,12);cout<<"|";
gotoxy(15,12);cout<<"2.";
gotoxy(25,12);cout<<"|";
gotoxy(30,12);cout<<"PHYSICS:";
gotoxy(48,12);cout<<"|";
gotoxy(55,12);cout<<p_marks;
gotoxy(65,12);cout<<"|";
gotoxy(72,12);cout<<"|";
//*****************************************
//**************third subject
gotoxy(11,13);cout<<"|";
gotoxy(15,13);cout<<"3.";
gotoxy(25,13);cout<<"|";
gotoxy(30,13);cout<<"CHEMISTRY:";
gotoxy(48,13);cout<<"|";
gotoxy(55,13);cout<<c_marks;
gotoxy(65,13);cout<<"|";
gotoxy(72,13);cout<<"|";
//**************fourth subject
gotoxy(11,14);cout<<"|";
gotoxy(15,14);cout<<"4.";
gotoxy(25,14);cout<<"|";
gotoxy(30,14);cout<<"BIOLOGY:";
gotoxy(48,14);cout<<"|";
gotoxy(55,14);cout<<b_marks;
gotoxy(65,14);cout<<"|";
gotoxy(72,14);cout<<"|";
//**************fifth subject
gotoxy(11,15);cout<<"|";
gotoxy(15,15);cout<<"5.";
gotoxy(25,15);cout<<"|";
gotoxy(30,15);cout<<"PHYSICAL EDUCATION";
gotoxy(48,15);cout<<"|";
gotoxy(55,15);cout<<phyed_marks;
gotoxy(65,15);cout<<"|";
gotoxy(72,15);cout<<"|";
break;
case 5:
//**********************first subject*****************
gotoxy(11,11);cout<<"|";
gotoxy(15,11);cout<<"1.";
gotoxy(25,11);cout<<"|";
gotoxy(30,11);cout<<"ENGLISH:";
gotoxy(48,11);cout<<"|";
gotoxy(55,11);cout<<e_marks;
gotoxy(65,11);cout<<"|";
gotoxy(72,11);cout<<"|";
//**************second subject
gotoxy(11,12);cout<<"|";
gotoxy(15,12);cout<<"2.";
gotoxy(25,12);cout<<"|";
gotoxy(30,12);cout<<"PHYSICS:";
gotoxy(48,12);cout<<"|";
gotoxy(55,12);cout<<p_marks;
gotoxy(65,12);cout<<"|";
gotoxy(72,12);cout<<"|";
//*****************************************
//**************third subject
gotoxy(11,13);cout<<"|";
gotoxy(15,13);cout<<"3.";
gotoxy(25,13);cout<<"|";
gotoxy(30,13);cout<<"CHEMISTRY:";
gotoxy(48,13);cout<<"|";
gotoxy(55,13);cout<<c_marks;
gotoxy(65,13);cout<<"|";
gotoxy(72,13);cout<<"|";
//**************fourth subject
gotoxy(11,14);cout<<"|";
gotoxy(15,14);cout<<"4.";
gotoxy(25,14);cout<<"|";
gotoxy(30,14);cout<<"BIOLOGY:";
gotoxy(48,14);cout<<"|";
gotoxy(55,14);cout<<b_marks;
gotoxy(65,14);cout<<"|";
gotoxy(72,14);cout<<"|";
//**************fifth subject
gotoxy(11,15);cout<<"|";
gotoxy(15,15);cout<<"5.";
gotoxy(25,15);cout<<"|";
gotoxy(30,15);cout<<"COMPUTER SCIENCE";
gotoxy(48,15);cout<<"|";
gotoxy(55,15);cout<<cs_marks;
gotoxy(65,15);cout<<"|";
gotoxy(72,15);cout<<"|";
break;
case 6:
//**********************first subject*****************
gotoxy(11,11);cout<<"|";
gotoxy(15,11);cout<<"1.";
gotoxy(25,11);cout<<"|";
gotoxy(30,11);cout<<"ENGLISH:";
gotoxy(48,11);cout<<"|";
gotoxy(55,11);cout<<e_marks;
gotoxy(65,11);cout<<"|";
gotoxy(72,11);cout<<"|";
//**************second subject
gotoxy(11,12);cout<<"|";
gotoxy(15,12);cout<<"2.";
gotoxy(25,12);cout<<"|";
gotoxy(30,12);cout<<"ACCOUNTS:";
gotoxy(48,12);cout<<"|";
gotoxy(55,12);cout<<account_marks;
gotoxy(65,12);cout<<"|";
gotoxy(72,12);cout<<"|";
//*****************************************
//**************third subject
gotoxy(11,13);cout<<"|";
gotoxy(15,13);cout<<"3.";
gotoxy(25,13);cout<<"|";
gotoxy(30,13);cout<<"BUSINESS STUDIES:";
gotoxy(48,13);cout<<"|";
gotoxy(55,13);cout<<bstud_marks;
gotoxy(65,13);cout<<"|";
gotoxy(72,13);cout<<"|";
//**************fourth subject
gotoxy(11,14);cout<<"|";
gotoxy(15,14);cout<<"4.";
gotoxy(25,14);cout<<"|";
gotoxy(30,14);cout<<"ECONOMICS:";
gotoxy(48,14);cout<<"|";
gotoxy(55,14);cout<<eco_marks;
gotoxy(65,14);cout<<"|";
gotoxy(72,14);cout<<"|";
//**************fifth subject
gotoxy(11,15);cout<<"|";
gotoxy(15,15);cout<<"5.";
gotoxy(25,15);cout<<"|";
gotoxy(30,15);cout<<"PHYSICAL EDUCATION";
gotoxy(48,15);cout<<"|";
gotoxy(55,15);cout<<phyed_marks;
gotoxy(65,15);cout<<"|";
gotoxy(72,15);cout<<"|";
break;
case 7:
//**********************first subject*****************
gotoxy(11,11);cout<<"|";
gotoxy(15,11);cout<<"1.";
gotoxy(25,11);cout<<"|";
gotoxy(30,11);cout<<"ENGLISH:";
gotoxy(48,11);cout<<"|";
gotoxy(55,11);cout<<e_marks;
gotoxy(65,11);cout<<"|";
gotoxy(72,11);cout<<"|";
//**************second subject
gotoxy(11,12);cout<<"|";
gotoxy(15,12);cout<<"2.";
gotoxy(25,12);cout<<"|";
gotoxy(30,12);cout<<"ACCOUNTS:";
gotoxy(48,12);cout<<"|";
gotoxy(55,12);cout<<account_marks;
gotoxy(65,12);cout<<"|";
gotoxy(72,12);cout<<"|";
//*****************************************
//**************third subject
gotoxy(11,13);cout<<"|";
gotoxy(15,13);cout<<"3.";
gotoxy(25,13);cout<<"|";
gotoxy(30,13);cout<<"BUSINESS STUDIES:";
gotoxy(48,13);cout<<"|";
gotoxy(55,13);cout<<bstud_marks;
gotoxy(65,13);cout<<"|";
gotoxy(72,13);cout<<"|";
//**************fourth subject
gotoxy(11,14);cout<<"|";
gotoxy(15,14);cout<<"4.";
gotoxy(25,14);cout<<"|";
gotoxy(30,14);cout<<"ECONOMICS:";
gotoxy(48,14);cout<<"|";
gotoxy(55,14);cout<<eco_marks;
gotoxy(65,14);cout<<"|";
gotoxy(72,14);cout<<"|";
//**************fifth subject
gotoxy(11,15);cout<<"|";
gotoxy(15,15);cout<<"5.";
gotoxy(25,15);cout<<"|";
gotoxy(30,15);cout<<"COMPUTER SCIENCE";
gotoxy(48,15);cout<<"|";
gotoxy(55,15);cout<<cs_marks;
gotoxy(65,15);cout<<"|";
gotoxy(72,15);cout<<"|";
break;
}
gotoxy(12,16);cout<<"------------------------------------------------------------|";
gotoxy(11,16);cout<<"|";
gotoxy(25,16);cout<<"|";
gotoxy(48,16);cout<<"|";
gotoxy(65,16);cout<<"|";
//*******************total per and grade of the student****************
gotoxy(8,18); cout<<"TOTAL:";
gotoxy(17,18);cout<<total;
gotoxy(45,18);cout<<"PERCENTAGE:";
gotoxy(60,18);cout<<per;
gotoxy(8,20);cout<<"MARKS IN WORDS:";
gotoxy(25,20);cout<<"THIRTY HUNDRED FOURTY";
gotoxy(24,22);cout<<"-----------DIVISION:";
gotoxy(48,22);
switch(grade)
{
case 'A': cout<<"FIRST";
break;
case 'B': cout<<"SECOND";
break;
case 'C': cout<<"THIRD";
break;
case 'D': cout<<"FAIL";
break;
}
cout<<"-----------------";
}
//************report card ends here******************
//*****************************************************8
// modify the records of the student
//*****************************************************
void student::modifydata(int n1,char snm[15],int grp)
{
char tmpnm[50]="blank";
gotoxy(5,17);
cout<<"===================WANT TO MODIFY NAME===============================";
gotoxy(10,18); cout<<"Roll No:";
rollno=n1; gotoxy(18,18);
cout<<rollno; gotoxy(28,18);
strcpy(name,snm); cout<<"NAME OF STUDENT:";
gotoxy(50,18); cout<<name;
gotoxy(10,19); cout<<"Want to change the name";
gotoxy(40,19); int flag=0;
while(1)
{
gets(tmpnm);
if(strlen(tmpnm)!=0)
{
flag=1;
break;
}
if(strlen(tmpnm)==0)
{ flag=0;
break;
}
}
if(flag==1)
{ strcpy(name,tmpnm);
}
gotoxy(5,21);
cout<<"=====================================================================";
switch(grp)
{
case 1:
group=1;gotoxy(1,22);
cout<<"********MODIFY**MARKS OF FIVE SUBJECTS[PCM WITH PHY EDU.]*********************";
gotoxy(1,23); cout<<"ENGLISH:";
gotoxy(15,23);cin>>e_marks;
gotoxy(30,23);cout<<"PHYSICS:";
gotoxy(45,23);cin>>p_marks;
gotoxy(50,23);cout<<"CHEMISTRY:";
gotoxy(61,23);cin>>c_marks;
gotoxy(1,24);cout<<"MATHS:";
gotoxy(15,24);cin>>m_marks;
gotoxy(35,24);cout<<"PHYSICAL EDUCATION:";
gotoxy(58,24);cin>>phyed_marks;
calculate(1);
break;
case 2: group=2;gotoxy(1,22);
cout<<"*********MODIFY**MARKS OF FIVE SUBJECTS[PCM WITH COMP.SC.]*******************";
gotoxy(1,23); cout<<"ENGLISH:";
gotoxy(15,23);cin>>e_marks;
gotoxy(30,23);cout<<"PHYSICS:";
gotoxy(45,23);cin>>p_marks;
gotoxy(50,23);cout<<"CHEMISTRY:";
gotoxy(61,23);cin>>c_marks;
gotoxy(1,24);cout<<"MATHS:";
gotoxy(15,24);cin>>m_marks;
gotoxy(35,24);cout<<"COMPUTER SCIENCE:";
gotoxy(58,24);cin>>cs_marks;
calculate(2);
break;
case 3:
group=3;gotoxy(1,22);
cout<<"*******MODIFY**MARKS OF FIVE SUBJECTS[PCM WITH BIO.]*******************";
gotoxy(1,23);cout<<"ENGLISH:";
gotoxy(15,23);cin>>e_marks;
gotoxy(30,23);cout<<"PHYSICS:";
gotoxy(45,23);cin>>p_marks;
gotoxy(50,23);cout<<"CHEMISTRY:";
gotoxy(61,23);cin>>c_marks;
gotoxy(1,24);cout<<"MATHS:";
gotoxy(15,24);cin>>m_marks;
gotoxy(35,24);cout<<"BIOLOGY:";
gotoxy(58,24);cin>>b_marks;
calculate(3);
break;
case 4:
group=4;gotoxy(1,22);
cout<<"*******MODIFY**MARKS OF FIVE SUBJECTS[PCB WITH PHY.ED.]*******************";
gotoxy(1,23);cout<<"ENGLISH:";
gotoxy(15,23);cin>>e_marks;
gotoxy(30,23);cout<<"PHYSICS:";
gotoxy(45,23);cin>>p_marks;
gotoxy(50,23);cout<<"CHEMISTRY:";
gotoxy(61,23);cin>>c_marks;
gotoxy(1,24);cout<<"BIOLOGY::";
gotoxy(15,24);cin>>b_marks;
gotoxy(35,24);cout<<"PHYSICAL EDUCATION";
gotoxy(58,24);cin>>phyed_marks;
calculate(4);
break;
case 5:group=5;gotoxy(1,22);
cout<<"*******MODIFY***MARKS OF FIVE SUBJECTS[PCB WITH COMP.SCI.]*******************";
gotoxy(1,23); cout<<"ENGLISH:";
gotoxy(15,23);cin>>e_marks;
gotoxy(30,23);cout<<"PHYSICS:";
gotoxy(45,23);cin>>p_marks;
gotoxy(50,23);cout<<"CHEMISTRY:";
gotoxy(61,23);cin>>c_marks;
gotoxy(1,24); cout<<"BIOLOGY::";
gotoxy(15,24);cin>>b_marks;
gotoxy(35,24);cout<<"COMPUTER SCIENCE";
gotoxy(58,24);cin>>cs_marks;
calculate(5);
break;
case 6:
group=6;gotoxy(1,22);
cout<<"********MODIFY**MARKS OF FIVE SUBJECTS[COMMERCE WITH PHY.ED.]*****************";
gotoxy(1,23);cout<<"ENGLISH:";
gotoxy(15,23);cin>>e_marks;
gotoxy(30,23);cout<<"ACCOUNTS:";
gotoxy(45,23);cin>>account_marks;
gotoxy(50,23);cout<<"BUSINESS STUDIES:";
gotoxy(70,23);cin>>bstud_marks;
gotoxy(1,24);cout<<"ECONOMICS:";
gotoxy(15,24);cin>>eco_marks;
gotoxy(35,24);cout<<"PHYSICAL EDUCATION";
gotoxy(58,24);cin>>phyed_marks;
calculate(6);
break;
case 7: group=7;gotoxy(1,22);
cout<<"*****MODIFY***MARKS OF FIVE SUBJECTS[COMMERCE WITH COMP.SCI.]**************";
gotoxy(1,23);cout<<"ENGLISH:";
gotoxy(15,23);cin>>e_marks;
gotoxy(30,23);cout<<"ACCOUNTS:";
gotoxy(45,23);cin>>account_marks;
gotoxy(50,23);cout<<"BUSINESS STUDIES:";
gotoxy(70,23);cin>>bstud_marks;
gotoxy(1,24);cout<<"ECONOMICS:";
gotoxy(15,24);cin>>eco_marks;
gotoxy(35,24);cout<<"PHYSICAL EDUCATION";
gotoxy(58,24);cin>>cs_marks;
calculate(7);
break;
}
}
//**********************modification exists************************************
//*****************************************************************************
// save the records of student on the basis of subject choice:
//*****************************************************************************
void student::getdatamulti(int c,int rn1)
{
gotoxy(5,7);
cout<<"======================================================================";
gotoxy(10,8); cout<<"Roll No:";
rollno=rn1; gotoxy(18,8);
cout<<rollno; gotoxy(35,8);
cout<<"NAME OF STUDENT:";
gotoxy(54,8); cin>>name;
gotoxy(5,9); cout<<"=====================================================================";
switch(c)
{
case 1:
group=1;gotoxy(1,10);
cout<<"*****************MARKS OF FIVE SUBJECTS[PCM WITH PHY EDU.]*********************";
gotoxy(10,11);cout<<"ENGLISH:";
gotoxy(20,11);cin>>e_marks;
gotoxy(35,11);cout<<"PHYSICS:";
gotoxy(45,11);cin>>p_marks;
gotoxy(10,12);cout<<"CHEMISTRY:";
gotoxy(20,12);cin>>c_marks;
gotoxy(35,12);cout<<"MATHS:";
gotoxy(45,12);cin>>m_marks;
gotoxy(10,13);cout<<"PHYSICAL EDUCATION:";
gotoxy(32,13);cin>>phyed_marks;
calculate(1);
break;
case 2: group=2;gotoxy(1,10);
cout<<"*****************MARKS OF FIVE SUBJECTS[PCM WITH COMP.SC.]*******************";
gotoxy(10,11);cout<<"ENGLISH:";
gotoxy(20,11);cin>>e_marks;
gotoxy(35,11);cout<<"PHYSICS:";
gotoxy(45,11);cin>>p_marks;
gotoxy(10,12);cout<<"CHEMISTRY:";
gotoxy(20,12);cin>>c_marks;
gotoxy(35,12);cout<<"MATHS:";
gotoxy(45,12);cin>>m_marks;
gotoxy(10,13);cout<<"COMPUTER SCIENCE:";
gotoxy(32,13);cin>>cs_marks;
calculate(2);
break;
case 3: group=3;gotoxy(1,10);
cout<<"****************MARKS OF FIVE SUBJECTS[PCM WITH BIO.]*******************";
gotoxy(10,11);cout<<"ENGLISH:";
gotoxy(20,11);cin>>e_marks;
gotoxy(35,11);cout<<"PHYSICS:";
gotoxy(45,11);cin>>p_marks;
gotoxy(10,12);cout<<"CHEMISTRY:";
gotoxy(20,12);cin>>c_marks;
gotoxy(35,12);cout<<"MATHS:";
gotoxy(45,12);cin>>m_marks;
gotoxy(10,13);cout<<"BIOLOGY:";
gotoxy(32,13);cin>>b_marks;
calculate(3);
break;
case 4:
group=4;gotoxy(1,10);
cout<<"****************MARKS OF FIVE SUBJECTS[PCB WITH PHY.ED.]*******************";
gotoxy(10,11);cout<<"ENGLISH:";
gotoxy(20,11);cin>>e_marks;
gotoxy(35,11);cout<<"PHYSICS:";
gotoxy(45,11);cin>>p_marks;
gotoxy(10,12);cout<<"CHEMISTRY:";
gotoxy(20,12);cin>>c_marks;
gotoxy(35,12);cout<<"BIOLOGY::";
gotoxy(45,12);cin>>b_marks;
gotoxy(10,13);cout<<"PHYSICAL EDUCATION";
gotoxy(32,13);cin>>phyed_marks;
calculate(4);
break;
case 5:
group=5;gotoxy(1,10);
cout<<"****************MARKS OF FIVE SUBJECTS[PCB WITH COMP.SCI.]*******************";
gotoxy(10,11);cout<<"ENGLISH:";
gotoxy(20,11);cin>>e_marks;
gotoxy(35,11);cout<<"PHYSICS:";
gotoxy(45,11);cin>>p_marks;
gotoxy(10,12);cout<<"CHEMISTRY:";
gotoxy(20,12);cin>>c_marks;
gotoxy(35,12);cout<<"BIOLOGY::";
gotoxy(45,12);cin>>b_marks;
gotoxy(10,13);cout<<"COMPUTER SCIENCE";
gotoxy(32,13);cin>>cs_marks;
calculate(5);
break;
case 6:
group=6;gotoxy(1,10);
cout<<"****************MARKS OF FIVE SUBJECTS[COMMERCE WITH PHY.ED.]*****************";
gotoxy(10,11);cout<<"ENGLISH:";
gotoxy(20,11);cin>>e_marks;
gotoxy(35,11);cout<<"ACCOUNTS:";
gotoxy(45,11);cin>>account_marks;
gotoxy(10,12);cout<<"BUSINESS STUDIES:";
gotoxy(30,12);cin>>bstud_marks;
gotoxy(38,12);cout<<"ECONOMICS:";
gotoxy(52,12);cin>>eco_marks;
gotoxy(10,13);cout<<"PHYSICAL EDUCATION";
gotoxy(45,13);cin>>phyed_marks;
calculate(6);
break;
case 7:
group=7;gotoxy(1,10);
cout<<"**********MARKS OF FIVE SUBJECTS[COMMERCE WITH COMP.SCI.]****************";
gotoxy(10,11);cout<<"ENGLISH:";
gotoxy(20,11);cin>>e_marks;
gotoxy(35,11);cout<<"ACCOUNTS:";
gotoxy(45,11);cin>>account_marks;
gotoxy(10,12);cout<<"BUSINESS STUDIES:";
gotoxy(32,12);cin>>bstud_marks;
gotoxy(38,12);cout<<"ECONOMICS:";
gotoxy(52,12);cin>>eco_marks;
gotoxy(10,13);cout<<"PHYSICAL EDUCATION";
gotoxy(45,13);cin>>cs_marks;
calculate(7);
break;
}
}
//************************calculate multiple*********************************
void student::calculate(int c)
{
switch(c)
{
case 1:
total=p_marks+c_marks+m_marks+e_marks+phyed_marks;
per=(p_marks+c_marks+m_marks+e_marks+phyed_marks)/5.0;
break;
case 2:
total=p_marks+c_marks+m_marks+e_marks+cs_marks;
per=(p_marks+c_marks+m_marks+e_marks+cs_marks)/5.0;
break;
case 3:
total=p_marks+c_marks+m_marks+e_marks+b_marks;
per=(p_marks+c_marks+m_marks+e_marks+b_marks)/5.0;
break;
case 4:
total=p_marks+c_marks+b_marks+e_marks+phyed_marks;
per=(p_marks+c_marks+b_marks+e_marks+phyed_marks)/5.0;
break;
case 5:
total=p_marks+c_marks+b_marks+e_marks+cs_marks;
per=(p_marks+c_marks+b_marks+e_marks+cs_marks)/5.0;
break;
case 6:
total=eco_marks+phyed_marks+bstud_marks+account_marks+e_marks;
per=(eco_marks+phyed_marks+bstud_marks+account_marks+e_marks)/5.0;
break;
case 7:
total=eco_marks+cs_marks+bstud_marks+account_marks+e_marks;
per=(eco_marks+cs_marks+bstud_marks+account_marks+e_marks)/5.0;
break;
}
if(per>=60)
grade='A';
else if(per>=50)
grade='B';
else if(per>=33)
grade='C';
else
grade='F';
}
//****************************************************************************
// SHOW RECORD OF STUDENT ON THE BASIS OF SUBJECT
//****************************************************************************
void student::showdatamulti()
{
gotoxy(5,7);
cout<<"======================================================================";
gotoxy(10,8); cout<<"Roll No:";
gotoxy(18,8); cout<<rollno;
gotoxy(35,8); cout<<"NAME OF STUDENT:";
gotoxy(54,8); cout<<name;
gotoxy(5,9);
cout<<"=====================================================================";
switch(group)
{
case 1:
gotoxy(1,10);
cout<<"*****************MARKS OF FIVE SUBJECTS[PCM WITH PHY EDU.]*********************";
gotoxy(10,11);cout<<"ENGLISH:";
gotoxy(20,11); cout<<e_marks;
gotoxy(35,11); cout<<"PHYSICS:";
gotoxy(45,11); cout<<p_marks;
gotoxy(10,12); cout<<"CHEMISTRY:";
gotoxy(20,12); cout<<c_marks;
gotoxy(35,12); cout<<"MATHS:";
gotoxy(45,12); cout<<m_marks;
gotoxy(10,13); cout<<"PHYSICAL EDUCATION:";
gotoxy(32,13); cout<<phyed_marks;
//calculate(1);
break;
case 2: gotoxy(1,10);
cout<<"*****************MARKS OF FIVE SUBJECTS[PCM WITH COMP.SC.]*******************";
gotoxy(10,11); cout<<"ENGLISH:";
gotoxy(20,11); cout<<e_marks;
gotoxy(35,11); cout<<"PHYSICS:";
gotoxy(45,11); cout<<p_marks;
gotoxy(10,12); cout<<"CHEMISTRY:";
gotoxy(20,12); cout<<c_marks;
gotoxy(35,12); cout<<"MATHS:";
gotoxy(45,12); cout<<m_marks;
gotoxy(10,13); cout<<"COMPUTER SCIENCE:";
gotoxy(32,13); cout<<cs_marks;
//calculate(2);
break;
case 3: gotoxy(1,10);
cout<<"****************MARKS OF FIVE SUBJECTS[PCM WITH BIO.]*******************";
gotoxy(10,11); cout<<"ENGLISH:";
gotoxy(20,11); cout<<e_marks;
gotoxy(35,11); cout<<"PHYSICS:";
gotoxy(45,11); cout<<p_marks;
gotoxy(10,12); cout<<"CHEMISTRY:";
gotoxy(20,12); cout<<c_marks;
gotoxy(35,12); cout<<"MATHS:";
gotoxy(45,12); cout<<m_marks;
gotoxy(10,13); cout<<"BIOLOGY:";
gotoxy(32,13); cout<<b_marks;
//calculate(3);
break;
case 4: gotoxy(1,10);
cout<<"****************MARKS OF FIVE SUBJECTS[PCB WITH PHY.ED.]*******************";
gotoxy(10,11); cout<<"ENGLISH:";
gotoxy(20,11); cout<<e_marks;
gotoxy(35,11); cout<<"PHYSICS:";
gotoxy(45,11); cout<<p_marks;
gotoxy(10,12); cout<<"CHEMISTRY:";
gotoxy(20,12); cout<<c_marks;
gotoxy(35,12); cout<<"BIOLOGY::";
gotoxy(45,12); cout<<b_marks;
gotoxy(10,13); cout<<"PHYSICAL EDUCATION";
gotoxy(45,13); cout<<phyed_marks;
//calculate(4);
break;
case 5: gotoxy(1,10);
cout<<"****************MARKS OF FIVE SUBJECTS[PCB WITH COMP.SCI.]*******************";
gotoxy(10,11); cout<<"ENGLISH:";
gotoxy(20,11); cout<<e_marks;
gotoxy(35,11); cout<<"PHYSICS:";
gotoxy(45,11); cout<<p_marks;
gotoxy(10,12); cout<<"CHEMISTRY:";
gotoxy(20,12); cout<<c_marks;
gotoxy(35,12); cout<<"BIOLOGY::";
gotoxy(45,12); cout<<b_marks;
gotoxy(10,13); cout<<"COMPUTER SCIENCE";
gotoxy(45,13); cout<<cs_marks;
break;
case 6: gotoxy(1,10);
cout<<"****************MARKS OF FIVE SUBJECTS[COMMERCE WITH PHY.ED.]*****************";
gotoxy(10,11); cout<<"ENGLISH:";
gotoxy(20,11); cout<<e_marks;
gotoxy(35,11); cout<<"ACCOUNTS:";
gotoxy(45,11); cout<<account_marks;
gotoxy(10,12); cout<<"BUSINESS STUDIES:";
gotoxy(20,12); cout<<bstud_marks;
gotoxy(35,12); cout<<"ECONOMICS:";
gotoxy(45,12); cout<<eco_marks;
gotoxy(10,13); cout<<"PHYSICAL EDUCATION";
gotoxy(45,13); cout<<phyed_marks;
break;
case 7: gotoxy(1,10);
cout<<"**********MARKS OF FIVE SUBJECTS[COMMERCE WITH COMP.SCI.]****************";
gotoxy(10,11); cout<<"ENGLISH:";
gotoxy(20,11); cout<<e_marks;
gotoxy(35,11); cout<<"ACCOUNTS:";
gotoxy(45,11); cout<<account_marks;
gotoxy(10,12); cout<<"BUSINESS STUDIES:";
gotoxy(20,12); cout<<bstud_marks;
gotoxy(35,12); cout<<"ECONOMICS:";
gotoxy(45,12); cout<<eco_marks;
gotoxy(10,13); cout<<"COMPUTER SCIENCE";
gotoxy(45,13); cout<<cs_marks;
break;
}
}
//*************************************************************************
// show all the records of the student
//************************************************************************
//*********************************STUDENT**************************************
//rollno name Eng Maths Phys Chem Bio Acc. Eco. B.st. P.ED Comp.Sc.
void student::showall(int c)
{
gotoxy(1,c);cout<<rollno;
gotoxy(5,c);cout<<name;
gotoxy(21,c);cout<<e_marks;
gotoxy(28,c);
if(m_marks==0)
cout<<"--";
else
cout<<m_marks;
gotoxy(33,c);
if(p_marks==0)
cout<<"--";
else
cout<<p_marks;
gotoxy(39,c);
if(c_marks==0)
cout<<"--";
else
cout<<c_marks;
gotoxy(45,c);
if(b_marks==0)
cout<<"--";
else
cout<<b_marks;
gotoxy(50,c);
if(account_marks==0)
cout<<"--";
else
cout<<account_marks;
gotoxy(57,c);
if(eco_marks==0)
cout<<"--";
else
cout<<eco_marks;
gotoxy(63,c);
if(bstud_marks==0)
cout<<"--";
else
cout<<bstud_marks;
gotoxy(70,c);
if(phyed_marks==0)
cout<<"--";
else
cout<<phyed_marks;
gotoxy(75,c);
if(cs_marks==0)
cout<<"--";
else
cout<<cs_marks;
}
void write_student(int c)
{
student st;
int rnn;
ofstream outFile;
rnn=getrollno();
outFile.open("student.dat",ios::binary|ios::app);
clrscr(); intromain(); st.getdatamulti(c,rnn);
outFile.write((char *) &st, sizeof(student));
outFile.close(); gotoxy(10,20);
cout<<"**************Student record Has Been Created******************** ";
cin.ignore();
getch();
}
void display_sp(int n)
{
student st;
ifstream inFile;
inFile.open("student.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
int flag=0;
while(inFile.read((char *) &st, sizeof(student)))
{
if(st.retrollno()==n)
{ clrscr();
intromain();
st.showdatamulti();
flag=1;
}
}
inFile.close();
if(flag==0)
cout<<"nnrecord not exist";
getch();
}
//***************************************************************
// INTRODUCTION FUNCTION
//****************************************************************
void intro()
{ clrscr();
gotoxy(1,2);
cout<<"*********************************STUDENT**************************************";
gotoxy(1,3);
cout<<"*******************************REPORT CARD************************************";
gotoxy(1,4);
cout<<"*********************************PROJECT**************************************";
gotoxy(10,18);
cout<<"MADE BY : Poornima and divya ";
gotoxy(35,20);
cout<<"SCHOOL : DOON PUBLIC SCHOOL, HALDWANI";
gotoxy(1,22);
cout<<"-----------------------------PRESS ANY KEY------------------------------------";
getch();
clrscr();
}
void intromain()
{ clrscr();
gotoxy(1,2);
cout<<"*************************STUDENT**REPORT CARD**PROJECT************************";
gotoxy(1,3);
cout<<"******************************************************************************";
}
void main()
{
char ch;
int k=-111,no=0;
intro();
clrscr();
do
{
clrscr();
intromain();
gotoxy(20,6); cout<<"=================MAIN MENU====================";
gotoxy(28,7); cout<<"01. GENERATE REPORT CARD OR RESULT";
gotoxy(28,8); cout<<"02. ENTRY/EDIT OF STUDENT'S DETAIL'S";
gotoxy(28,9); cout<<" [administrator Only]";
gotoxy(28,10);cout<<"03. EXIT";
gotoxy(20,12);cout<<"==============================================";
gotoxy(25,14);cout<<"Please Select Your Option (1-3) ";
gotoxy(30,16);cin>>ch;
clrscr();
switch(ch)
{
case '1':
clrscr();intromain(); gotoxy(10,8);
cout<<"*****ENTER THE ROLL NUMBER TO BE SEARCHED TO PRINT REPORT CARD:";
gotoxy(55,9); cin>>no;
reportcard(no);
break;
case '2':
k=checkpass();
if(k==0)
{entry_menu();}
else
{ break;}
break;
case '3':exit(1);
break;
default :cout<<"a";
}
}while(ch!='3');
}
//***************************************************************
// ENTRY / EDIT MENU FUNCTION
//****************************************************************
void entry_menu()
{
char ch;
int k=-111; int num=0;
clrscr();
intromain();
gotoxy(20,6);
cout<<"=================MAIN MENU====================";
gotoxy(22,7);
cout<<"1.CREATE STUDENT RECORD";
gotoxy(22,8);
cout<<"2.DISPLAY ALL STUDENTS RECORDS";
gotoxy(22,9);
cout<<"3.SEARCH STUDENT RECORD ";
gotoxy(22,10);
cout<<"4.MODIFY STUDENT RECORD";
gotoxy(22,11);
cout<<"5.DELETE STUDENT RECORD";
gotoxy(22,12);
cout<<"6.BACK TO MAIN MENU";
gotoxy(18,13);
cout<<"Please Enter Your Choice (1-6) ";
gotoxy(55,13);
cin>>ch;
switch(ch)
{
case '1':
k=selectgroup();
switch(k)
{
case 1: write_student(1); break;
case 2:write_student(2); break;
case 3:write_student(3); break;
case 4:write_student(4); break;
case 5:write_student(5); break;
case 6:write_student(6); break;
case 7:write_student(7); break;
default:
cout<<"INVALID CHOICE:";
}
break;
case '2': //display all the student record tabular form
clrscr();
intromain();
display_allrec();
break;
case '3': //search and display student details
clrscr();
intromain();
gotoxy(10,8); cout<<"*****ENTER THE ROLL NUMBER TO BE SEARCHED:";
gotoxy(55,9); cin>>num;
display_sp(num);
break;
case '4': //search and display and modify the student details
clrscr();
intromain();gotoxy(10,8);
cout<<"*****ENTER THE ROLL NUMBER TO BE SEARCHED and to modify:";
gotoxy(55,9); cin>>num;
modify_record(num);
break;
case '5': //search and display and Delete the student details
clrscr();
intromain();gotoxy(10,8);
cout<<"*****ENTER THE ROLL NUMBER TO BE SEARCHED and to Delete:";
gotoxy(55,9); cin>>num;
delete_record(num);
break;
case '6':
break;
}
}
//***************************************************************
// ADMINISTRATOR USER NAME AND PASSWORD
//***************************************************************
int checkpass()
{
int tmp=-111;
char nm[20];
clrscr();intromain();
gotoxy(20,15);cout<<"PLEASE ENTER THE USER NAME:";
cin>>nm;gotoxy(20,18);
cout<<"PLEASE ENTER THE PASSWORD:";
cin>>tmp;
if(strcmp(nm,"karan")==0 && tmp==12345)
{ return 0;
}else
return 1;
}
//***************************************************************
// SELECT THE GROUP
//**************************************************************
int selectgroup()
{
int tmp=-111;
clrscr();
intromain();gotoxy(10,8);
cout<<"*************************SELECT YOUR GROUP***************************";
gotoxy(10,9);cout<<"*********************************************************************";
gotoxy(10,10);
cout<<"1-Physics/Chemistry/Maths With Physical Education";
gotoxy(10,11);
cout<<"2-Physics/Chemistry/Maths With Computer Science";
gotoxy(10,12);
cout<<"3-Physics/Chemistry/Maths With Biology";
gotoxy(10,13);
cout<<"4-Physics/Chemistry/Biology With Physical Education";
gotoxy(10,14);
cout<<"5-Physics/Chemistry/Biology With Computer Education";
gotoxy(10,15);
cout<<"6-Commerce With Physical Education";
gotoxy(10,16);
cout<<"7-Commerce With Computer Eductaion";
gotoxy(12,18);
cout<<"Enter the choice:";
gotoxy(35,18);
cin>>tmp;
return tmp;
}
//**********************************************************************
//function to display all the records of student
//**********************************************************************
void display_all()
{
//*********************************STUDENT**************************************
//rollno name Eng Maths Phys Chem Bio Acc. Eco. B.st. P.ED Comp.Sc.
clrscr();intromain();
gotoxy(1,5);
cout<<" **********************STUDENTS MARKS DETAILS***************************";
gotoxy(1,6);
cout<<"================================================================================";
gotoxy(1,7);
cout<<"RNo."<<setw(4)<<"NAME"<<setw(15)<<"ENG"<<setw(6)<<"MATHS"<<setw(6)<<"PHYS."<<setw(6)<<"CHEM."<<setw(6)<<"BIO.";
cout<<setw(6)<<"ACC."<<setw(6)<<"ECO."<<setw(6)<<"B.STUD."<<setw(6)<<"P.ED."<<setw(6)<<"COMP.SC.";
gotoxy(1,8);
cout<<"================================================================================";
}
//****************display record from the file**********************************
void display_allrec()
{
int r=0,col=10;
student st;
ifstream inFile;
inFile.open("student.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
display_all();
while(inFile.read((char *) &st, sizeof(student)))
{
if(r<=12)
{
r++;
st.showall(col);
col++;
}else
{
gotoxy(20,30); cout<<"--------------press any key------------------------";
getch(); clrscr();
display_all();
col=10;
r=0;
}
}inFile.close();
getch();
}
//********************check the rollno already given or not******
int getrollno()
{
ifstream objiff;
student st;
int count=0;
objiff.open("student.dat",ios::binary);
objiff.seekg(0,ios::beg);
if(!objiff)
{
cout<<"File could not be open !! Press any Key...";
getch();
}
//**************temporary hiding these lines
while(objiff.read((char *) &st, sizeof(student)))
{
count++;
}
//************************************************
//***********jump to the last line
objiff.seekg(count-sizeof(st),ios::beg);
objiff.read((char *) &st, sizeof(student));
count=st.retrollno();
count++;
objiff.close();
return count;
}
//**************************************************************
//************************************************************
// MODIFY RECORD
//**********************************************************
void modify_record(int n)
{
student st,temp;
char tmpnm[50];
ifstream inFile;
int fpos=-1;
inFile.open("student.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
int flag=0;
while(inFile.read((char *) &st, sizeof(student)))
{
if(st.retrollno()==n)
{ clrscr();
intromain();
st.showdatamulti();
flag=1;
}
}
inFile.close();
if(flag==0)
cout<<"nnrecord not exist";
else
{
//*******modifying the records starts here
fstream File;
File.open("student.dat",ios::binary|ios::in|ios::out);
if(!File)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
int flow1=0;
while(File.read((char *) &st, sizeof(student)))
{
if(st.retrollno()==n)
{ fpos=(int)File.tellg();
break;
}
}
File.seekp(fpos-sizeof(student),ios::beg);
strcpy(tmpnm,st.getnm());
flow1=st.getgroup();
switch(flow1)
{
case 1:
gotoxy(1,15); cout<<"*****************************************************************************";
gotoxy(1,16); cout<<"================ENTER NEW VALUES FOR THE RECORDS GIVEN
ABOVE=================";
temp.modifydata(n,tmpnm,flow1);
File.write((char *) &temp, sizeof(student));
break;
case 2:
gotoxy(1,15); cout<<"*****************************************************************************";
gotoxy(1,16); cout<<"================ENTER NEW VALUES FOR THE RECORDS GIVEN
ABOVE=================";
temp.modifydata(n,tmpnm,flow1);
File.write((char *) &temp, sizeof(student));
break;
case 3:
gotoxy(1,15); cout<<"*****************************************************************************";
gotoxy(1,16); cout<<"================ENTER NEW VALUES FOR THE RECORDS GIVEN
ABOVE=================";
temp.modifydata(n,tmpnm,flow1);
File.write((char *) &temp, sizeof(student));
break;
case 4:
gotoxy(1,15); cout<<"*****************************************************************************";
gotoxy(1,16); cout<<"================ENTER NEW VALUES FOR THE RECORDS GIVEN
ABOVE=================";
temp.modifydata(n,tmpnm,flow1);
File.write((char *) &temp, sizeof(student));
break;
case 5:
gotoxy(1,15); cout<<"*****************************************************************************";
gotoxy(1,16); cout<<"================ENTER NEW VALUES FOR THE RECORDS GIVEN
ABOVE=================";
temp.modifydata(n,tmpnm,flow1);
File.write((char *) &temp, sizeof(student));
break;
case 6:
gotoxy(1,15); cout<<"*****************************************************************************";
gotoxy(1,16); cout<<"================ENTER NEW VALUES FOR THE RECORDS GIVEN
ABOVE=================";
temp.modifydata(n,tmpnm,flow1);
File.write((char *) &temp, sizeof(student));
break;
case 7:gotoxy(1,15);
cout<<"*****************************************************************************";
gotoxy(1,16); cout<<"================ENTER NEW VALUES FOR THE RECORDS GIVEN
ABOVE=================";
temp.modifydata(n,tmpnm,flow1);
File.write((char *) &temp, sizeof(student));
break;
}
File.close();
}
}
//*********************************************************
//*****************************************************************************
// DELETE THE RECORD OF THE STUDENT
//****************************************************************************
void delete_record(int n)
{
student st;
ifstream inFile;
inFile.open("student.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
int flag=0;
while(inFile.read((char *) &st, sizeof(student)))
{
if(st.retrollno()==n)
{ clrscr();
intromain();
st.showdatamulti();
flag=1;
}
}
inFile.close();
char ch;
if(flag==0)
cout<<"nnrecord not exist";
else
{
//*******deletion of the records starts from here
gotoxy(1,15); cout<<"*****************************************************************************";
gotoxy(5,16);
cout<<"======DO YOU WANT TO DELETE THE RECORDS GIVEN ABOVE[YES(Y) OR NO (N)========";gotoxy(2,17);
cin>>ch;
if (toupper(ch)=='Y')
{
ofstream outFile;
outFile.open("Temp.dat",ios::binary);
ifstream objiff("student.dat",ios::binary);
objiff.seekg(0,ios::beg);
while(objiff.read((char *) &st, sizeof(student)))
{
if(st.retrollno()!=n)
{
outFile.write((char *) &st, sizeof(student));
}
}
outFile.close();
objiff.close();
remove("student.dat");
rename("Temp.dat","student.dat");
againopenandclose();
gotoxy(30,20);
cout<<"----------------------------Record Deleted----------------------------------";
}
}
getch();
}
void againopenandclose()
{
ifstream inFile;
student st;
inFile.open("student.dat",ios::binary);
if(!inFile)
{
getch();
return;
}
while(inFile.read((char *) &st, sizeof(student)))
{
}
inFile.close();
}
//*********************report card function**********************
void reportcard(int c)
{
ifstream objiff("student.dat",ios::binary);
student st;
//************************************************************************
if(!objiff)
{
cout<<"File could not be open !! Press any Key...";
getch();
return;
}
int flag=0;
while(objiff.read((char *) &st, sizeof(student)))
{
if(st.retrollno()==c)
{flag=1;
break;
}
}
if(flag==0)
{
cout<<"record doesnot exists";
}else
{ st.reportcard();
getch();
}
objiff.close();
}
//*************************search student ends here*********************
//**************************************************************
//***************************************************************
// END OF PROJECT
//***************************************************************
IF CHOICE IS: 2
IF CHOICE : 1
IF CHOICE IS 1 OR 2 , 3 ETC.
IF CHOICE IS 2: DISPLAY ALL RECORDS
IF CHOICE : 3 SEARCH AND DISPLAY
IF CHOICE : 4 SEARCH AND MODIFY
IF CHOICE : 1 REPORT CARD GENERATE
REQUIREMENTS
HARDWARE REQUIRED
• Printer, to print the required documents of the project
• Compact Drive
• Processor : intel
• Ram : 512 MB or more than 512MB
• Harddisk : 80 GB or more than 80GB.
SOFTWARE REQUIRED
• Operating system : Windows XP
• Turbo C++, for execution of program and Ms word, for
presentation of output.
ADVANTAGES
.
• We can edit the marks of the student easily and generate the report again
• It save the time of the teacher to calculate the percentage and the grade or rank and pass or
fail
• This software reduces paper work.
• It is easy to handle student’s record.
• This software saves the time.
• Information of each student stores permanently.
DISADVANTAGES
• This system suitable for only small schools.
• Online facility is not available.
• Though we have completed this project with all our effort but has certain limitation like it
cannot be operated in networking, the working of project is slow.
CONCLUSION
This software is efficient in maintaining student’s details and
can easily perform operations on student’s records. This
software also reduces the work load of the of teachers in school
as all the details are store in computer system and whenever
the detail marks of student needed it can be searched and
displayed on the screen.
In future, this system can launch on a web portal for easy
online entry of students details and marks and student and their
parents can login and check the marks and download the
reports of their children.
SYSTEM DESIGN
Then we began with the design phase of the system. System design is a solution, a
“HOW TO” approach to the creation of a new system. It translates system
requirements into ways by which they can be made operational. It is a
translational from a user oriented document to a document oriented
programmers. For that, it provides the understanding and procedural details
necessary for the implementation. Here we use Flowchart to supplement the
working of the new system. The system thus made should be reliable, durable and
above all should have least possible maintenance costs. It should overcome all the
drawbacks of the Old existing system and most important of all meet the user
requirements.
START
1-report card
2-administrator
3-exit
If choice= 1
If choice=2
If choice =3
then
STOP
Report card of the student Create the student
details/SEARCH/EDIT/DELETE
QUIT
BIBLIOGRAPHY
The great help from our faculty members and my project guide that led the successful
completion of the project. Besides that, I took the help of some books and websites to
develop the project. They are : --
Sumita Arora – Computer Science with C++
E. Balagurusami – C++
Robert Lafore – Turbo C++

More Related Content

What's hot

Python Project on Computer Shop
Python Project on Computer ShopPython Project on Computer Shop
Python Project on Computer Shop
vikram mahendra
 
C Programming Project
C Programming ProjectC Programming Project
C Programming Project
Vijayananda Mohire
 
Library Management System
Library Management SystemLibrary Management System
Library Management SystemAditya Shah
 
School Management (c++)
School Management (c++) School Management (c++)
School Management (c++)
Nirdhishwar Nirdhi
 
Banking Management System Project documentation
Banking Management System Project documentationBanking Management System Project documentation
Banking Management System Project documentation
Chaudhry Sajid
 
Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)
lokesh meena
 
Computer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingComputer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market Billing
Harsh Kumar
 
computer science with python project for class 12 cbse
computer science with python project for class 12 cbsecomputer science with python project for class 12 cbse
computer science with python project for class 12 cbse
manishjain598
 
library management system
library management systemlibrary management system
library management systemprabhat kumar
 
Student Management System
Student Management System Student Management System
Student Management System
Vinay Yadav
 
Banking Management System Project
Banking Management System ProjectBanking Management System Project
Banking Management System Project
Chaudhry Sajid
 
Hostel Management system Report
Hostel Management system ReportHostel Management system Report
Hostel Management system Report
Prasoon Rawat
 
Student management system
Student management systemStudent management system
Student management system
Amit Gandhi
 
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
ArkaSarkar23
 
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THBANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
SHAJUS5
 
BANK MANAGEMENT SYSTEM report
BANK MANAGEMENT SYSTEM reportBANK MANAGEMENT SYSTEM report
BANK MANAGEMENT SYSTEM report
Nandana Priyanka Eluri
 
Atm project
Atm projectAtm project
Library Management System Project Report
Library Management System Project Report Library Management System Project Report
Library Management System Project Report
Abu Kaisar
 
Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul Patel
Mitul Patel
 
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
अयशकांत मिश्र
 

What's hot (20)

Python Project on Computer Shop
Python Project on Computer ShopPython Project on Computer Shop
Python Project on Computer Shop
 
C Programming Project
C Programming ProjectC Programming Project
C Programming Project
 
Library Management System
Library Management SystemLibrary Management System
Library Management System
 
School Management (c++)
School Management (c++) School Management (c++)
School Management (c++)
 
Banking Management System Project documentation
Banking Management System Project documentationBanking Management System Project documentation
Banking Management System Project documentation
 
Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)
 
Computer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingComputer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market Billing
 
computer science with python project for class 12 cbse
computer science with python project for class 12 cbsecomputer science with python project for class 12 cbse
computer science with python project for class 12 cbse
 
library management system
library management systemlibrary management system
library management system
 
Student Management System
Student Management System Student Management System
Student Management System
 
Banking Management System Project
Banking Management System ProjectBanking Management System Project
Banking Management System Project
 
Hostel Management system Report
Hostel Management system ReportHostel Management system Report
Hostel Management system Report
 
Student management system
Student management systemStudent management system
Student management system
 
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
 
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THBANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
 
BANK MANAGEMENT SYSTEM report
BANK MANAGEMENT SYSTEM reportBANK MANAGEMENT SYSTEM report
BANK MANAGEMENT SYSTEM report
 
Atm project
Atm projectAtm project
Atm project
 
Library Management System Project Report
Library Management System Project Report Library Management System Project Report
Library Management System Project Report
 
Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul Patel
 
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
Computer Investgatort Project (HOTEL MANAGEMENT SYSTEM)
 

Similar to STUDENT REPORT CARD GENERATE SYSTEM

project report on Gas booking system in c++
project report on Gas booking system in c++ project report on Gas booking system in c++
project report on Gas booking system in c++
vikram mahendra
 
Electricitybillsystemreport
ElectricitybillsystemreportElectricitybillsystemreport
Electricitybillsystemreport
vikram mahendra
 
Library Management System in c++
Library Management System in c++Library Management System in c++
Library Management System in c++
vikram mahendra
 
SUPER MARKET COMPUTER SYSTEM IN C++
SUPER MARKET COMPUTER SYSTEM IN C++SUPER MARKET COMPUTER SYSTEM IN C++
SUPER MARKET COMPUTER SYSTEM IN C++
vikram mahendra
 
Hospitalmanagement
HospitalmanagementHospitalmanagement
Hospitalmanagement
vikram mahendra
 
Capstone Report - Industrial Attachment Program (IAP) Evaluation Portal
Capstone Report - Industrial Attachment Program (IAP) Evaluation PortalCapstone Report - Industrial Attachment Program (IAP) Evaluation Portal
Capstone Report - Industrial Attachment Program (IAP) Evaluation Portal
Akshit Arora
 
PLAYER PROFILE MANAGEMENT COMPUTER SCIENCE
PLAYER PROFILE MANAGEMENT COMPUTER SCIENCEPLAYER PROFILE MANAGEMENT COMPUTER SCIENCE
PLAYER PROFILE MANAGEMENT COMPUTER SCIENCE
Pradeep Kv
 
online examination management system
online examination management systemonline examination management system
online examination management system
Praveen Patel
 
BLOOD DONATION SYSTEM IN C++
BLOOD DONATION SYSTEM IN C++BLOOD DONATION SYSTEM IN C++
BLOOD DONATION SYSTEM IN C++
vikram mahendra
 
Title
TitleTitle
Sunil
SunilSunil
Computer Science Investigatory Project
Computer Science Investigatory ProjectComputer Science Investigatory Project
Computer Science Investigatory Project
Prakhar Seth
 
Work Measurement Application - Ghent Internship Report - Adel Belasker
Work Measurement Application - Ghent Internship Report - Adel BelaskerWork Measurement Application - Ghent Internship Report - Adel Belasker
Work Measurement Application - Ghent Internship Report - Adel Belasker
Adel Belasker
 
Project final report
Project final reportProject final report
Project final report
ALIN BABU
 
BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++
vikram mahendra
 
NIC Project Final Report
NIC Project Final ReportNIC Project Final Report
NIC Project Final ReportKay Karanjia
 
Seu purchase requisition management system
Seu purchase requisition management systemSeu purchase requisition management system
Seu purchase requisition management system
Saifur Rahman
 
digiinfo website project report
digiinfo website project reportdigiinfo website project report
digiinfo website project report
ABHIJEET KHIRE
 

Similar to STUDENT REPORT CARD GENERATE SYSTEM (20)

project report on Gas booking system in c++
project report on Gas booking system in c++ project report on Gas booking system in c++
project report on Gas booking system in c++
 
Electricitybillsystemreport
ElectricitybillsystemreportElectricitybillsystemreport
Electricitybillsystemreport
 
Library Management System in c++
Library Management System in c++Library Management System in c++
Library Management System in c++
 
SUPER MARKET COMPUTER SYSTEM IN C++
SUPER MARKET COMPUTER SYSTEM IN C++SUPER MARKET COMPUTER SYSTEM IN C++
SUPER MARKET COMPUTER SYSTEM IN C++
 
Hospitalmanagement
HospitalmanagementHospitalmanagement
Hospitalmanagement
 
Capstone Report - Industrial Attachment Program (IAP) Evaluation Portal
Capstone Report - Industrial Attachment Program (IAP) Evaluation PortalCapstone Report - Industrial Attachment Program (IAP) Evaluation Portal
Capstone Report - Industrial Attachment Program (IAP) Evaluation Portal
 
PLAYER PROFILE MANAGEMENT COMPUTER SCIENCE
PLAYER PROFILE MANAGEMENT COMPUTER SCIENCEPLAYER PROFILE MANAGEMENT COMPUTER SCIENCE
PLAYER PROFILE MANAGEMENT COMPUTER SCIENCE
 
online examination management system
online examination management systemonline examination management system
online examination management system
 
BLOOD DONATION SYSTEM IN C++
BLOOD DONATION SYSTEM IN C++BLOOD DONATION SYSTEM IN C++
BLOOD DONATION SYSTEM IN C++
 
Title
TitleTitle
Title
 
Sunil
SunilSunil
Sunil
 
Hung_thesis
Hung_thesisHung_thesis
Hung_thesis
 
Computer Science Investigatory Project
Computer Science Investigatory ProjectComputer Science Investigatory Project
Computer Science Investigatory Project
 
Work Measurement Application - Ghent Internship Report - Adel Belasker
Work Measurement Application - Ghent Internship Report - Adel BelaskerWork Measurement Application - Ghent Internship Report - Adel Belasker
Work Measurement Application - Ghent Internship Report - Adel Belasker
 
Project final report
Project final reportProject final report
Project final report
 
BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++BOOK SHOP SYSTEM C++
BOOK SHOP SYSTEM C++
 
NIC Project Final Report
NIC Project Final ReportNIC Project Final Report
NIC Project Final Report
 
document
documentdocument
document
 
Seu purchase requisition management system
Seu purchase requisition management systemSeu purchase requisition management system
Seu purchase requisition management system
 
digiinfo website project report
digiinfo website project reportdigiinfo website project report
digiinfo website project report
 

More from vikram mahendra

Communication skill
Communication skillCommunication skill
Communication skill
vikram mahendra
 
Python Project On Cosmetic Shop system
Python Project On Cosmetic Shop systemPython Project On Cosmetic Shop system
Python Project On Cosmetic Shop system
vikram mahendra
 
PYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEMPYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEM
vikram mahendra
 
FLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHONFLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHON
vikram mahendra
 
FLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHONFLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHON
vikram mahendra
 
FLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHONFLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHON
vikram mahendra
 
OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1
vikram mahendra
 
OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2
vikram mahendra
 
USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2
vikram mahendra
 
DATA TYPE IN PYTHON
DATA TYPE IN PYTHONDATA TYPE IN PYTHON
DATA TYPE IN PYTHON
vikram mahendra
 
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
vikram mahendra
 
USER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHONUSER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHON
vikram mahendra
 
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
vikram mahendra
 
INTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHONINTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHON
vikram mahendra
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
vikram mahendra
 
GREEN SKILL[PART-2]
GREEN SKILL[PART-2]GREEN SKILL[PART-2]
GREEN SKILL[PART-2]
vikram mahendra
 
GREEN SKILLS[PART-1]
GREEN SKILLS[PART-1]GREEN SKILLS[PART-1]
GREEN SKILLS[PART-1]
vikram mahendra
 
Dictionary in python
Dictionary in pythonDictionary in python
Dictionary in python
vikram mahendra
 
Entrepreneurial skills
Entrepreneurial skillsEntrepreneurial skills
Entrepreneurial skills
vikram mahendra
 
Boolean logic
Boolean logicBoolean logic
Boolean logic
vikram mahendra
 

More from vikram mahendra (20)

Communication skill
Communication skillCommunication skill
Communication skill
 
Python Project On Cosmetic Shop system
Python Project On Cosmetic Shop systemPython Project On Cosmetic Shop system
Python Project On Cosmetic Shop system
 
PYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEMPYTHON PROJECT ON CARSHOP SYSTEM
PYTHON PROJECT ON CARSHOP SYSTEM
 
FLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHONFLOW OF CONTROL-NESTED IFS IN PYTHON
FLOW OF CONTROL-NESTED IFS IN PYTHON
 
FLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHONFLOWOFCONTROL-IF..ELSE PYTHON
FLOWOFCONTROL-IF..ELSE PYTHON
 
FLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHONFLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHON
 
OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1OPERATOR IN PYTHON-PART1
OPERATOR IN PYTHON-PART1
 
OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2OPERATOR IN PYTHON-PART2
OPERATOR IN PYTHON-PART2
 
USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2USE OF PRINT IN PYTHON PART 2
USE OF PRINT IN PYTHON PART 2
 
DATA TYPE IN PYTHON
DATA TYPE IN PYTHONDATA TYPE IN PYTHON
DATA TYPE IN PYTHON
 
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
 
USER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHONUSER DEFINE FUNCTIONS IN PYTHON
USER DEFINE FUNCTIONS IN PYTHON
 
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]FUNCTIONS IN PYTHON[RANDOM FUNCTION]
FUNCTIONS IN PYTHON[RANDOM FUNCTION]
 
INTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHONINTRODUCTION TO FUNCTIONS IN PYTHON
INTRODUCTION TO FUNCTIONS IN PYTHON
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
 
GREEN SKILL[PART-2]
GREEN SKILL[PART-2]GREEN SKILL[PART-2]
GREEN SKILL[PART-2]
 
GREEN SKILLS[PART-1]
GREEN SKILLS[PART-1]GREEN SKILLS[PART-1]
GREEN SKILLS[PART-1]
 
Dictionary in python
Dictionary in pythonDictionary in python
Dictionary in python
 
Entrepreneurial skills
Entrepreneurial skillsEntrepreneurial skills
Entrepreneurial skills
 
Boolean logic
Boolean logicBoolean logic
Boolean logic
 

Recently uploaded

The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 

Recently uploaded (20)

The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 

STUDENT REPORT CARD GENERATE SYSTEM

  • 2. ACKNOWLEDGEMENT I would like to convey my heartful thanks to ……………………….. (Computer Science) who always gave valuable suggestions & guidance for completion of my project. He helped me to understand & remember important details of the project. My project has been a success only because of his guidance. I am especially indented & I am also beholden to my friends. And finally I thank to the members of my family for their support & encouragement.
  • 3. CERTIFICATE This is to certify that ……………………. of ………….. of …………………………………… has completed his project under my supervision. He has taken proper care & shown sincerity in completion of this project. I certify that this project is up to my expectation & as per the guideline issued by CBSE. ……………………………………. (Computer Science faculty )
  • 4. Content 1. Introduction 2. Source Code 3. Output 4. Requirement 5. Advantages and disadvantages 6. Conclusion 7. System design
  • 5. This project STUDENT REPORT CARD SYSTEM includes facilities of registration, search, display, modification, deletion of student information about the marks and their name and rolls number. This software searches the student information on the basis of roll number which is store in the record. The software used for small schools for maintaining their records related to report card and marks of student and cost savings.
  • 6.
  • 7. //*************************************************************** // HEADER FILE USED IN PROJECT //**************************************************************** #include<iostream.h> #include<fstream.h> #include<iomanip.h> #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> #include<ctype.h> void entry_menu(); int checkpass(); int selectgroup(); void intromain(); void intro(); void display_all(); void display_allrec(); int getrollno(); void modify_record(int n); void delete_record(int n); void againopenandclose(); void reportcard(int c); //*************************************************************** // CLASS USED IN PROJECT //**************************************************************** class student { int group; int rollno; char name[50]; int p_marks,c_marks,m_marks,e_marks,cs_marks,b_marks,phyed_marks; int eco_marks,bstud_marks,account_marks,total; float per; char grade; void calculate(int c); //function to calculate grade public: student() { rollno=0;group=0;p_marks=0;c_marks=0;m_marks=0;e_marks=0; cs_marks=0;b_marks=0;eco_marks=0;phyed_marks=0;bstud_marks=0; account_marks=0;total=0;per=0.00; } void getdatamulti(int c,int rn1); void showdatamulti(); void showall(int c); void reportcard(); void modifydata(int n1,char snm[15],int grp); int retrollno() { return rollno; } char *getnm() { return name; } int getgroup() { return group; } }; //class ends here //***************************************************** // report card of the student //**************************************************** void student::reportcard() { clrscr(); gotoxy(1,2); cout<<"**************************DOON PUBLIC SCHOOOL,HALDWANI**************************"; gotoxy(1,3); cout<<"********************************************************************************"; gotoxy(24,4); cout<<"-------------REPORT CARD-------------"; gotoxy(1,5); cout<<"================================================================================"; gotoxy(5,6); cout<<"ROLL NO:"; gotoxy(18,6); cout<<rollno; gotoxy(40,6); cout<<"NAME OF STUDENT:"; gotoxy(60,6); cout<<name; gotoxy(1,7); cout<<"================================================================================"; gotoxy(12,8); cout<<"------------------------------------------------------------|"; gotoxy(11,8); cout<<"|"; gotoxy(15,9); cout<<"S.NO";
  • 8. gotoxy(25,8); cout<<"|"; gotoxy(30,9); cout<<"SUBJECTS"; gotoxy(48,8); cout<<"|"; gotoxy(55,9); cout<<"MARKS"; gotoxy(65,8); cout<<"|"; gotoxy(12,10);cout<<"------------------------------------------------------------|"; gotoxy(11,10);cout<<"|"; gotoxy(25,10);cout<<"|"; gotoxy(48,10);cout<<"|"; gotoxy(65,10);cout<<"|"; //**********************subjects with marks column wise******************* switch(group) { case 1: gotoxy(11,11);cout<<"|"; gotoxy(15,11);cout<<"1."; gotoxy(25,11);cout<<"|"; gotoxy(30,11);cout<<"ENGLISH"; gotoxy(48,11);cout<<"|"; gotoxy(55,11);cout<<e_marks; gotoxy(65,11);cout<<"|"; gotoxy(72,11);cout<<"|"; //**************second subject gotoxy(11,12);cout<<"|"; gotoxy(15,12);cout<<"2."; gotoxy(25,12);cout<<"|"; gotoxy(30,12);cout<<"PHYSICS"; gotoxy(48,12);cout<<"|"; gotoxy(55,12);cout<<p_marks; gotoxy(65,12);cout<<"|"; gotoxy(72,12);cout<<"|"; //***************************************** //**************third subject gotoxy(11,13);cout<<"|"; gotoxy(15,13);cout<<"3."; gotoxy(25,13);cout<<"|"; gotoxy(30,13);cout<<"CHEMISTRY"; gotoxy(48,13);cout<<"|"; gotoxy(55,13);cout<<c_marks; gotoxy(65,13);cout<<"|"; gotoxy(72,13);cout<<"|"; //**************third subject gotoxy(11,14);cout<<"|"; gotoxy(15,14);cout<<"4."; gotoxy(25,14);cout<<"|"; gotoxy(30,14);cout<<"MATHS"; gotoxy(48,14);cout<<"|"; gotoxy(55,14);cout<<m_marks; gotoxy(65,14);cout<<"|"; gotoxy(72,14);cout<<"|"; //**************third subject gotoxy(11,15);cout<<"|"; gotoxy(15,15);cout<<"5."; gotoxy(25,15);cout<<"|"; gotoxy(30,15);cout<<"PHYSICAL EDUCATION"; gotoxy(48,15);cout<<"|"; gotoxy(55,15);cout<<phyed_marks; gotoxy(65,15);cout<<"|"; gotoxy(72,15);cout<<"|"; break; case 2: //**********************first subject***************** gotoxy(11,11);cout<<"|"; gotoxy(15,11);cout<<"1."; gotoxy(25,11);cout<<"|"; gotoxy(30,11);cout<<"ENGLISH:"; gotoxy(48,11);cout<<"|"; gotoxy(55,11);cout<<e_marks; gotoxy(65,11);cout<<"|"; gotoxy(72,11);cout<<"|"; //**************second subject gotoxy(11,12);cout<<"|"; gotoxy(15,12);cout<<"2."; gotoxy(25,12);cout<<"|"; gotoxy(30,12);cout<<"PHYSICS:"; gotoxy(48,12);cout<<"|"; gotoxy(55,12);cout<<p_marks;
  • 9. gotoxy(65,12);cout<<"|"; gotoxy(72,12);cout<<"|"; //***************************************** //**************third subject gotoxy(11,13);cout<<"|"; gotoxy(15,13);cout<<"3."; gotoxy(25,13);cout<<"|"; gotoxy(30,13);cout<<"CHEMISTRY:"; gotoxy(48,13);cout<<"|"; gotoxy(55,13);cout<<c_marks; gotoxy(65,13);cout<<"|"; gotoxy(72,13);cout<<"|"; //**************fourth subject gotoxy(11,14);cout<<"|"; gotoxy(15,14);cout<<"4."; gotoxy(25,14);cout<<"|"; gotoxy(30,14);cout<<"MATHS:"; gotoxy(48,14);cout<<"|"; gotoxy(55,14);cout<<m_marks; gotoxy(65,14);cout<<"|"; gotoxy(72,14);cout<<"|"; //**************fifth subject gotoxy(11,15);cout<<"|"; gotoxy(15,15);cout<<"5."; gotoxy(25,15);cout<<"|"; gotoxy(30,15);cout<<"COMPUTER SCIENCE:"; gotoxy(48,15);cout<<"|"; gotoxy(55,15);cout<<cs_marks; gotoxy(65,15);cout<<"|"; gotoxy(72,15);cout<<"|"; break; case 3: //**********************first subject***************** gotoxy(11,11);cout<<"|"; gotoxy(15,11);cout<<"1."; gotoxy(25,11);cout<<"|"; gotoxy(30,11);cout<<"ENGLISH:"; gotoxy(48,11);cout<<"|"; gotoxy(55,11);cout<<e_marks; gotoxy(65,11);cout<<"|"; gotoxy(72,11);cout<<"|"; //**************second subject gotoxy(11,12);cout<<"|"; gotoxy(15,12);cout<<"2."; gotoxy(25,12);cout<<"|"; gotoxy(30,12);cout<<"PHYSICS:"; gotoxy(48,12);cout<<"|"; gotoxy(55,12);cout<<p_marks; gotoxy(65,12);cout<<"|"; gotoxy(72,12);cout<<"|"; //***************************************** //**************third subject gotoxy(11,13);cout<<"|"; gotoxy(15,13);cout<<"3."; gotoxy(25,13);cout<<"|"; gotoxy(30,13);cout<<"CHEMISTRY:"; gotoxy(48,13);cout<<"|"; gotoxy(55,13);cout<<c_marks; gotoxy(65,13);cout<<"|"; gotoxy(72,13);cout<<"|"; //**************fourth subject gotoxy(11,14);cout<<"|"; gotoxy(15,14);cout<<"4."; gotoxy(25,14);cout<<"|"; gotoxy(30,14);cout<<"MATHS:"; gotoxy(48,14);cout<<"|"; gotoxy(55,14);cout<<m_marks; gotoxy(65,14);cout<<"|"; gotoxy(72,14);cout<<"|"; //**************fifth subject gotoxy(11,15);cout<<"|"; gotoxy(15,15);cout<<"5."; gotoxy(25,15);cout<<"|"; gotoxy(30,15);cout<<"BIOLOGY:"; gotoxy(48,15);cout<<"|"; gotoxy(55,15);cout<<b_marks; gotoxy(65,15);cout<<"|";
  • 10. gotoxy(72,15);cout<<"|"; break; case 4: //**********************first subject***************** gotoxy(11,11);cout<<"|"; gotoxy(15,11);cout<<"1."; gotoxy(25,11);cout<<"|"; gotoxy(30,11);cout<<"ENGLISH:"; gotoxy(48,11);cout<<"|"; gotoxy(55,11);cout<<e_marks; gotoxy(65,11);cout<<"|"; gotoxy(72,11);cout<<"|"; //**************second subject gotoxy(11,12);cout<<"|"; gotoxy(15,12);cout<<"2."; gotoxy(25,12);cout<<"|"; gotoxy(30,12);cout<<"PHYSICS:"; gotoxy(48,12);cout<<"|"; gotoxy(55,12);cout<<p_marks; gotoxy(65,12);cout<<"|"; gotoxy(72,12);cout<<"|"; //***************************************** //**************third subject gotoxy(11,13);cout<<"|"; gotoxy(15,13);cout<<"3."; gotoxy(25,13);cout<<"|"; gotoxy(30,13);cout<<"CHEMISTRY:"; gotoxy(48,13);cout<<"|"; gotoxy(55,13);cout<<c_marks; gotoxy(65,13);cout<<"|"; gotoxy(72,13);cout<<"|"; //**************fourth subject gotoxy(11,14);cout<<"|"; gotoxy(15,14);cout<<"4."; gotoxy(25,14);cout<<"|"; gotoxy(30,14);cout<<"BIOLOGY:"; gotoxy(48,14);cout<<"|"; gotoxy(55,14);cout<<b_marks; gotoxy(65,14);cout<<"|"; gotoxy(72,14);cout<<"|"; //**************fifth subject gotoxy(11,15);cout<<"|"; gotoxy(15,15);cout<<"5."; gotoxy(25,15);cout<<"|"; gotoxy(30,15);cout<<"PHYSICAL EDUCATION"; gotoxy(48,15);cout<<"|"; gotoxy(55,15);cout<<phyed_marks; gotoxy(65,15);cout<<"|"; gotoxy(72,15);cout<<"|"; break; case 5: //**********************first subject***************** gotoxy(11,11);cout<<"|"; gotoxy(15,11);cout<<"1."; gotoxy(25,11);cout<<"|"; gotoxy(30,11);cout<<"ENGLISH:"; gotoxy(48,11);cout<<"|"; gotoxy(55,11);cout<<e_marks; gotoxy(65,11);cout<<"|"; gotoxy(72,11);cout<<"|"; //**************second subject gotoxy(11,12);cout<<"|"; gotoxy(15,12);cout<<"2."; gotoxy(25,12);cout<<"|"; gotoxy(30,12);cout<<"PHYSICS:"; gotoxy(48,12);cout<<"|"; gotoxy(55,12);cout<<p_marks; gotoxy(65,12);cout<<"|"; gotoxy(72,12);cout<<"|"; //***************************************** //**************third subject gotoxy(11,13);cout<<"|"; gotoxy(15,13);cout<<"3."; gotoxy(25,13);cout<<"|"; gotoxy(30,13);cout<<"CHEMISTRY:"; gotoxy(48,13);cout<<"|"; gotoxy(55,13);cout<<c_marks;
  • 11. gotoxy(65,13);cout<<"|"; gotoxy(72,13);cout<<"|"; //**************fourth subject gotoxy(11,14);cout<<"|"; gotoxy(15,14);cout<<"4."; gotoxy(25,14);cout<<"|"; gotoxy(30,14);cout<<"BIOLOGY:"; gotoxy(48,14);cout<<"|"; gotoxy(55,14);cout<<b_marks; gotoxy(65,14);cout<<"|"; gotoxy(72,14);cout<<"|"; //**************fifth subject gotoxy(11,15);cout<<"|"; gotoxy(15,15);cout<<"5."; gotoxy(25,15);cout<<"|"; gotoxy(30,15);cout<<"COMPUTER SCIENCE"; gotoxy(48,15);cout<<"|"; gotoxy(55,15);cout<<cs_marks; gotoxy(65,15);cout<<"|"; gotoxy(72,15);cout<<"|"; break; case 6: //**********************first subject***************** gotoxy(11,11);cout<<"|"; gotoxy(15,11);cout<<"1."; gotoxy(25,11);cout<<"|"; gotoxy(30,11);cout<<"ENGLISH:"; gotoxy(48,11);cout<<"|"; gotoxy(55,11);cout<<e_marks; gotoxy(65,11);cout<<"|"; gotoxy(72,11);cout<<"|"; //**************second subject gotoxy(11,12);cout<<"|"; gotoxy(15,12);cout<<"2."; gotoxy(25,12);cout<<"|"; gotoxy(30,12);cout<<"ACCOUNTS:"; gotoxy(48,12);cout<<"|"; gotoxy(55,12);cout<<account_marks; gotoxy(65,12);cout<<"|"; gotoxy(72,12);cout<<"|"; //***************************************** //**************third subject gotoxy(11,13);cout<<"|"; gotoxy(15,13);cout<<"3."; gotoxy(25,13);cout<<"|"; gotoxy(30,13);cout<<"BUSINESS STUDIES:"; gotoxy(48,13);cout<<"|"; gotoxy(55,13);cout<<bstud_marks; gotoxy(65,13);cout<<"|"; gotoxy(72,13);cout<<"|"; //**************fourth subject gotoxy(11,14);cout<<"|"; gotoxy(15,14);cout<<"4."; gotoxy(25,14);cout<<"|"; gotoxy(30,14);cout<<"ECONOMICS:"; gotoxy(48,14);cout<<"|"; gotoxy(55,14);cout<<eco_marks; gotoxy(65,14);cout<<"|"; gotoxy(72,14);cout<<"|"; //**************fifth subject gotoxy(11,15);cout<<"|"; gotoxy(15,15);cout<<"5."; gotoxy(25,15);cout<<"|"; gotoxy(30,15);cout<<"PHYSICAL EDUCATION"; gotoxy(48,15);cout<<"|"; gotoxy(55,15);cout<<phyed_marks; gotoxy(65,15);cout<<"|"; gotoxy(72,15);cout<<"|"; break; case 7: //**********************first subject***************** gotoxy(11,11);cout<<"|"; gotoxy(15,11);cout<<"1."; gotoxy(25,11);cout<<"|"; gotoxy(30,11);cout<<"ENGLISH:"; gotoxy(48,11);cout<<"|"; gotoxy(55,11);cout<<e_marks;
  • 12. gotoxy(65,11);cout<<"|"; gotoxy(72,11);cout<<"|"; //**************second subject gotoxy(11,12);cout<<"|"; gotoxy(15,12);cout<<"2."; gotoxy(25,12);cout<<"|"; gotoxy(30,12);cout<<"ACCOUNTS:"; gotoxy(48,12);cout<<"|"; gotoxy(55,12);cout<<account_marks; gotoxy(65,12);cout<<"|"; gotoxy(72,12);cout<<"|"; //***************************************** //**************third subject gotoxy(11,13);cout<<"|"; gotoxy(15,13);cout<<"3."; gotoxy(25,13);cout<<"|"; gotoxy(30,13);cout<<"BUSINESS STUDIES:"; gotoxy(48,13);cout<<"|"; gotoxy(55,13);cout<<bstud_marks; gotoxy(65,13);cout<<"|"; gotoxy(72,13);cout<<"|"; //**************fourth subject gotoxy(11,14);cout<<"|"; gotoxy(15,14);cout<<"4."; gotoxy(25,14);cout<<"|"; gotoxy(30,14);cout<<"ECONOMICS:"; gotoxy(48,14);cout<<"|"; gotoxy(55,14);cout<<eco_marks; gotoxy(65,14);cout<<"|"; gotoxy(72,14);cout<<"|"; //**************fifth subject gotoxy(11,15);cout<<"|"; gotoxy(15,15);cout<<"5."; gotoxy(25,15);cout<<"|"; gotoxy(30,15);cout<<"COMPUTER SCIENCE"; gotoxy(48,15);cout<<"|"; gotoxy(55,15);cout<<cs_marks; gotoxy(65,15);cout<<"|"; gotoxy(72,15);cout<<"|"; break; } gotoxy(12,16);cout<<"------------------------------------------------------------|"; gotoxy(11,16);cout<<"|"; gotoxy(25,16);cout<<"|"; gotoxy(48,16);cout<<"|"; gotoxy(65,16);cout<<"|"; //*******************total per and grade of the student**************** gotoxy(8,18); cout<<"TOTAL:"; gotoxy(17,18);cout<<total; gotoxy(45,18);cout<<"PERCENTAGE:"; gotoxy(60,18);cout<<per; gotoxy(8,20);cout<<"MARKS IN WORDS:"; gotoxy(25,20);cout<<"THIRTY HUNDRED FOURTY"; gotoxy(24,22);cout<<"-----------DIVISION:"; gotoxy(48,22); switch(grade) { case 'A': cout<<"FIRST"; break; case 'B': cout<<"SECOND"; break; case 'C': cout<<"THIRD"; break; case 'D': cout<<"FAIL"; break; } cout<<"-----------------"; } //************report card ends here****************** //*****************************************************8 // modify the records of the student //***************************************************** void student::modifydata(int n1,char snm[15],int grp) { char tmpnm[50]="blank"; gotoxy(5,17);
  • 13. cout<<"===================WANT TO MODIFY NAME==============================="; gotoxy(10,18); cout<<"Roll No:"; rollno=n1; gotoxy(18,18); cout<<rollno; gotoxy(28,18); strcpy(name,snm); cout<<"NAME OF STUDENT:"; gotoxy(50,18); cout<<name; gotoxy(10,19); cout<<"Want to change the name"; gotoxy(40,19); int flag=0; while(1) { gets(tmpnm); if(strlen(tmpnm)!=0) { flag=1; break; } if(strlen(tmpnm)==0) { flag=0; break; } } if(flag==1) { strcpy(name,tmpnm); } gotoxy(5,21); cout<<"====================================================================="; switch(grp) { case 1: group=1;gotoxy(1,22); cout<<"********MODIFY**MARKS OF FIVE SUBJECTS[PCM WITH PHY EDU.]*********************"; gotoxy(1,23); cout<<"ENGLISH:"; gotoxy(15,23);cin>>e_marks; gotoxy(30,23);cout<<"PHYSICS:"; gotoxy(45,23);cin>>p_marks; gotoxy(50,23);cout<<"CHEMISTRY:"; gotoxy(61,23);cin>>c_marks; gotoxy(1,24);cout<<"MATHS:"; gotoxy(15,24);cin>>m_marks; gotoxy(35,24);cout<<"PHYSICAL EDUCATION:"; gotoxy(58,24);cin>>phyed_marks; calculate(1); break; case 2: group=2;gotoxy(1,22); cout<<"*********MODIFY**MARKS OF FIVE SUBJECTS[PCM WITH COMP.SC.]*******************"; gotoxy(1,23); cout<<"ENGLISH:"; gotoxy(15,23);cin>>e_marks; gotoxy(30,23);cout<<"PHYSICS:"; gotoxy(45,23);cin>>p_marks; gotoxy(50,23);cout<<"CHEMISTRY:"; gotoxy(61,23);cin>>c_marks; gotoxy(1,24);cout<<"MATHS:"; gotoxy(15,24);cin>>m_marks; gotoxy(35,24);cout<<"COMPUTER SCIENCE:"; gotoxy(58,24);cin>>cs_marks; calculate(2); break; case 3: group=3;gotoxy(1,22); cout<<"*******MODIFY**MARKS OF FIVE SUBJECTS[PCM WITH BIO.]*******************"; gotoxy(1,23);cout<<"ENGLISH:"; gotoxy(15,23);cin>>e_marks; gotoxy(30,23);cout<<"PHYSICS:"; gotoxy(45,23);cin>>p_marks; gotoxy(50,23);cout<<"CHEMISTRY:"; gotoxy(61,23);cin>>c_marks; gotoxy(1,24);cout<<"MATHS:"; gotoxy(15,24);cin>>m_marks; gotoxy(35,24);cout<<"BIOLOGY:"; gotoxy(58,24);cin>>b_marks; calculate(3); break; case 4: group=4;gotoxy(1,22); cout<<"*******MODIFY**MARKS OF FIVE SUBJECTS[PCB WITH PHY.ED.]*******************"; gotoxy(1,23);cout<<"ENGLISH:"; gotoxy(15,23);cin>>e_marks;
  • 14. gotoxy(30,23);cout<<"PHYSICS:"; gotoxy(45,23);cin>>p_marks; gotoxy(50,23);cout<<"CHEMISTRY:"; gotoxy(61,23);cin>>c_marks; gotoxy(1,24);cout<<"BIOLOGY::"; gotoxy(15,24);cin>>b_marks; gotoxy(35,24);cout<<"PHYSICAL EDUCATION"; gotoxy(58,24);cin>>phyed_marks; calculate(4); break; case 5:group=5;gotoxy(1,22); cout<<"*******MODIFY***MARKS OF FIVE SUBJECTS[PCB WITH COMP.SCI.]*******************"; gotoxy(1,23); cout<<"ENGLISH:"; gotoxy(15,23);cin>>e_marks; gotoxy(30,23);cout<<"PHYSICS:"; gotoxy(45,23);cin>>p_marks; gotoxy(50,23);cout<<"CHEMISTRY:"; gotoxy(61,23);cin>>c_marks; gotoxy(1,24); cout<<"BIOLOGY::"; gotoxy(15,24);cin>>b_marks; gotoxy(35,24);cout<<"COMPUTER SCIENCE"; gotoxy(58,24);cin>>cs_marks; calculate(5); break; case 6: group=6;gotoxy(1,22); cout<<"********MODIFY**MARKS OF FIVE SUBJECTS[COMMERCE WITH PHY.ED.]*****************"; gotoxy(1,23);cout<<"ENGLISH:"; gotoxy(15,23);cin>>e_marks; gotoxy(30,23);cout<<"ACCOUNTS:"; gotoxy(45,23);cin>>account_marks; gotoxy(50,23);cout<<"BUSINESS STUDIES:"; gotoxy(70,23);cin>>bstud_marks; gotoxy(1,24);cout<<"ECONOMICS:"; gotoxy(15,24);cin>>eco_marks; gotoxy(35,24);cout<<"PHYSICAL EDUCATION"; gotoxy(58,24);cin>>phyed_marks; calculate(6); break; case 7: group=7;gotoxy(1,22); cout<<"*****MODIFY***MARKS OF FIVE SUBJECTS[COMMERCE WITH COMP.SCI.]**************"; gotoxy(1,23);cout<<"ENGLISH:"; gotoxy(15,23);cin>>e_marks; gotoxy(30,23);cout<<"ACCOUNTS:"; gotoxy(45,23);cin>>account_marks; gotoxy(50,23);cout<<"BUSINESS STUDIES:"; gotoxy(70,23);cin>>bstud_marks; gotoxy(1,24);cout<<"ECONOMICS:"; gotoxy(15,24);cin>>eco_marks; gotoxy(35,24);cout<<"PHYSICAL EDUCATION"; gotoxy(58,24);cin>>cs_marks; calculate(7); break; } } //**********************modification exists************************************ //***************************************************************************** // save the records of student on the basis of subject choice: //***************************************************************************** void student::getdatamulti(int c,int rn1) { gotoxy(5,7); cout<<"======================================================================"; gotoxy(10,8); cout<<"Roll No:"; rollno=rn1; gotoxy(18,8); cout<<rollno; gotoxy(35,8); cout<<"NAME OF STUDENT:"; gotoxy(54,8); cin>>name; gotoxy(5,9); cout<<"====================================================================="; switch(c) { case 1: group=1;gotoxy(1,10); cout<<"*****************MARKS OF FIVE SUBJECTS[PCM WITH PHY EDU.]*********************"; gotoxy(10,11);cout<<"ENGLISH:"; gotoxy(20,11);cin>>e_marks; gotoxy(35,11);cout<<"PHYSICS:";
  • 15. gotoxy(45,11);cin>>p_marks; gotoxy(10,12);cout<<"CHEMISTRY:"; gotoxy(20,12);cin>>c_marks; gotoxy(35,12);cout<<"MATHS:"; gotoxy(45,12);cin>>m_marks; gotoxy(10,13);cout<<"PHYSICAL EDUCATION:"; gotoxy(32,13);cin>>phyed_marks; calculate(1); break; case 2: group=2;gotoxy(1,10); cout<<"*****************MARKS OF FIVE SUBJECTS[PCM WITH COMP.SC.]*******************"; gotoxy(10,11);cout<<"ENGLISH:"; gotoxy(20,11);cin>>e_marks; gotoxy(35,11);cout<<"PHYSICS:"; gotoxy(45,11);cin>>p_marks; gotoxy(10,12);cout<<"CHEMISTRY:"; gotoxy(20,12);cin>>c_marks; gotoxy(35,12);cout<<"MATHS:"; gotoxy(45,12);cin>>m_marks; gotoxy(10,13);cout<<"COMPUTER SCIENCE:"; gotoxy(32,13);cin>>cs_marks; calculate(2); break; case 3: group=3;gotoxy(1,10); cout<<"****************MARKS OF FIVE SUBJECTS[PCM WITH BIO.]*******************"; gotoxy(10,11);cout<<"ENGLISH:"; gotoxy(20,11);cin>>e_marks; gotoxy(35,11);cout<<"PHYSICS:"; gotoxy(45,11);cin>>p_marks; gotoxy(10,12);cout<<"CHEMISTRY:"; gotoxy(20,12);cin>>c_marks; gotoxy(35,12);cout<<"MATHS:"; gotoxy(45,12);cin>>m_marks; gotoxy(10,13);cout<<"BIOLOGY:"; gotoxy(32,13);cin>>b_marks; calculate(3); break; case 4: group=4;gotoxy(1,10); cout<<"****************MARKS OF FIVE SUBJECTS[PCB WITH PHY.ED.]*******************"; gotoxy(10,11);cout<<"ENGLISH:"; gotoxy(20,11);cin>>e_marks; gotoxy(35,11);cout<<"PHYSICS:"; gotoxy(45,11);cin>>p_marks; gotoxy(10,12);cout<<"CHEMISTRY:"; gotoxy(20,12);cin>>c_marks; gotoxy(35,12);cout<<"BIOLOGY::"; gotoxy(45,12);cin>>b_marks; gotoxy(10,13);cout<<"PHYSICAL EDUCATION"; gotoxy(32,13);cin>>phyed_marks; calculate(4); break; case 5: group=5;gotoxy(1,10); cout<<"****************MARKS OF FIVE SUBJECTS[PCB WITH COMP.SCI.]*******************"; gotoxy(10,11);cout<<"ENGLISH:"; gotoxy(20,11);cin>>e_marks; gotoxy(35,11);cout<<"PHYSICS:"; gotoxy(45,11);cin>>p_marks; gotoxy(10,12);cout<<"CHEMISTRY:"; gotoxy(20,12);cin>>c_marks; gotoxy(35,12);cout<<"BIOLOGY::"; gotoxy(45,12);cin>>b_marks; gotoxy(10,13);cout<<"COMPUTER SCIENCE"; gotoxy(32,13);cin>>cs_marks; calculate(5); break; case 6: group=6;gotoxy(1,10); cout<<"****************MARKS OF FIVE SUBJECTS[COMMERCE WITH PHY.ED.]*****************"; gotoxy(10,11);cout<<"ENGLISH:"; gotoxy(20,11);cin>>e_marks; gotoxy(35,11);cout<<"ACCOUNTS:"; gotoxy(45,11);cin>>account_marks; gotoxy(10,12);cout<<"BUSINESS STUDIES:"; gotoxy(30,12);cin>>bstud_marks; gotoxy(38,12);cout<<"ECONOMICS:";
  • 16. gotoxy(52,12);cin>>eco_marks; gotoxy(10,13);cout<<"PHYSICAL EDUCATION"; gotoxy(45,13);cin>>phyed_marks; calculate(6); break; case 7: group=7;gotoxy(1,10); cout<<"**********MARKS OF FIVE SUBJECTS[COMMERCE WITH COMP.SCI.]****************"; gotoxy(10,11);cout<<"ENGLISH:"; gotoxy(20,11);cin>>e_marks; gotoxy(35,11);cout<<"ACCOUNTS:"; gotoxy(45,11);cin>>account_marks; gotoxy(10,12);cout<<"BUSINESS STUDIES:"; gotoxy(32,12);cin>>bstud_marks; gotoxy(38,12);cout<<"ECONOMICS:"; gotoxy(52,12);cin>>eco_marks; gotoxy(10,13);cout<<"PHYSICAL EDUCATION"; gotoxy(45,13);cin>>cs_marks; calculate(7); break; } } //************************calculate multiple********************************* void student::calculate(int c) { switch(c) { case 1: total=p_marks+c_marks+m_marks+e_marks+phyed_marks; per=(p_marks+c_marks+m_marks+e_marks+phyed_marks)/5.0; break; case 2: total=p_marks+c_marks+m_marks+e_marks+cs_marks; per=(p_marks+c_marks+m_marks+e_marks+cs_marks)/5.0; break; case 3: total=p_marks+c_marks+m_marks+e_marks+b_marks; per=(p_marks+c_marks+m_marks+e_marks+b_marks)/5.0; break; case 4: total=p_marks+c_marks+b_marks+e_marks+phyed_marks; per=(p_marks+c_marks+b_marks+e_marks+phyed_marks)/5.0; break; case 5: total=p_marks+c_marks+b_marks+e_marks+cs_marks; per=(p_marks+c_marks+b_marks+e_marks+cs_marks)/5.0; break; case 6: total=eco_marks+phyed_marks+bstud_marks+account_marks+e_marks; per=(eco_marks+phyed_marks+bstud_marks+account_marks+e_marks)/5.0; break; case 7: total=eco_marks+cs_marks+bstud_marks+account_marks+e_marks; per=(eco_marks+cs_marks+bstud_marks+account_marks+e_marks)/5.0; break; } if(per>=60) grade='A'; else if(per>=50) grade='B'; else if(per>=33) grade='C'; else grade='F'; } //**************************************************************************** // SHOW RECORD OF STUDENT ON THE BASIS OF SUBJECT //**************************************************************************** void student::showdatamulti() { gotoxy(5,7); cout<<"======================================================================"; gotoxy(10,8); cout<<"Roll No:"; gotoxy(18,8); cout<<rollno; gotoxy(35,8); cout<<"NAME OF STUDENT:"; gotoxy(54,8); cout<<name;
  • 17. gotoxy(5,9); cout<<"====================================================================="; switch(group) { case 1: gotoxy(1,10); cout<<"*****************MARKS OF FIVE SUBJECTS[PCM WITH PHY EDU.]*********************"; gotoxy(10,11);cout<<"ENGLISH:"; gotoxy(20,11); cout<<e_marks; gotoxy(35,11); cout<<"PHYSICS:"; gotoxy(45,11); cout<<p_marks; gotoxy(10,12); cout<<"CHEMISTRY:"; gotoxy(20,12); cout<<c_marks; gotoxy(35,12); cout<<"MATHS:"; gotoxy(45,12); cout<<m_marks; gotoxy(10,13); cout<<"PHYSICAL EDUCATION:"; gotoxy(32,13); cout<<phyed_marks; //calculate(1); break; case 2: gotoxy(1,10); cout<<"*****************MARKS OF FIVE SUBJECTS[PCM WITH COMP.SC.]*******************"; gotoxy(10,11); cout<<"ENGLISH:"; gotoxy(20,11); cout<<e_marks; gotoxy(35,11); cout<<"PHYSICS:"; gotoxy(45,11); cout<<p_marks; gotoxy(10,12); cout<<"CHEMISTRY:"; gotoxy(20,12); cout<<c_marks; gotoxy(35,12); cout<<"MATHS:"; gotoxy(45,12); cout<<m_marks; gotoxy(10,13); cout<<"COMPUTER SCIENCE:"; gotoxy(32,13); cout<<cs_marks; //calculate(2); break; case 3: gotoxy(1,10); cout<<"****************MARKS OF FIVE SUBJECTS[PCM WITH BIO.]*******************"; gotoxy(10,11); cout<<"ENGLISH:"; gotoxy(20,11); cout<<e_marks; gotoxy(35,11); cout<<"PHYSICS:"; gotoxy(45,11); cout<<p_marks; gotoxy(10,12); cout<<"CHEMISTRY:"; gotoxy(20,12); cout<<c_marks; gotoxy(35,12); cout<<"MATHS:"; gotoxy(45,12); cout<<m_marks; gotoxy(10,13); cout<<"BIOLOGY:"; gotoxy(32,13); cout<<b_marks; //calculate(3); break; case 4: gotoxy(1,10); cout<<"****************MARKS OF FIVE SUBJECTS[PCB WITH PHY.ED.]*******************"; gotoxy(10,11); cout<<"ENGLISH:"; gotoxy(20,11); cout<<e_marks; gotoxy(35,11); cout<<"PHYSICS:"; gotoxy(45,11); cout<<p_marks; gotoxy(10,12); cout<<"CHEMISTRY:"; gotoxy(20,12); cout<<c_marks; gotoxy(35,12); cout<<"BIOLOGY::"; gotoxy(45,12); cout<<b_marks; gotoxy(10,13); cout<<"PHYSICAL EDUCATION"; gotoxy(45,13); cout<<phyed_marks; //calculate(4); break; case 5: gotoxy(1,10); cout<<"****************MARKS OF FIVE SUBJECTS[PCB WITH COMP.SCI.]*******************"; gotoxy(10,11); cout<<"ENGLISH:"; gotoxy(20,11); cout<<e_marks; gotoxy(35,11); cout<<"PHYSICS:"; gotoxy(45,11); cout<<p_marks; gotoxy(10,12); cout<<"CHEMISTRY:"; gotoxy(20,12); cout<<c_marks; gotoxy(35,12); cout<<"BIOLOGY::"; gotoxy(45,12); cout<<b_marks; gotoxy(10,13); cout<<"COMPUTER SCIENCE"; gotoxy(45,13); cout<<cs_marks; break; case 6: gotoxy(1,10); cout<<"****************MARKS OF FIVE SUBJECTS[COMMERCE WITH PHY.ED.]*****************"; gotoxy(10,11); cout<<"ENGLISH:";
  • 18. gotoxy(20,11); cout<<e_marks; gotoxy(35,11); cout<<"ACCOUNTS:"; gotoxy(45,11); cout<<account_marks; gotoxy(10,12); cout<<"BUSINESS STUDIES:"; gotoxy(20,12); cout<<bstud_marks; gotoxy(35,12); cout<<"ECONOMICS:"; gotoxy(45,12); cout<<eco_marks; gotoxy(10,13); cout<<"PHYSICAL EDUCATION"; gotoxy(45,13); cout<<phyed_marks; break; case 7: gotoxy(1,10); cout<<"**********MARKS OF FIVE SUBJECTS[COMMERCE WITH COMP.SCI.]****************"; gotoxy(10,11); cout<<"ENGLISH:"; gotoxy(20,11); cout<<e_marks; gotoxy(35,11); cout<<"ACCOUNTS:"; gotoxy(45,11); cout<<account_marks; gotoxy(10,12); cout<<"BUSINESS STUDIES:"; gotoxy(20,12); cout<<bstud_marks; gotoxy(35,12); cout<<"ECONOMICS:"; gotoxy(45,12); cout<<eco_marks; gotoxy(10,13); cout<<"COMPUTER SCIENCE"; gotoxy(45,13); cout<<cs_marks; break; } } //************************************************************************* // show all the records of the student //************************************************************************ //*********************************STUDENT************************************** //rollno name Eng Maths Phys Chem Bio Acc. Eco. B.st. P.ED Comp.Sc. void student::showall(int c) { gotoxy(1,c);cout<<rollno; gotoxy(5,c);cout<<name; gotoxy(21,c);cout<<e_marks; gotoxy(28,c); if(m_marks==0) cout<<"--"; else cout<<m_marks; gotoxy(33,c); if(p_marks==0) cout<<"--"; else cout<<p_marks; gotoxy(39,c); if(c_marks==0) cout<<"--"; else cout<<c_marks; gotoxy(45,c); if(b_marks==0) cout<<"--"; else cout<<b_marks; gotoxy(50,c); if(account_marks==0) cout<<"--"; else cout<<account_marks; gotoxy(57,c); if(eco_marks==0) cout<<"--"; else cout<<eco_marks; gotoxy(63,c); if(bstud_marks==0) cout<<"--"; else cout<<bstud_marks; gotoxy(70,c); if(phyed_marks==0) cout<<"--"; else cout<<phyed_marks; gotoxy(75,c); if(cs_marks==0)
  • 19. cout<<"--"; else cout<<cs_marks; } void write_student(int c) { student st; int rnn; ofstream outFile; rnn=getrollno(); outFile.open("student.dat",ios::binary|ios::app); clrscr(); intromain(); st.getdatamulti(c,rnn); outFile.write((char *) &st, sizeof(student)); outFile.close(); gotoxy(10,20); cout<<"**************Student record Has Been Created******************** "; cin.ignore(); getch(); } void display_sp(int n) { student st; ifstream inFile; inFile.open("student.dat",ios::binary); if(!inFile) { cout<<"File could not be open !! Press any Key..."; getch(); return; } int flag=0; while(inFile.read((char *) &st, sizeof(student))) { if(st.retrollno()==n) { clrscr(); intromain(); st.showdatamulti(); flag=1; } } inFile.close(); if(flag==0) cout<<"nnrecord not exist"; getch(); } //*************************************************************** // INTRODUCTION FUNCTION //**************************************************************** void intro() { clrscr(); gotoxy(1,2); cout<<"*********************************STUDENT**************************************"; gotoxy(1,3); cout<<"*******************************REPORT CARD************************************"; gotoxy(1,4); cout<<"*********************************PROJECT**************************************"; gotoxy(10,18); cout<<"MADE BY : Poornima and divya "; gotoxy(35,20); cout<<"SCHOOL : DOON PUBLIC SCHOOL, HALDWANI"; gotoxy(1,22); cout<<"-----------------------------PRESS ANY KEY------------------------------------"; getch(); clrscr(); } void intromain() { clrscr(); gotoxy(1,2); cout<<"*************************STUDENT**REPORT CARD**PROJECT************************"; gotoxy(1,3); cout<<"******************************************************************************"; } void main() { char ch; int k=-111,no=0; intro();
  • 20. clrscr(); do { clrscr(); intromain(); gotoxy(20,6); cout<<"=================MAIN MENU===================="; gotoxy(28,7); cout<<"01. GENERATE REPORT CARD OR RESULT"; gotoxy(28,8); cout<<"02. ENTRY/EDIT OF STUDENT'S DETAIL'S"; gotoxy(28,9); cout<<" [administrator Only]"; gotoxy(28,10);cout<<"03. EXIT"; gotoxy(20,12);cout<<"=============================================="; gotoxy(25,14);cout<<"Please Select Your Option (1-3) "; gotoxy(30,16);cin>>ch; clrscr(); switch(ch) { case '1': clrscr();intromain(); gotoxy(10,8); cout<<"*****ENTER THE ROLL NUMBER TO BE SEARCHED TO PRINT REPORT CARD:"; gotoxy(55,9); cin>>no; reportcard(no); break; case '2': k=checkpass(); if(k==0) {entry_menu();} else { break;} break; case '3':exit(1); break; default :cout<<"a"; } }while(ch!='3'); } //*************************************************************** // ENTRY / EDIT MENU FUNCTION //**************************************************************** void entry_menu() { char ch; int k=-111; int num=0; clrscr(); intromain(); gotoxy(20,6); cout<<"=================MAIN MENU===================="; gotoxy(22,7); cout<<"1.CREATE STUDENT RECORD"; gotoxy(22,8); cout<<"2.DISPLAY ALL STUDENTS RECORDS"; gotoxy(22,9); cout<<"3.SEARCH STUDENT RECORD "; gotoxy(22,10); cout<<"4.MODIFY STUDENT RECORD"; gotoxy(22,11); cout<<"5.DELETE STUDENT RECORD"; gotoxy(22,12); cout<<"6.BACK TO MAIN MENU"; gotoxy(18,13); cout<<"Please Enter Your Choice (1-6) "; gotoxy(55,13); cin>>ch; switch(ch) { case '1': k=selectgroup(); switch(k) { case 1: write_student(1); break; case 2:write_student(2); break; case 3:write_student(3); break; case 4:write_student(4); break; case 5:write_student(5); break; case 6:write_student(6); break; case 7:write_student(7); break; default: cout<<"INVALID CHOICE:";
  • 21. } break; case '2': //display all the student record tabular form clrscr(); intromain(); display_allrec(); break; case '3': //search and display student details clrscr(); intromain(); gotoxy(10,8); cout<<"*****ENTER THE ROLL NUMBER TO BE SEARCHED:"; gotoxy(55,9); cin>>num; display_sp(num); break; case '4': //search and display and modify the student details clrscr(); intromain();gotoxy(10,8); cout<<"*****ENTER THE ROLL NUMBER TO BE SEARCHED and to modify:"; gotoxy(55,9); cin>>num; modify_record(num); break; case '5': //search and display and Delete the student details clrscr(); intromain();gotoxy(10,8); cout<<"*****ENTER THE ROLL NUMBER TO BE SEARCHED and to Delete:"; gotoxy(55,9); cin>>num; delete_record(num); break; case '6': break; } } //*************************************************************** // ADMINISTRATOR USER NAME AND PASSWORD //*************************************************************** int checkpass() { int tmp=-111; char nm[20]; clrscr();intromain(); gotoxy(20,15);cout<<"PLEASE ENTER THE USER NAME:"; cin>>nm;gotoxy(20,18); cout<<"PLEASE ENTER THE PASSWORD:"; cin>>tmp; if(strcmp(nm,"karan")==0 && tmp==12345) { return 0; }else return 1; } //*************************************************************** // SELECT THE GROUP //************************************************************** int selectgroup() { int tmp=-111; clrscr(); intromain();gotoxy(10,8); cout<<"*************************SELECT YOUR GROUP***************************"; gotoxy(10,9);cout<<"*********************************************************************"; gotoxy(10,10); cout<<"1-Physics/Chemistry/Maths With Physical Education"; gotoxy(10,11); cout<<"2-Physics/Chemistry/Maths With Computer Science"; gotoxy(10,12); cout<<"3-Physics/Chemistry/Maths With Biology"; gotoxy(10,13); cout<<"4-Physics/Chemistry/Biology With Physical Education"; gotoxy(10,14); cout<<"5-Physics/Chemistry/Biology With Computer Education"; gotoxy(10,15); cout<<"6-Commerce With Physical Education"; gotoxy(10,16); cout<<"7-Commerce With Computer Eductaion"; gotoxy(12,18); cout<<"Enter the choice:"; gotoxy(35,18); cin>>tmp;
  • 22. return tmp; } //********************************************************************** //function to display all the records of student //********************************************************************** void display_all() { //*********************************STUDENT************************************** //rollno name Eng Maths Phys Chem Bio Acc. Eco. B.st. P.ED Comp.Sc. clrscr();intromain(); gotoxy(1,5); cout<<" **********************STUDENTS MARKS DETAILS***************************"; gotoxy(1,6); cout<<"================================================================================"; gotoxy(1,7); cout<<"RNo."<<setw(4)<<"NAME"<<setw(15)<<"ENG"<<setw(6)<<"MATHS"<<setw(6)<<"PHYS."<<setw(6)<<"CHEM."<<setw(6)<<"BIO."; cout<<setw(6)<<"ACC."<<setw(6)<<"ECO."<<setw(6)<<"B.STUD."<<setw(6)<<"P.ED."<<setw(6)<<"COMP.SC."; gotoxy(1,8); cout<<"================================================================================"; } //****************display record from the file********************************** void display_allrec() { int r=0,col=10; student st; ifstream inFile; inFile.open("student.dat",ios::binary); if(!inFile) { cout<<"File could not be open !! Press any Key..."; getch(); return; } display_all(); while(inFile.read((char *) &st, sizeof(student))) { if(r<=12) { r++; st.showall(col); col++; }else { gotoxy(20,30); cout<<"--------------press any key------------------------"; getch(); clrscr(); display_all(); col=10; r=0; } }inFile.close(); getch(); } //********************check the rollno already given or not****** int getrollno() { ifstream objiff; student st; int count=0; objiff.open("student.dat",ios::binary); objiff.seekg(0,ios::beg); if(!objiff) { cout<<"File could not be open !! Press any Key..."; getch(); } //**************temporary hiding these lines while(objiff.read((char *) &st, sizeof(student))) { count++; } //************************************************ //***********jump to the last line objiff.seekg(count-sizeof(st),ios::beg); objiff.read((char *) &st, sizeof(student)); count=st.retrollno(); count++;
  • 23. objiff.close(); return count; } //************************************************************** //************************************************************ // MODIFY RECORD //********************************************************** void modify_record(int n) { student st,temp; char tmpnm[50]; ifstream inFile; int fpos=-1; inFile.open("student.dat",ios::binary); if(!inFile) { cout<<"File could not be open !! Press any Key..."; getch(); return; } int flag=0; while(inFile.read((char *) &st, sizeof(student))) { if(st.retrollno()==n) { clrscr(); intromain(); st.showdatamulti(); flag=1; } } inFile.close(); if(flag==0) cout<<"nnrecord not exist"; else { //*******modifying the records starts here fstream File; File.open("student.dat",ios::binary|ios::in|ios::out); if(!File) { cout<<"File could not be open !! Press any Key..."; getch(); return; } int flow1=0; while(File.read((char *) &st, sizeof(student))) { if(st.retrollno()==n) { fpos=(int)File.tellg(); break; } } File.seekp(fpos-sizeof(student),ios::beg); strcpy(tmpnm,st.getnm()); flow1=st.getgroup(); switch(flow1) { case 1: gotoxy(1,15); cout<<"*****************************************************************************"; gotoxy(1,16); cout<<"================ENTER NEW VALUES FOR THE RECORDS GIVEN ABOVE================="; temp.modifydata(n,tmpnm,flow1); File.write((char *) &temp, sizeof(student)); break; case 2: gotoxy(1,15); cout<<"*****************************************************************************"; gotoxy(1,16); cout<<"================ENTER NEW VALUES FOR THE RECORDS GIVEN ABOVE================="; temp.modifydata(n,tmpnm,flow1); File.write((char *) &temp, sizeof(student)); break; case 3: gotoxy(1,15); cout<<"*****************************************************************************"; gotoxy(1,16); cout<<"================ENTER NEW VALUES FOR THE RECORDS GIVEN ABOVE================="; temp.modifydata(n,tmpnm,flow1); File.write((char *) &temp, sizeof(student));
  • 24. break; case 4: gotoxy(1,15); cout<<"*****************************************************************************"; gotoxy(1,16); cout<<"================ENTER NEW VALUES FOR THE RECORDS GIVEN ABOVE================="; temp.modifydata(n,tmpnm,flow1); File.write((char *) &temp, sizeof(student)); break; case 5: gotoxy(1,15); cout<<"*****************************************************************************"; gotoxy(1,16); cout<<"================ENTER NEW VALUES FOR THE RECORDS GIVEN ABOVE================="; temp.modifydata(n,tmpnm,flow1); File.write((char *) &temp, sizeof(student)); break; case 6: gotoxy(1,15); cout<<"*****************************************************************************"; gotoxy(1,16); cout<<"================ENTER NEW VALUES FOR THE RECORDS GIVEN ABOVE================="; temp.modifydata(n,tmpnm,flow1); File.write((char *) &temp, sizeof(student)); break; case 7:gotoxy(1,15); cout<<"*****************************************************************************"; gotoxy(1,16); cout<<"================ENTER NEW VALUES FOR THE RECORDS GIVEN ABOVE================="; temp.modifydata(n,tmpnm,flow1); File.write((char *) &temp, sizeof(student)); break; } File.close(); } } //********************************************************* //***************************************************************************** // DELETE THE RECORD OF THE STUDENT //**************************************************************************** void delete_record(int n) { student st; ifstream inFile; inFile.open("student.dat",ios::binary); if(!inFile) { cout<<"File could not be open !! Press any Key..."; getch(); return; } int flag=0; while(inFile.read((char *) &st, sizeof(student))) { if(st.retrollno()==n) { clrscr(); intromain(); st.showdatamulti(); flag=1; } } inFile.close(); char ch; if(flag==0) cout<<"nnrecord not exist"; else { //*******deletion of the records starts from here gotoxy(1,15); cout<<"*****************************************************************************"; gotoxy(5,16); cout<<"======DO YOU WANT TO DELETE THE RECORDS GIVEN ABOVE[YES(Y) OR NO (N)========";gotoxy(2,17); cin>>ch; if (toupper(ch)=='Y') { ofstream outFile; outFile.open("Temp.dat",ios::binary); ifstream objiff("student.dat",ios::binary); objiff.seekg(0,ios::beg); while(objiff.read((char *) &st, sizeof(student))) {
  • 25. if(st.retrollno()!=n) { outFile.write((char *) &st, sizeof(student)); } } outFile.close(); objiff.close(); remove("student.dat"); rename("Temp.dat","student.dat"); againopenandclose(); gotoxy(30,20); cout<<"----------------------------Record Deleted----------------------------------"; } } getch(); } void againopenandclose() { ifstream inFile; student st; inFile.open("student.dat",ios::binary); if(!inFile) { getch(); return; } while(inFile.read((char *) &st, sizeof(student))) { } inFile.close(); } //*********************report card function********************** void reportcard(int c) { ifstream objiff("student.dat",ios::binary); student st; //************************************************************************ if(!objiff) { cout<<"File could not be open !! Press any Key..."; getch(); return; } int flag=0; while(objiff.read((char *) &st, sizeof(student))) { if(st.retrollno()==c) {flag=1; break; } } if(flag==0) { cout<<"record doesnot exists"; }else { st.reportcard(); getch(); } objiff.close(); } //*************************search student ends here********************* //************************************************************** //*************************************************************** // END OF PROJECT //***************************************************************
  • 26.
  • 28. IF CHOICE : 1 IF CHOICE IS 1 OR 2 , 3 ETC. IF CHOICE IS 2: DISPLAY ALL RECORDS IF CHOICE : 3 SEARCH AND DISPLAY
  • 29. IF CHOICE : 4 SEARCH AND MODIFY IF CHOICE : 1 REPORT CARD GENERATE
  • 30.
  • 31. REQUIREMENTS HARDWARE REQUIRED • Printer, to print the required documents of the project • Compact Drive • Processor : intel • Ram : 512 MB or more than 512MB • Harddisk : 80 GB or more than 80GB. SOFTWARE REQUIRED • Operating system : Windows XP • Turbo C++, for execution of program and Ms word, for presentation of output.
  • 32. ADVANTAGES . • We can edit the marks of the student easily and generate the report again • It save the time of the teacher to calculate the percentage and the grade or rank and pass or fail • This software reduces paper work. • It is easy to handle student’s record. • This software saves the time. • Information of each student stores permanently. DISADVANTAGES • This system suitable for only small schools. • Online facility is not available. • Though we have completed this project with all our effort but has certain limitation like it cannot be operated in networking, the working of project is slow.
  • 33. CONCLUSION This software is efficient in maintaining student’s details and can easily perform operations on student’s records. This software also reduces the work load of the of teachers in school as all the details are store in computer system and whenever the detail marks of student needed it can be searched and displayed on the screen. In future, this system can launch on a web portal for easy online entry of students details and marks and student and their parents can login and check the marks and download the reports of their children.
  • 34. SYSTEM DESIGN Then we began with the design phase of the system. System design is a solution, a “HOW TO” approach to the creation of a new system. It translates system requirements into ways by which they can be made operational. It is a translational from a user oriented document to a document oriented programmers. For that, it provides the understanding and procedural details necessary for the implementation. Here we use Flowchart to supplement the working of the new system. The system thus made should be reliable, durable and above all should have least possible maintenance costs. It should overcome all the drawbacks of the Old existing system and most important of all meet the user requirements. START 1-report card 2-administrator 3-exit If choice= 1 If choice=2 If choice =3 then STOP Report card of the student Create the student details/SEARCH/EDIT/DELETE QUIT
  • 35. BIBLIOGRAPHY The great help from our faculty members and my project guide that led the successful completion of the project. Besides that, I took the help of some books and websites to develop the project. They are : -- Sumita Arora – Computer Science with C++ E. Balagurusami – C++ Robert Lafore – Turbo C++