Oop Microproject Report
Oop Microproject Report
A
Project Report
On
A Railway Reservation System
Amrutvahini Polytechnic ,Sangamner
Department of Information Technology
In partial fulfilment of the requirement for the diploma in
Information Technology
Submitted By
CERTIFICATE
This is to that the project report entitled,
ACKNOAWLEDGEMENT
INDEX
Sr.No Contents
1. Rational
2. Aims and Benefits
3. Course Outcomes
4. Introduction
5. Objective
6. Topic Used
7. Project Code
8. Project Output
9. Advantages
10. Conclusion
5
4.0 INTRODUCTION:-
The railway reservation system facilitates the passengers to enquiry
about the trains available on the basis of source and destination,
booking and cancellation of tickets, enquiry about the status of the
booked ticket, etc. The aim of case study is to design and develop a
data base maintaining records of different trains, train status and
passengers. This project contains introduction to the railways
reservation system. It is the computerized system of reserving the
seats of train seats in advance. It is mainly used for a long route.
6
Online reservation has made the process for the reservation of seats
very much easier than ever before.
In our country India, there are number of counters for the reservation
of the seats and one can easily make reservations and get tickets.
Railway reservation system, has described above, can lead to error
free, secure, reliable and fast management system. It can assist the
user to concentrate on their other activities rather to concentrate on
the record keeping. Thus it will help organization its better utilization
of resources. Administrator of the project, with the help of a
password, can enter new train record, display all train records,
modify train records and delete train records. The record of train
includes its number, name, source, destination, and days on which it
is available, whereas record of train status includes dates for which
tickets can be booked, total number of seats available, and number of
seats already booked.
5.0 OBJECTIVE
point of control
7
1.Multiple Inheritance:
Multiple Inheritance is a feature of C++ where a class can
inherit from more than one class. i.e one subclass is inherited from
more than one base class.
Syntax:
class A
Definition of Class A;
};
class B
Definition of class B;
};
Defintion of class C;
};
2.Structure:
Syntax:
struct Structure_name
datatype var1;
datatype var2;
datatype varN;
}tag[size];
int age2;
char gender2;
int seatno2;
char passenger[20];
}p[max];
public:
void input();
void output();
};
void pass::input()
{
cout << "\nEnter passenger details: ";
cout << "\nEnter number of passengers=";
cin >> noofpass;
cout << "\nEnter passenger name=";
cin >> name;
{
cout <<"\n\t\t\tPassenger name="<<p[i].passenger;
cout << "\n\t\t\tGender=" << p[i].gender2 ;
cout << "\n\t\t\tAge=" << p[i].age2 ;
cout << "\n\t\t\tSeat no= "<< p[i].seatno2 ;
}
}
}
class train
{
private:
char trainname[20];
int trainno;
char section_code[5];
char boogieno[5];
char date[10];
char from[10];
char to[10];
public:
void in();
void out();
};
void train::in()
{
cout << "\nEnter train name=";
cin >> trainname;
cout << "\nenter train no=";
cin >> trainno;
cout << "\nEnter section=";
cin >> section_code;
cout << "\nEnter boogie no=";
cin >> boogieno;
cout << "\nEnter date=";
cin >> date;
cout <<" \nEnter from=";
cin >> from;
cout <<" \nEnter to=";
cin >> to;
}
void train::out()
{
cout << "\n\t\t\tTrain name=" << trainname;
cout << "\n\t\t\tTrain no=" << trainno ;
cout << "\n\t\t\tSection=" << section_code;
cout << "\n\t\t\tBoogie no=" << boogieno;
cout << "\n\t\t\tDate=" << date ;
cout << "\n\t\t\tFrom=" << from ;
cout << "\n\t\t\tTo=" << to ;
}
class ticket:public train,public pass
{
11
private:
int rate;
int total;
public:
void getdetails();
void showdetails();
};
void ticket::getdetails()
{
cout << "\nEnter rate=";
cin >> rate;
cout << "\n";
total = rate*noofpass;
}
void ticket::showdetails()
{
cout << "\n\t\t\tRate="<< rate ;
cout << "\n\t\t\tTotal rate=" << total;
cout << "\n";
}
void main()
{
int count;
int i;
clrscr();
cout << "Enter the count of passengers : ";
cin >> count;
if (count > 0)
{
ticket t[max];
for (i = 0; i < count; i++)
{
t[i].input();
t[i].in();
t[i].getdetails();
}
cout << "\n Entered details: " << endl;
for (i = 0; i < count; i++)
{
t[i].output();
t[i].out();
t[i].showdetails();
}
}
else
{
cout << "Please enter a valid number.";
}
getch();
}
12
8.0 ADVANTAGES:-
1. No more queues.
2. Safe Payment
3. Easy access to the ticket.
4. Preferential treatment
5. Low cost selling through accommodation services.
13
9.0 REFERENCE:-
1. Object Oriented Programming Using C++: Technical
Publication
2. Object Oriented Programming using C++: Techmax
Publication
3. Object Oriented Programming With C ++: Tata Mc Graw Hill
4. Education private Limited Publication
10.0 CONCLUSION:-
This program can be used to accept and display the essential details
related to railway reservation ticket. Implementation of Railway
reservation system project helps to store all the kinds of records
related tickets, provide coordination and passenger communication,
improve day-to-day operations, arrange the supply chain, manage
preferential treatments according to age and market reservation
services.
1. Critical Thinking
14
2. Leadership
5. Technical Skill
Signature of teacher:-
Prof. Shinde P.B