Skip to main content

Posts

Mini Project - Railway Reservation System

Module 1 Overview Railway Reservation System-(RRS) Project is developed to help students learn and realize capability of C programming language, and appreciate procedural approach of developing a system. RRS helps users reserve/cancel berths, search for trains, check reservation/cancellation history, etc... On the other hand it helps the railway reservation officers to prepare reservation charts, organize train schedules, etc... RRS provides two types of log-ins one is the User log-in for railway customers and the other one is Admin log-in for railway reservation officers. Project is divided into 10 modules of four hours duration each. All the modules will give exactly what to develop in the 4 hour time frame. Since most of the modules are inter-related it is important to keep track of the previous code. After submission it is allowed to make changes in the previous code to suit / integrate well to the system. Before we start the project, we need to make the followin
Recent posts

RRS - Module 6

Integrate all the modules properly so that the Railway Reservation System works efficiently. Run and test all the modules properly. Take care of exceptions if any in the system.

RRS - Module 5

Before we start with this module, verify if you have completed with the previous module. Only after you complete with it, should you start with this module. In this module we would enable the user to cancel his reserved tickets. A user can cancel reserved ticket and the fare is refunded according to the rules given. Cancellation Rules: TICKETS on which Reservations has been made. If a ticket on which reservation of a seat or berth has been made, is presented for cancellation, refund of fare shall be made after deducting cancellation charge from the fare as follows :- If a ticket is presented for cancellation more than 12 hours before the scheduled departure of the train cancellation charge shall be deducted at the flat rate of Rs. 50/- for A.C Class and Rs. 20/- for Sleeper class. If the ticket is presented for cancellation within 12 hours and up to 3 hours before the scheduled departure of the train, cancellation charges shall be 10% of the fare paid. (Rounded off to neares

RRS - Module 4

In this module let us create Ticket objects and allow the user to book his tickets Users cannot book tickets for unscheduled trains. The user needs to check the schedule and the availability of tickets for a train and then only book tickets. Steps to be followed to create Ticket objects: Create a base class called Ticket, by identifying the common attributes of a Ticket Create 2 derived classes called, AC_Ticket and SC_Ticket, for the above given base class (AC_Ticket is for AC class and SC_Ticket is for sleeper class) Steps to be followed for Reservation part in this module are: Login as User Check Schedule of the trains available Check the availability of berths If available berths are there, allow the user to book tickets – AC or Sleeper A User can book maximum of 2 tickets at a time. There is a single pnr number given. Save the tickets in the folder that contains that particular train and the required day. Display the ticket to the user in a neat format

RRS - Module 3

In this module, let us create Train objects and allow Admin to schedule the trains for a week. Steps to be followed in this module: Create a class called Train by identifying its member variables Write the code for the Interface Menu. Login as Admin and do the following Add new trains Save the objects in file Schedule the trains for that week. (Note: Check the assumptions we made at the beginning of this project regarding scheduling) While scheduling, the folder structure to be created is RRS\TrainData\TrainNo The entire schedule could also be written into a file Display the schedule Logout from Admin Interface and log into the User Interface Display the schedule based on train Display the schedule based on Source and Destination Display the schedule based on Date Display all the trains scheduled Note: Make sure that all the display functions print the details in a neat tabular format