You are on page 1of 20

lOMoARcPSD|6229134

Oop final project

Object Oriented Programming (COMSATS University Islamabad)

StuDocu is not sponsored or endorsed by any college or university


Downloaded by Souban Javed (soubanjaved21@gmail.com)
lOMoARcPSD|6229134

DEPARTMENT OF ELECTRICL ENGINEERING

OBJECT ORIENTED PROGRAMMING FINAL PROJECT REPORT

Group Mates:

Muhammad Talha Azeem (FA19-BEE-147)

Sabeeh-Ud-Deen (FA19-BEE-221)

CLASS:

BEE3-C

SUBMITTED TO:

Mehwish Mehmood

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

UNIVERSITIES ADMISSION AND JOBS APPLICAYION MANAGEMENT SYSTEM

• INTRODUCTION TO PROJECT:
This project is about the management system for application of university admission and job
application form. This project is purely based on the concept of object oriented programming
and is in C++ language. The main part of this project is generation of the Roll No. slips and
Fee Voucher of the applicant. Which purely requires the concept of the inheritance. This
project is also a multi-dimensional project as it also increases the reusability of code the same
code is used for the university admission form and job application form.
This program have two dimensions one leads code toward the university admission form and
the 2nd leads code toward the job application form. Also it reduces the time waste for the
applicant and the staff handling the applications and the candidates. The applicants who are
not eligible for the admission or the job are informed in the filling of form. The form of those
candidates will not be filled complete and their roll no slip will not be generated. This
program also save the money for both the applicants and the staff. These kind of projects are
introduced to decrease the time and money waste.

• RELATED WORK:
This kind of projects have very vast application and are spread everywhere in many different
forms. But all the projects related to this project are just handling the one dimension of this
project. I put my effort and make a simpler code and bring the two different things on same
forum. Now this program is handling the two things. There are many programs related to this
from those I was inspired are: o Universities admission portal. o Jobs application portal
system.
o NTS application system.
o Hospital patient admit card management.
o Patient management system. o School management system.
o Shopping store management system. o Police jobs
management system. o Army jobs application form system.
All the above system are related to the each other and to my project. They all require almost
same things to proceeds. The NTS application is the program to which I am inspired most.
Also my project have too much resemblance to NTS application system.

• MOTIVATION:

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

The program which I have made is for the help of applicants to save their time and money.
Now a day everyone needs modern solution for their problems. The job application and
university admission application is a big difficulty for the applicants. It can only be simplified
by a modern technique. The programming is modern method to solve this problem. I have
made a program that allows the users to know whether they are eligible for admission and job
or not. If the user is applicable then his roll no slip and test fee voucher will be generated.

•MODULES:
The module of my project are described below.
o Choose Add:
In this part of program the user have choice whether he wants to go for the job application or
he wants to go for university admission application form as.

Output of this part is as:

 If press 1:
When 1 is pressed program moves for job advertisements.

Output of this part is as:

 If press 2:
When 2 is pressed the program moves to the university admission management
system.

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

Output for this part is as:

 If 3 press 3:
When 3 is pressed then program exits automatically.

o Select Department:
When 1 is selected in first module then program comes to select the department foe the job as.

Output for this part is as:

o
Select university for admission:
When the case is selected in the first module of program then the program moves to the part
of program for selection of university. And give the choices of universities as:

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

Output for this part is as:

o Bio
data:
The next module of program is collecting the bio data of the applicant. Which consist of
name of applicant, father name, cinc no and city name.

Output for this part is as:

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

o Marks Details:
The main part of the application is the marks of the applicant. If the marks are less than
required limit then the program exits. If the marks are good then the application proceeds.

Output for this part is as:

If matric marks are less then program exits as:

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

If FSC marks are less then program exits as:

o Age of Applicant:
In this part of program the age of applicant is entered if the applicant is eligible on basis of
age his roll no slip and fee chalan are generated otherwise program will exit.

Outputs for this part is as:

If the age is less than program exits as:

o Roll No. Slip:

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

After all the data from the applicant collected. His roll no slip will be generated which is
purely obtained by making a derived class. Which inherits the qualities of other base classes
as.

This is the syntax for multiple inheritance.

This is the roll no slip which have the variables of other classes used by the inheritance.

Outputs for this part is as:

********** WELCOME **********

********** ROLL NO SLIP OF APPLICANT *********

*****NAME: TALHA*****

*****FATHER NAME: SABIR*****

*****CNIC of Candidate: 3301-5921335-5*****

*****CITY OF Candidate: ISLAMABAD*****

*****AGE of candidate is: 19years*****

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

*****Marks of candidate in matric are: 83.4286%*****

*****Marks of candidate in FSC are: 64.2727%*****

ROLL NO: 123X90X80.

DATE: 25TH DECEMBER 2019.

TIME: 10:00AM TO 01:00PM.

VENUE: SERENA HOTEL ISLAMABAD.

:NOTE: YOU ARE ALLOWED IN EXAMINATION HALL ONLY IN PRESENCE OF FOLLOWING. :

1) PAID FEE CHALAAN FEE STUDENT COPY.


2) ORIGNAL CNIC IN CASE OF LESS THAN 18YRS 8-FORM IS REQUIRED.
3) ALL ORIGNAL EDUCATIONAL DOCUMENTS ARE REQUIRED.

o FEE Voucher:
The fee voucher is also the main part of the program and is useful for student at the time of test.

Outputs for this part is as:

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

Name: TALHA
FATHER NAME: SABIR
CNIC OF CANDIDATE: 33301-5921335-5
UML DIAGRAMS
the UML Diagrams of my projects are as:

o Use Case Diagram:

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

o Class Diagram:

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

COMPLETE CODE:
#include<iostream>
#include<string.h> using
namespace std;
class jobs
{ public:
void select_department()
{
int b; cout<<"
__________________________________________________________________________"<<endl;
cout<<" | |"<<endl;
cout<<" | *************Present departments are as follows.*********** |"<<endl;
cout<<" |Press 1 for ISLAMABAD POLICE. |"<<endl; cout<<"
|Press 2 for TEACHING JOBS. |"<<endl;
cout<<" |Press 3 for FPSC GOVERMENT Jobs... |"<<endl;
cout<<" |Press 4 to exit... |"<<endl; cout<<"
|Press your choice: |"<<endl; cout<<"
|__________________________________________________________________________|"<<endl;
cin>>b; switch(b) { case(1):
{ cout<<"
__________________________________________________________________________"<<endl;
cout<<" | |"<<endl;
cout<<" | *****You selected the ISLAMABAD POLICE DEPARTMENT***** |"<<endl;
cout<<"
|__________________________________________________________________________|"<<endl;
break; } case(2): { cout<<"
__________________________________________________________________________"<<endl;
cout<<" | |"<<endl;
cout<<" | *****You selected teaching jobs***** |"<<endl; cout<<"
|__________________________________________________________________________|"<<endl;
break; } case(3):
{ cout<<"
__________________________________________________________________________"<<endl;
cout<<" | |"<<endl;
cout<<" | *****You selected FPSC GOVERMENT JOBS***** |"<<endl; cout<<"
|__________________________________________________________________________|"<<endl;

break; }
case(4): {
exit(0); }
}
}
};

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

class university
{ public: void
select_university()
{ int
c;
cout<<"
___________________________________________________________________________"<<endl;
cout<<" | |"<<endl;
cout<<" | *************Present UNIVERSITIES are as follows.*********** |"<<endl;
cout<<" |Press 1 for COMSATS Islamabad. |"<<endl;
cout<<" |Press 2 for NUST. |"<<endl;
cout<<" |Press 3 for PIEAS. |"<<endl;
cout<<" |Press 4 for UET Texil. |"<<endl;
cout<<" |Press 5 for FAST Islamabad. |"<<endl;
cout<<" |press 6 to Exit. |"<<endl; cout<<"
|Enter your choice: |"<<endl; cout<<"
|___________________________________________________________________________|"<<endl;
cin>>c; switch(c) { case(1):
{
cout<<" _____________________________________________________"<<endl; cout<<"
| |"<<endl;
cout<<" | You selected COMSATS ISLAMABAD. |"<<endl;
cout<<" | WELCOME......Enter your details. |"<<endl;
cout<<" |_____________________________________________________|"<<endl;
break; }
case(2):
{
cout<<" _____________________________________________________"<<endl;
cout<<" | |"<<endl; cout<<" | You
selected NUST. |"<<endl;
cout<<" | WELCOME......Enter your details. |"<<endl;
cout<<" |_____________________________________________________|"<<endl;
break; } case(3):
{ cout<<" _____________________________________________________"<<endl;
cout<<" | |"<<endl; cout<<" | You selected
PIEAS. |"<<endl; cout<<" | WELCOME......Enter your details.
|"<<endl;
cout<<" |_____________________________________________________|"<<endl;
break; } case(4):
{ cout<<" _____________________________________________________"<<endl;
cout<<" | |"<<endl; cout<<" | You selected
UET Taxila. |"<<endl;
cout<<" | WELCOME......Enter your details. |"<<endl;
cout<<" |_____________________________________________________|"<<endl;
break; } case(5):

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

{ cout<<" _____________________________________________________"<<endl; cout<<"


| |"<<endl;
cout<<" | You selected FAST ISLAMABAD. |"<<endl;
cout<<" | WELCOME......Enter your details. |"<<endl;
cout<<" |_____________________________________________________|"<<endl;
break; } case(6): { exit(0); }
}
}
};

class biodata {
protected:
string nm;
string fnm;
string
cnic_num;
string
candidate_city
_name;
public:
void name1()
{ cout<<" _____________________________________________________________"<<endl; cout<<"
| |"<<endl;
cout<<" |Enter your name:";cin>>nm;
cout<<" |_____________________________________________________________|"<<endl;
}
void name2()
{ cout<<" _____________________________________________________________"<<endl;
cout<<" | |"<<endl;
cout<<" |Enter your Father name:";cin>>fnm;
cout<<" |_____________________________________________________________|"<<endl;
} void
cnic() {
cout<<"
__________________________________________________________________________"<<endl;
cout<<" | |"<<endl;
cout<<" |Enter your cnic number(XXXXX-XXXXXXX-X):";cin>>cnic_num; cout<<"
|__________________________________________________________________________|"<<endl;
}
void city_name()
{ cout<<"
________________________________________________________________________"<<endl;
cout<<" | |"<<endl;
cout<<" |Enter your City Name:";cin>>candidate_city_name; cout<<"

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

|________________________________________________________________________|"<<endl;
}
};

class marks_details
{ protected:
float tmm, mm, permm;
float tfm, fm, perfm; public:
void matric_marks()
{
cout<<"
________________________________________________________________________"<<endl;
cout<<" | |"<<endl;
cout<<" |Enter your total matric marks: ";cin>>tmm; cout<<"
|Enter your obtained matric marks: ";cin>>mm; cout<<"
|________________________________________________________________________|"<<endl;
permm=(mm*100)/tmm;
cout<<"Your Matric marks are"<<permm<<endl<<endl<<endl<<endl; if(permm<60)
{
cout<<"You are not ligible for admission"; exit(0);
}}
void fsc_marks()
{ cout<<"
________________________________________________________________________"<<endl;
cout<<" | |"<<endl;
cout<<" |Enter your total FSC marks: ";cin>>tfm; cout<<"
|Enter your obtained FSC marks: ";cin>>fm; cout<<"
|________________________________________________________________________|"<<endl;

perfm=(fm*100)/tfm;
cout<<"Your Matric marks are"<<perfm<<endl<<endl<<endl<<endl; if(perfm<60)
{
cout<<"You are not ligible for admission"; exit(0);
}
} }; class
age {
protected:
float age_applicant; public:
void candidate_age()
{ cout<<"
________________________________________________________________________"<<endl;
cout<<" | |"<<endl;
cout<<" |Enter Age of Candidatein years: ";cin>>age_applicant;
cout<<"

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

|________________________________________________________________________|"<<endl;

cout<<"******************************************************************************
"<<endl;
cout<<"******************************************************************************
"<<endl<<endl<<endl;
if(age_applicant<16 || age_applicant>22)
{
cout<<"Yor age is not on merit. Sorry you are not ligible."; exit(0);
}
}
};

class roll_no_slip : public biodata,public age, public marks_details


{ public:
void slip()
{ cout<<"
_________________________________________________________________________"<<endl;
cout<<" | |"<<endl;
cout<<" | ************** WELCOME ************ |"<<endl; cout<<"
| ********** ROLL NO SLIP OF APPLICANT ********** |"<<endl; cout<<"
|_________________________________________________________________________|"<<endl;
cout<<" | | "<<endl;
cout<<" | *****NAME: "<<nm<<"*****"<<endl; cout<<" | *****FATHER
NAME: "<<fnm<<"*****"<<endl; cout<<" | *****CNIC of Candidate:
"<<cnic_num<<"*****"<<endl; cout<<" | *****CITY OF Candidate:
"<<candidate_city_name<<"*****"<<endl; cout<<" | *****AGE of candidate is:
"<<age_applicant<<"years"<<"*****"<<endl; cout<<" | *****marks of candidate
in matric are: "<<permm<<"%*****"<<endl; cout<<" | *****marks of candidate in
FSC are: "<<perfm<<"%*****"<<endl; cout<<"
|_________________________________________________________________________|"<<endl;
cout<<" | |"<<endl;
cout<<" | ROLL NO: 123X90X80. |"<<endl; cout<<" |
DATE: 25TH DECEMBER 2019. |"<<endl; cout<<" |
TIME: 10:00AM TO 01:00PM. |"<<endl; cout<<" |
VENUE: SERENA HOTEL ISLAMABAD. |"<<endl; cout<<"
|_________________________________________________________________________|"<<endl;
cout<<" | |"<<endl;
cout<<" |NOTE: YOU ARE ALLOWED IN EXAMINATION HALL ONLY IN PRESENCE OF
FOLLOWING. |"<<endl;
cout<<" |1) PAID FEE CHALAAN FEE STUDENT COPY. |"<<endl; cout<<"
|2) ORIGNAL CNIC IN CASE OF LESS THAN 18YRS B-FORM IS REQUIRED.
|"<<endl; cout<<" |3) ALL ORIGNAL EDUCATIONAL DOCUMENTS ARE
REQUIRED.
|"<<endl;

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

cout<<" |________________________________________________________________________
|"<<endl;
cout<<" _________________________________________________"<<endl; cout<<"
| |"<<endl;
cout<<" | *****FEE CHALAN***** |"<<endl; cout<<"
|_________________________________________________|"<<endl; cout<<"
| |"<<endl;
cout<<" | Test fee | 1500-RS | Date | 12-07-2019 |"<<endl; cout<<" |
Test fee | 2500-RS | Date | 22-07-2019 |"<<endl; cout<<" | Test fee |
3500-RS | Date | 30-07-2019 |"<<endl; cout<<"
|_________________________________________________|"<<endl;
cout<<" | NAME: "<<nm<<" "<<endl; cout<<"
| FATHER NAME: "<<fnm<<" "<<endl;
cout<<" | CNIC of Candidate: "<<cnic_num<<" "<<endl;
cout<<" |_________________________________________________|"<<endl;

};

int main()
{
cout<<" _____________________________________________________"<<endl; cout<<"
| |"<<endl;
cout<<" | *****OOP FINAL PROJECT***** |"<<endl;
cout<<" | *****MUHAMMAD TALHA***** |"<<endl;
cout<<" | *****FA19-BEE-147***** |"<<endl;
cout<<" |_____________________________________________________|"<<endl;

jobs select_department;
university select_university; int
adv_type();
{ int
a;
cout<<" _____________________________________________________"<<endl; cout<<"
| |"<<endl;
cout<<" |What kind of add you are searching for?????? |"<<endl;
cout<<" |Following are the choices. |"<<endl; cout<<"
|Press 1 for jobs advertisements. |"<<endl; cout<<" |Press
2 for universities admissions. |"<<endl; cout<<" |Press 3 to
exit. |"<<endl;
cout<<" |press your choice: |"<<endl;
cout<<" |_____________________________________________________|"<<endl;
cin>>a; switch(a) { case(1):

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

{ cout<<" __________________________________________________________________"<<endl;
cout<<" | |"<<endl;
cout<<" | *****You selected the jobs advertisements***** |"<<endl;
cout<<" |__________________________________________________________________|"<<endl;

select_department.select_department();
break; } case(2):
{ cout<<"
__________________________________________________________________________"<<endl;
cout<<" | |"<<endl;
cout<<" | *****You selected the Universities admission advertisements***** |"<<endl; cout<<"
|__________________________________________________________________________|"<<endl;

select_university.select_university();
break; } case(3):
{ exit(0); }
}

} roll_no_slip slip;
slip.name1();
slip.name2();
slip.cnic();
slip.city_name();
slip.matric_marks();
slip.fsc_marks();
slip.candidate_age();
slip.slip();
return 0;
}
Result:

Downloaded by Souban Javed (soubanjaved21@gmail.com)


lOMoARcPSD|6229134

*********************************************************

Downloaded by Souban Javed (soubanjaved21@gmail.com)

You might also like