Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Student Report card

No description
by

aroosa khan

on 25 June 2014

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Student Report card

Aroosa khan
zahra pirzada
Sana Yousaf
Raheema Shouqat
Group members
Student Report card
This C++ mini project on STUDENT REPORT CARD has student class with data members like roll no, name, marks and grade. Member functions in this class are used for accept / display details of students and a function to calculate grade based on marks obtained by student. Student Records are stored in binary file.
Description
we used following function in this project.
headerfiles
classes
arrays
loops
user-define functions
Function use in project
#include<iostream>
#include<fstream>
#include<iomanip>
Headerfiles

function declaration
THE MAIN FUNCTION OF PROGRAM
function to write in file
function to read specific record from file
function to read all records from file
function to modify record of file
function to delete record of file
function to display all students grade report
function to display result menu
INTRODUCTION FUNCTION
ENTRY / EDIT MENU FUNCTION

Main feature
classes used in program
we used following classes in this program.
void calculate ( this function is used to calculate grades)
void getdata (this is used to accept data from user)
void showdata (this function is used to show data to the user)
Detail description
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


function declaration
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;

THE MAIN FUNCTION OF PROGRAM
INTRODUCTION FUNCTION
void intro()
{
cout<<"\n\n\n\t\t STUDENT";
cout<<"\n\n\t\tREPORT CARD";
cout<<"\n\n\t\t PROJECT";
cout<<"\n\n\n\tMADE BY : Aroosa khan";
cout<<"\n\tSCHOOL : university of central punjab";
cin.get();
}

ENTRY / EDIT MENU FUNCTION
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();
}
}

Thank you
SNAPSHOT OF INTRO
SNAPSHOT OF EDIT MENU
SNAPSHOT OF MAIN MENU
Full transcript