Oop Microproject
Oop Microproject
Submitted by
Place: Akurdi
(Prof. A. S. Kondekar )
Principal
ACKNOWLEDGEMENT
4. Action Plan
Sr.No. Name of Responsible
Team Members
Details of activity Planned
Start Date
About project -
Admission Management application is based on
the concept of managing the student’s admission
record.
In this project in program we have used the concept
of Hierarchical Inheritance.
Hierarchical Inheritance :-
When two or more classes are derived from a single
base class, then Inheritance is called the
hierarchical inheritance.
In the program Student is a base class, from which
the three classes viz. Computer, Mechanical, Civil
Enginerring have been derived.
Using Hierarchical Inheritance we had display
Student Admission details which is successfully
compiled and run to produce desired output .
STUDENT
INPUT-
9.21 Aha
C++ Comp ed
Output:-
Code
#include<iostream>
using namespace std;
const int len = 20 ;
class student // Base class
{
public:
char F_name[100];
char gender[20];
char address[100];
int age;
char document_required[100];
int enrollment_no ;
void Enter_data(void)
{
cout << "\n\t Enter the full name: " ;
cin >> F_name ;
cout << "\t Enter the gender of student: ";
cin >>gender ;
cout<<"\t Enter student address:";
cin>>address;
cout << "\t Enter the age: " ;
cin >> age ;
cout<<"\t Enter document required For admissions";
cin>>document_required;
cout << "\t Enter the enrollment_no: " ;
cin >> enrollment_no ;
}
void Display_data(void)
{
cout << "\n\t Full Name = " << F_name ;
cout << "\n\t Gender = " << gender ;
cout<<"\n\t Address="<<address;
cout << "\n\t Age = " << age ;
cout<<"\n\t Document
required="<<document_required;
cout << "\n\t Enrollment Number = " << enrollment_no
;
}
};
int main()
{
Computer_Engineering c ;
cout << "\n Entering details of student who wantto
take admission in Computer Engineering\n" ;
c.Enter_data( );
cout << "\n Displaying the details of student who want
to take ad\ission in Computer Engineering \n" ;
c.Display_data( );
Mechanical_Engineering m ;
cout << "\n\n Entering details of student who wantto
take Admission in Mechanical Engineering \n";
m.Enter_data( );
cout << "\n Displaying the details of student who want
to take Admission in Mechanical Engineering \n";
m.Display_data( );
Civil_Engineering s ;
cout << "\n\n Entering details of student who wantto
take Admission in Civil Engineering \n" ;
s.Enter_data( );
cout << "\n Displaying the details of student who want
to take Admission in Civil Engineering\n";
s.Display_data( );
return 0;
}
Output –
Entering details of student who want to
take admission in Computer Engineering