Skip to main content

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.
module4.JPG
Steps to be followed to create Ticket objects:
  1. Create a base class called Ticket, by identifying the common attributes of a Ticket
  2. 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:
  1. Login as User
  2. Check Schedule of the trains available
  3. Check the availability of berths
  4. If available berths are there, allow the user to book tickets – AC or Sleeper
  5. A User can book maximum of 2 tickets at a time. There is a single pnr number given.
  6. Save the tickets in the folder that contains that particular train and the required day.
  7. Display the ticket to the user in a neat format

Comments

Popular posts from this blog

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

Inheritance

Week 1 - M5 : Inheritance Learning Objectives At the end of this module, you will be able to Understand the implementation of inheritance in C++ Override the base class members Access overridden base class members using the scope resolution operator Understand the concept of base class initialization Introduction Inheritance The philosophy behind inheritance is to portray things as they exist in the real world. As inheritance is found in real world, it is important feature of OO programming. Inheritance has many advantages, the most important of them being the resuability of code. Once a class is defined and debugged, it can be used to create new subclasses. The reuse of existing class saves time and effort. The Class from which another class is derived is called the base class . The class which inherits the properties of the base class is called the derived class . Each instance of the derived class includes all the members of the base class. Since...