Student Report Card Project in C++ with Source Code

The C++ Program On Student Report Card is developed in C++ Programming Language, This Student Report Card System In C++ is a simple console application built without the use of graphics. In this project Student Report Card C++, users can perform typical report card related functions like adding a new student record and displaying, modifying, editing and deleting it.

Today, we’ll create a C++ project called Student Record System using straightforward code. In essence, we’ll develop various capabilities to create, search for, show, delete records, or edit student results.

We’ll employ a lot more features in the project for the student outcome record system. Let’s take a quick look at this RRS (void class result record system) project’s features.

ABOUT PROJECTPROJECT DETAILS
Project Name : Student Report Card
Project Platform :C/C++
Programming Language Used:C++ Programming Language
Developer Name :itsourcecode.com
IDE Tool (Recommended):Dev-C++/Codeblocks
Project Type :Desktop Application
Database:Stores data in .DAT file
C++ Program On Student Report Card With Source Code Information

A Student Report Card In C++ File handling has been effectively used to perform all these. This project Student Report Card Project In C++ with output will teach you how to use file handling in C++, add, read, display all students, search, modify and void delete student int record from binary file.

This C++ Student Report Card System Project also includes a downloadable Project Report On Student Report Card In C++ source code for free, just find the downloadable source code below and click to start downloading.

To start creating a Student Report Card System Project In C++,make sure that you have code blocks or any platform of C/C++ language installed in your computer.

What is Student Report Card in C++

A simple console program that was developed for the student report card system project in C++, it did not make use of any visuals. Users of this application will be able to carry out activities that are often associated with report cards, such as creating new student records and viewing, changing, revising, and deleting existing ones.

The management of files has been utilized quite well in order to accomplish all of these. You will learn how to utilize file handling in C++, as well as how to add, read, display, search, change, and remove records from files, by completing this project.

Steps on how to create a C++ Program On Student Report Card

C++ Program On Student Report Card With Source Code

  • Step 1: Create a new project.

    First open the code blocks IDE and click “create a new project“.
    create project

  • Step 2: Choose console application.

    Second click the “console application” and after that click “next“.
    student report cardconsole application

  • Step 3: Choose C++ language.

    Third choose “C++ language” and click “next“.
    student report card console c++

  • Step 4: Name Your Project.

    Fourth name the project you’ve created and click “next” after that click “finish“.
    student report card project title

  • Step 5: The actual code.

    You are free to copy the given source code below or download the downloadable source code given.

The Code Given Below Is For The Student Entry Data Module

void student::getdata()
{
	cout<<"\nEnter The roll number of student ";
	cin>>rollno;
	cout<<"\n\nEnter The Name of student ";
	cin.ignore();
	cin.getline(name,50);
	cout<<"\nEnter The marks in physics out of 100 : ";
	cin>>p_marks;
	cout<<"\nEnter The marks in chemistry out of 100 : ";
	cin>>c_marks;
	cout<<"\nEnter The marks in maths out of 100 : ";
	cin>>m_marks;
	cout<<"\nEnter The marks in english out of 100 : ";
	cin>>e_marks;
	cout<<"\nEnter The marks in computer science out of 100 : ";
	cin>>cs_marks;
	calculate();
}

In this module which is the getting all the student grades in different subject.

The Code Given Below Is For Showing Student Data Module

void student::showdata() const
{
	cout<<"\nRoll number of student : "<<rollno;
	cout<<"\nName of student : "<<name;
	cout<<"\nMarks in Physics : "<<p_marks;
	cout<<"\nMarks in Chemistry : "<<c_marks;
	cout<<"\nMarks in Maths : "<<m_marks;
	cout<<"\nMarks in English : "<<e_marks;
	cout<<"\nMarks in Computer Science :"<<cs_marks;
	cout<<"\nPercentage of student is  :"<<per;
	cout<<"\nGrade of student is :"<<grade;
}

In this module which is the module for showing the data of the student.

The Code Given Below Is For The Main Menu Module

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;
}

In this module which is the main module or void entry menu of the system.

The Code Given Below Is For The Student Data File Module

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();
}

In this module which is the module for writing a data of a student in a file.

The Code Given Below Is For Displaying Data File Module

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();
}

In this module which is the module for displaying all the data of the student from a data file.

The Code Given Below Is For The Class Result Module

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        P   C   M   E   CS   %age   Grade"<<endl;
	cout<<"==========================================================\n";
	while(inFile.read(reinterpret_cast<char *> (&st), sizeof(student)))
	{
		st.show_tabular();
	}
	cin.ignore();
	cin.get();
	inFile.close();
}

//***************************************************************
//    	function to display result menu
//****************************************************************

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";
	}
}

In this module which is the module for the class result.

Downloadable Source Code

Summary

This C++ Student Report Card Project is a simple terminal application without graphics. In Student Report Card C++, users may add, display, change, edit, and delete student records.

We’ll construct Student Record System in C++ using simple code. We’ll build, search for, display, remove, and amend student results.

The student outcome record system will have more features. Let’s examine this RRS project’s characteristics. C++ Grades All of these utilize file handling. This project will show you how to utilize file handling in C++, add, read, display, search, change, and remove records.

Related Articles

Inquiries

If you have any questions or suggestions about Student Report Card Project in C , please feel free to leave a comment below.

Leave a Comment