Kashipara.com is a community of ONE million programmers and students, Just like you, Helping each other.Join them. It only takes a minute: Sign Up
Job Resume TemplateIn this page Student Report Card project is a desktop application which is developed in C/C++ platform. This C/C++ project with tutorial and guide for developing a code. Student Report Card is a open source you can Download zip and edit as per you need. If you want more latest C/C++ projects here. This is simple and basic level small project for learning purpose. Also you can modified this system as per your requriments and develop a perfect advance level project. This project can edit using a Dev C++ IDE. Following C/C++ project contains all the important features which can be in use for the BE, BTech, MCA, BCA, Engineering, Bs.CS, IT, Software Engineering, Computer Science students and Devloper for their college projects. This script developed by B J. This desktop application 100% working smooth without any bug. It is developed using C++ and Database no. This software code helpful in academic projects and research paper for final year computer science. To download Student Report Card project in C/C++ with source code files, please scroll down to the bottom of this page for the Download Zip file of source code button.
| project Name | Student Report Card |
| Project Complexity | advanced |
| Duration | 15 Days |
| project ID | 3310 |
| Developer Name | B J |
| Publish Date | June 25, 2019 |
| project Platform | C/C++ |
| Programming Language | For this particular C/C++ project, C++ is required |
| Front End | C/C++ |
| Back End | C, C++, MySQL |
| IDE Tool | Dev C++ |
| Database Integration | no |
| project Type | desktop Application |
| No of project Download | 243 |
| project Total View | 10143 |
| Today Trends | 619 |
| Current Month Trends | 670 |
| Last Month Trends | 112 |
You have any error or you don't understand project follow or any other problem.You can ask question. you know any answer or solution then give a answer and help other student.Complete they project perfectly.
Click the Download Button Below to Start Downloading
Download Student Report Card source code at free of cost. Download link provide below.
Download CodeAfter you finish downloading the project, unzip the project file.
#include<iostream>
#include<fstream>
#include<iomanip>
using namespace std;
class student
{
int rollno;
int Class;
char name[50];
int s_marks, ss_marks, m_marks, e_marks, h_marks;
double per;
char grade;
void calculate(); //function to calculate grade
public:
void getdata(); //function to accept data from user
void showdata() const; //function to show data on screen
void show_tabular() const;
int retrollno() const;
int retClass() const;
}; //class ends here
void student::calculate()
{
per=(s_marks+ss_marks+m_marks+e_marks+h_marks)/5.0;
if(per>=60)
grade='A';
else if(per>=50)
grade='B';
else if(per>=33)
grade='C';
else
grade='F';
}
void student::getdata()
{
cout<<"\nEnter The roll number of student ";
cin>>rollno;
cout<<"\nEnter Class of student";
cin>>Class;
cout<<"\n\nEnter The Name of student ";
cin.ignore();
cin.getline(name,50);
cout<<"\nEnter The marks in Science out of 100 : ";
cin>>s_marks;
cout<<"\nEnter The marks in Social Science out of 100 : ";
cin>>ss_marks;
cout<<"\nEnter The marks in Maths out of 100 : ";
cin>>m_marks;
cout<<"\nEnter The marks in English out of 100 : ";
cin>>e_marks;
cout<<"\nEnter The marks in Hindi out of 100 : ";
cin>>h_marks;
calculate();
}
void student::showdata() const
{
cout<<"\nRoll number of student : "<<rollno;
cout<<"\nClass of student : "<<Class;
cout<<"\nName of student : "<<name;
cout<<"\nMarks in Science : "<<s_marks;
cout<<"\nMarks in Social Science : "<<ss_marks;
cout<<"\nMarks in Maths : "<<m_marks;
cout<<"\nMarks in English : "<<e_marks;
cout<<"\nMarks in Hindi :"<<h_marks;
cout<<"\nPercentage of student is :"<<per;
cout<<"\nGrade of student is :"<<grade;
}
void student::show_tabular() const
{
cout<<rollno<<setw(6)<<Class<<setw(6)<<" "<<name<<setw(10)<<s_marks<<setw(4)<<ss_marks<<setw(4)<<m_marks<<setw(4)
<<e_marks<<setw(4)<<h_marks<<setw(8)<<per<<setw(6)<<grade<<endl;
}
int student::retrollno() const
int student::retClass() const
{
return rollno;
return Class;
}
void write_student(); //write the record in binary file
void display_all(); //read all records from binary file
void display_sp(int); //accept rollno and read record from binary file
void modify_student(int); //accept rollno and update record of binary file
void delete_student(int); //accept rollno and delete selected records from binary file
void class_result(); //display all records in tabular format from binary file
void result(); //display result menu
void intro(); //display welcome screen
void entry_menu(); //display entry menu on screen
int main()
{
char ch;
cout.setf(ios::fixed|ios::showpoint);
cout<<setprecision(2); // program outputs decimal number to two decimal places
intro();
do
{
system("cls");
cout<<"\n\n\n\tMAIN MENU";
cout<<"\n\n\t01. RESULT MENU";
cout<<"\n\n\t02. ENTRY/EDIT MENU";
cout<<"\n\n\t03. EXIT";
cout<<"\n\n\tPlease Select Your Option (1-3) ";
cin>>ch;
switch(ch)
{
case '1': result();
break;
case '2': entry_menu();
break;
case '3':
break;
default :cout<<"\a";
}
}while(ch!='3');
return 0;
}
void write_student()
{
student st;
ofstream outFile;
outFile.open("student.dat",ios::binary|ios::app);
st.getdata();
outFile.write(reinterpret_cast<char *> (&st), sizeof(student));
outFile.close();
cout<<"\n\nStudent record Has Been Created ";
cin.ignore();
cin.get();
}
void display_all()
{
student st;
ifstream inFile;
inFile.open("student.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
cin.ignore();
cin.get();
return;
}
cout<<"\n\n\n\t\tDISPLAY ALL RECORD !!!\n\n";
while(inFile.read(reinterpret_cast<char *> (&st), sizeof(student)))
{
st.showdata();
cout<<"\n\n====================================\n";
}
inFile.close();
cin.ignore();
cin.get();
}
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...";
cin.ignore();
cin.get();
return;
}
bool flag=false;
while(inFile.read(reinterpret_cast<char *> (&st), sizeof(student)))
{
if(st.retrollno()==n)
{
st.showdata();
flag=true;
}
}
inFile.close();
if(flag==false)
cout<<"\n\nrecord not exist";
cin.ignore();
cin.get();
}
void modify_student(int n)
{
bool found=false;
student st;
fstream File;
File.open("student.dat",ios::binary|ios::in|ios::out);
if(!File)
{
cout<<"File could not be open !! Press any Key...";
cin.ignore();
cin.get();
return;
}
while(!File.eof() && found==false)
{
File.read(reinterpret_cast<char *> (&st), sizeof(student));
if(st.retrollno()==n)
{
st.showdata();
cout<<"\n\nPlease Enter The New Details of student"<<endl;
st.getdata();
int pos=(-1)*static_cast<int>(sizeof(st));
File.seekp(pos,ios::cur);
File.write(reinterpret_cast<char *> (&st), sizeof(student));
cout<<"\n\n\t Record Updated";
found=true;
}
}
File.close();
if(found==false)
cout<<"\n\n Record Not Found ";
cin.ignore();
cin.get();
}
void delete_student(int n)
{
student st;
ifstream inFile;
inFile.open("student.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
cin.ignore();
cin.get();
return;
}
ofstream outFile;
outFile.open("Temp.dat",ios::out);
inFile.seekg(0,ios::beg);
while(inFile.read(reinterpret_cast<char *> (&st), sizeof(student)))
{
if(st.retrollno()!=n)
{
outFile.write(reinterpret_cast<char *> (&st), sizeof(student));
}
}
outFile.close();
inFile.close();
remove("student.dat");
rename("Temp.dat","student.dat");
cout<<"\n\n\tRecord Deleted ..";
cin.ignore();
cin.get();
}
void class_result()
{
student st;
ifstream inFile;
inFile.open("student.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
cin.ignore();
cin.get();
return;
}
cout<<"\n\n\t\tALL STUDENTS RESULT \n\n";
cout<<"==========================================================\n";
cout<<"R.No Name S SS M E H %age Grade"<<endl;
cout<<"==========================================================\n";
while(inFile.read(reinterpret_cast<char *> (&st), sizeof(student)))
{
st.show_tabular();
}
cin.ignore();
cin.get();
inFile.close();
}
void result()
{
char ch;
int rno;
system("cls");
cout<<"\n\n\n\tRESULT MENU";
cout<<"\n\n\n\t1. Class Result";
cout<<"\n\n\t2. Student Report Card";
cout<<"\n\n\t3. Back to Main Menu";
cout<<"\n\n\n\tEnter Choice (1/2/3)? ";
cin>>ch;
system("cls");
switch(ch)
{
case '1' : class_result(); break;
case '2' : cout<<"\n\n\tEnter Roll Number Of Student : "; cin>>rno;
display_sp(rno); break;
case '3' : break;
default: cout<<"\a";
}
}
void intro()
{
cout<<"\n\n\n\t\t Welcome To STUDENT REPORT CARD PROJECT";
cout<<"\n\n\n\tMADE BY : BJ";
cout<<"\n\tComapny : Technology Easy";
cin.get();
}
void entry_menu()
{
char ch;
int num;
system("cls");
cout<<"\n\n\n\tENTRY MENU";
cout<<"\n\n\t1.CREATE STUDENT RECORD";
cout<<"\n\n\t2.DISPLAY ALL STUDENTS RECORDS";
cout<<"\n\n\t3.SEARCH STUDENT RECORD ";
cout<<"\n\n\t4.MODIFY STUDENT RECORD";
cout<<"\n\n\t5.DELETE STUDENT RECORD";
cout<<"\n\n\t6.BACK TO MAIN MENU";
cout<<"\n\n\tPlease Enter Your Choice (1-6) ";
cin>>ch;
system("cls");
switch(ch)
{
case '1': write_student(); break;
case '2': display_all(); break;
case '3': cout<<"\n\n\tPlease Enter The roll number "; cin>>num;
display_sp(num); break;
case '4': cout<<"\n\n\tPlease Enter The roll number "; cin>>num;
modify_student(num);break;
case '5': cout<<"\n\n\tPlease Enter The roll number "; cin>>num;
delete_student(num);break;
case '6': break;
default: cout<<"\a"; entry_menu();
}
}
Downloading the Student Report Card project from Kashipara is a best choice for students, beginners, and developers looking for a reliable, well documented, and ready to use project in C/C++.
Creating diagrams like Class Diagrams, Use Case Diagrams, Entity–Relationship (ER) Diagrams, Data Flow Diagrams (DFD), and Sequence Diagrams is essential for designing and understanding software systems. Here’s a proper guide to help you get started with each type:
What our programmer says about project