Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SUBMITTED TO
MR.NADEEM JABBRAN
SUBJECT OOP
MR.NADEEM JABBAR
Dedicated
I dedicated this Project to my Parents who have been great source of inspiration and support.
This Project is also dedicated to Mr.Nadeem Jabbar who encourages us to build our motivation.
ACKNOWLEDGEMENT
ALLHUMDULILLAH, no doubt all praises to ALLAH Almighty, the most Merciful and most
Beneficent, for the successful completion of this project. who gaves us the quality,learning and
bravery to finish this errand. After a challenging period, I feel humbled to achieve a successful
completion of my project which absolutely would have not been possible without the enormous
provision and leadership from Mr.Nadeem Jabbar . He has been a role model for me, by perfectly
showing focus, discipline and strive for perfection in his work. I am very honoured to have the
opportunity to work with him. We might to pay huge amounts of thanks and offer my regards to
our Supe-rvisor Mr. Nadeem Jabbra for his valueable direction,advise and support all through
the learning pro-cedure that he gaves me a helpful course to finish our venture. Finally, I am
especially thankful to my family for unlimited care and support me in harsh time.
Contents
Dedication vii
1. Introduction………..………………………………………..........1
1.1 What is Cloud Computing?.....................................................2
1.2 Organization of Project………………………………………9
2. Proposed Scheme………...……………………………………...22
3. 3.1 Introduction………………………………………………......23
4. Experimental Evaluation……………….………………………30
4.1 Implementation and Evaluation………………………………31
Chapter 1
INTRODUCTION
University Examination System project is developed in object oriented programming using C++
language. In University, a large amount of data is processed and the results are used in running
an organization. The University Examination system maintains the list of colleges and their
different streams along with the result department. There are menus and sub menus in the
output of the project which has given this project an organized look.
To maintain the record of colleges, students, examination and result, the university department
prepares the record for each department, showing the total number of students. It also keeps
track of any modification necessary related to students and colleges, and produces regular
reports for the organization giving the total information required. This whole system is based on
a concept to generate student’s report in grading system.
After filling all these, student’s grade report is displayed with CGPA and Status. This system can
be used mostly in schools and colleges for systematic grading reports and it is not time
consuming. This whole project is designed in ‘C++’ language & different variables and strings have
been used for the development. It is easy to operate and understand by the users. Additionally,
the project also maintains and handles the examination as well as the result department with a
proper menu system. In this post, I have made this project available for free download with full
project result report, documentation, output screens and source code.
Chapter 2
Proposed Approach
Object Oriented Programming
The major motivating factor in the invention of object-oriented approach is to remove some of
the flaws encountered in the procedural approach. OOP treats data as a critical element in the
program development and does not allow it to flow freely around the system. It ties data more
closely to the functions that operate on it and protects it from accidental modification from
outside functions. Object – oriented programming is the most recent concept among
programming paradigms. We define “object-oriented programming as an approach that provides
a way of modularize problems by creating partitioned memory area for both data and functions
that can be used as templates for creating copies of such modules on demand.
Object: Objects are entities, which can exist individually. It has its own properties
and methods, where properties define the outlook of the object and methods define
their procedures.
Encapsulation: The data and the methods, which operate on the data, are
combined and placed in a group, this phenomenon is known as encapsulation, and
the group is known as the object.
Abstraction: It means hiding of the data of one object of a class from another object
of the same class.
Inheritance: Inheritance is the property by which an existing class can be used to
create new classes, by deriving all the properties and methods of the old class to
the new class and also adding new properties /methods in the new class. The old
class is known as a base class or super class. The new class is known as derived class
or sub class.
Multiple Inheritance: When two or more classes are used to define a single class,
then it is known as multiple inheritance.
3.1 Introduction
Class
Loop
While
Do while
If
Else If
Switch
Hardware Configuration
HDD: 20 GB
FDD: 1.44 MB
Software
Operating System: WINDOWS 98 SE
//***************************************************************
//****************************************************************
#include<iostream>
#include<fstream>
#include<iomanip>
//***************************************************************
//****************************************************************
class student
int rollno;
char name[50];
int OOP_marks, DB_marks, WEBDEVELOP_marks, DCN_marks, SE_marks;
double per;
char grade;
public:
void student::calculate()
per=(OOP_marks+DB_marks+
WEBDEVELOP_marks+DCN_marks+SE_marks)/5.0;
if(per>=80)
grade='A';
else if(per>=65)
grade='B';
else if(per>=50)
grade='C';
else
grade='F';
void student::getdata()
cin>>rollno;
cin.ignore();
cin.getline(name,50);
cin>>OOP_marks;
cin>>DB_marks;
cin>>WEBDEVELOP_marks;
cin>>DCN_marks;
cin>>SE_marks;
calculate();
}
void student::showdata() const
cout<<"\nMarks In DB : "<<DB_marks;
cout<<"\nMarks In SE :"<<SE_marks;
cout<<rollno<<setw(6)<<"
"<<name<<setw(10)<<OOP_marks<<setw(4)<<DB_marks<<setw(4)<<WEBDEVEL
OP_marks<<setw(4)
<<DCN_marks<<setw(4)<<SE_marks<<setw(8)<<per<<setw(6)<<grade<<en
dl;
return rollno;
//***************************************************************
// function declaration
//****************************************************************
void display_sp(int); //accept rollno and read record from 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
//***************************************************************
int main()
char ch;
cout.setf(ios::fixed|ios::showpoint);
intro();
do
system("cls");
cout<<"\n\n\n\tMAIN MENU";
cout<<"\n\n\t03. EXIT";
cin>>ch;
switch(ch)
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.close();
cin.get();
//***************************************************************
//****************************************************************
void display_all()
student st;
ifstream inFile;
inFile.open("student.dat",ios::binary);
if(!inFile)
cin.ignore();
cin.get();
return;
{
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)
cin.ignore();
cin.get();
return;
}
bool flag=false;
if(st.retrollno()==n)
st.showdata();
flag=true;
inFile.close();
if(flag==false)
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)
cin.ignore();
cin.get();
return;
if(st.retrollno()==n)
st.showdata();
st.getdata();
int pos=(-1)*static_cast<int>(sizeof(st));
File.seekp(pos,ios::cur);
found=true;
File.close();
if(found==false)
cin.ignore();
cin.get();
//***************************************************************
//****************************************************************
void delete_student(int n)
student st;
ifstream inFile;
inFile.open("student.dat",ios::binary);
if(!inFile)
cin.get();
return;
ofstream outFile;
outFile.open("Temp.dat",ios::out);
inFile.seekg(0,ios::beg);
if(st.retrollno()!=n)
outFile.close();
inFile.close();
remove("student.dat");
rename("Temp.dat","student.dat");
cin.ignore();
cin.get();
}
//***************************************************************
//****************************************************************
void class_result()
student st;
ifstream inFile;
inFile.open("student.dat",ios::binary);
if(!inFile)
cin.ignore();
cin.get();
return;
cout<<"=======================================================
==================================\n";
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";
system("cls");
switch(ch)
display_sp(rno); break;
default: cout<<"\a";
//***************************************************************
// INTRODUCTION FUNCTION
//****************************************************************
void intro()
cout<<"\n\n\n\t\t STUDENT";
cout<<"\n\n\t\tRESULT CARD";
//***************************************************************
//****************************************************************
void entry_menu()
char ch;
int num;
system("cls");
cout<<"\n\n\n\tENTRY MENU";
cin>>ch;
system("cls");
switch(ch)
{
display_sp(num); break;
modify_student(num);break;
delete_student(num);break;
//***************************************************************
// END OF PROJECT
//***************************************************************
SCREEN SHOOT OF PROJECT
MAIN MENU
ENTRY MENU
DISPLAY DATA