0% found this document useful (0 votes)
204 views

Oop Microproject Report

This document is a project report for a Railway Reservation System developed using C++. It includes the introduction, objectives, topics used and program code for the system. The system uses classes like 'pass' and 'train' to store passenger and train details. It allows input and output of passenger information like name, gender, age, seat number for multiple passengers. It also handles input and output of train details such as train name, number, section code and route. The report provides an overview of the reservation system developed and coded in C++ to book and view train tickets.

Uploaded by

Dhiraj
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
204 views

Oop Microproject Report

This document is a project report for a Railway Reservation System developed using C++. It includes the introduction, objectives, topics used and program code for the system. The system uses classes like 'pass' and 'train' to store passenger and train details. It allows input and output of passenger information like name, gender, age, seat number for multiple passengers. It also handles input and output of train details such as train name, number, section code and route. The report provides an overview of the reservation system developed and coded in C++ to book and view train tickets.

Uploaded by

Dhiraj
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

1

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

3. Deshmukh Sahil Pratap (2200800302)


6. Ambre Pranav Shivaji (2200800306)
55. Kachare Shreyas Devidas (2200800810)
57. Karpe Aryan Amit (2200800812)
Under The Guidance Of
Prof. Shinde P.B.

Amrutvahini Polytechnic, Sangamner


(Approved by AICTE, NEW DELHI and affiliated To MSBTE)
2023-2024
2

Amrutvahini Polytechnic ,Sangamner


Department of Information Technology

CERTIFICATE
This is to that the project report entitled,

A Railway Reservation System


It is benefited work carrier out by,

3. Deshmukh Sahil Pratap (2200800302)


6. Ambre Pranav Shivaji (2200800306)
55. Kachare Shreyas Devidas (2200800810)
57. Karpe Aryan Amit (2200800812)

In partial fulfilment of the requirement for the diploma in


Information Technology
During the academic year 2023-2024

Prof.Shinde P.B Prof.Chaudhari N.K


(Project Guide) (H.O.D) IT
3

ACKNOAWLEDGEMENT

We have taken lots of efforts in this project. However, it


would have been possible without the kind support and help of many
individuals and organization. We would to kind to extend our sincere
thanks to all of them.
First and foremost we want to thanks Prof. Chaudhari N.K
H.O.D (Information Technology) Amrutvahini Polytechnic,
Sangamner for giving us an opportunity to work on this project.
We are highly indebted to Prof. Shinde P.B. (Project Guide)
for his guidance and constant supervision as well as for providing
necessary information regarding the project and also for his support in
the project.
We would like to express our gratitude towards our parents and
members of Information Technology department for their kind Co-
operation and encouragement which helps us in completion of this micro
project.
Our thanks and appreciations also go to our colleagues in
developing the micro-project and people who have willingly helped us
with their abilities.

3. Deshmukh Sahil Pratap (2200800302)


6. Ambre Pranav Shivaji (2200800306)
55. Kachare Shreyas Devidas (2200800810)
57. Karpe Aryan Amit (2200800812)
4

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

MICRO PROJECT REPORT


1.0 Rational: To generate a program for railway reservation system
using C++. The essential details are selected and taken as
attributes for the same.

2.0 AIMS / BENEFITS THE MICROPROJECT:-


Aim: A program on Railway Reservation System.
Benefits:
a. Develop a C++ program to accept and display records of
Railway Reservation Ticket.
b. This project is beneficial as it can store and maintain the
data’s related to railway reservation tickets.
c. To develop a program to demonstrate a Railway
reservation ticket system using C++.
3.0 COURSE OUTCOMES:-
CI301.1 Convert2 C Programs into C++ programs to solve problems.
CI301.2 Implement3 C++ Programs using classes and objects.
CI301.3 Implement3 concept of inheritance in C++ program.
CI301.4 Use3 Polymorphism in C++ program.
CI301.5 Develop3 C++ Programs to perform file operations.

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

Main objectives of a Railway Reservation System are:

 Design a system for reservation of passengers.

 Reduce Railway station costs.

 Provide MIS (Management Information System) report on


demand to management for better decision making.

 Better co-ordination among the different

departments. Provide top management a single

point of control
7

6.0 TOPIC USED:

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;

};

class C:public A, public B

Defintion of class C;

};

2.Structure:

Structure is a collection of different datatype and different data


elements.
8

Syntax:

struct Structure_name

datatype var1;

datatype var2;

datatype varN;

}tag[size];

7.0 PROGRAM CODE:-


#include <iostream.h>
#include <conio.h>
#define max 100
int noofpass,i;
class pass
{
private:
char name[20];
char gender;
int age;
int seatno;
struct pass1
{
9

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 << "\nEnter gender (m/f)=";


cin >> gender;
cout << "\nEnter age=";
cin>>age;
cout << "\nEnter seat no=";
cin >> seatno;
if(noofpass>1)
{
for(i=0;i<noofpass;i++)
{
cout<<"\nEnter passenger name=";
cin>>p[i].passenger;
cout<<"\nEnter gender(m/f)=";
cin>>p[i].gender2;
cout<<"\nEnter age=";
cin>>p[i].age2;
cout<<"\nEnter seat no=";
cin>>p[i].seatno2;
}
}
}
void pass::output()
{
cout << "\n\n\n_________________________Passengers
details_________________________";
cout << "\n\t\t\tNo of passengers=" << noofpass;
cout << "\n\t\t\tPassenger name=" << name ;
cout << "\n\t\t\tGender=" << gender ;
cout << "\n\t\t\tAge=" << age ;
cout << "\n\t\t\tSeat no=" << seatno ;
if(noofpass>1)
{
for(i=0;i<noofpass;i++)
10

{
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.

11.0 ACTUAL RESOURCES USED:-

Sr. Instrument/Object Specifications Remark


No
01 Computer system Intel i5 12th Gen 8GB System
RAM 512GB SSD
02 Software TUTBO C++ or G+ Compiler
+
03 Any other resources -
use

12.0 SKILL DEVELOPED/LEARNING OUTCOMES OF THE


MICROPROJECT:-

1. Critical Thinking
14

2. Leadership

3. Active listening Skill

4. Scheduling and Time Management

5. Technical Skill

Signature of teacher:-
Prof. Shinde P.B

You might also like