OOP Subject Project Based Learning Github: https://github.com/sidhant-khamankar/Railway-Reservation-System
Topic: Railway Reservation System
Description: This program will allow admin to generate user ids ,set Train info and see all Reservations, users and cancellations. User can Reserve, Enquire and Cancel Ticket. Ticket fare will be calculated based upon concession category. Every data will be written to files in binary form using file Handling. Updation of Seats after reservation and cancellation takes place as well. PNR is generated randomly using random function.
Main Admin and User: https://app.code2flow.com/cQIVUxM2y1Vo
Admin User Management: https://app.code2flow.com/dOELf08yoBxq
User Reserve and Enquire: https://app.code2flow.com/RAF4yK3bkvCR
User Cancel: https://app.code2flow.com/argHhQHQ15fH
Contains Train Details like name, number, class type and their fares, date, boarding and destination stations. It has function for inputting these details and printing them.
Contains Passenger details like name, age and the corresponding booked train details along with PNR number, concession, reserved seats. It has function for inputting these details and printing them.
Similar to Reserve class.
Contains id and password of user. It has function for inputting these details and printing them.
It has subfunctions to Add Train, Display all trains and following functions
It can be used to add new Users and display existing users with their ID and password.
It reads records from Reservation file and display them.
It reads records from Cancelled file and display them.
A particular user can login using his/her credentials. It has following subfunctions
It takes ticket details from user as input. Calculates concession and updates seats in Train file and then generates PNR Number using random number generator.
It takes PNR number as input and finds the reserved ticket and deletes it from Reservation file and Updates Cancellation file.
Display all Trains Details from Train file.
Binary file. Contains User Records.
Binary file. Contains Train Records.
Binary file. Contains Reservation Records.
Binary file. Contains Cancellation Records.
Binary file. Holds Reservation Records except Cancellation Records.
Admin Adds Trains
Admin display trains
Admin adds and displays users
User Reserves
User Enquires after Reservation
Admin displays all reservations
User cancels reservation
Admin displays all cancellations
We can use a similar system for bus, airline reservations, theatre ticket booking and Library Management i.e It will be used wherever there is need of booking or reserving.
We learnt to implement Object Oriented Programming Concepts like Encapsulation and Abstraction and File Handling Concept in this project.