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 following assumptions:
- All the seats are reserved seats.
- There are only two classes for which users can book tickets
- Sleeper
- A/C
- The number of seats in all the trains is fixed for each class
- Sleeper – 12 seats
- A/C – 8 seats
- Passengers cannot book tickets before 5 days of travel date.
- Passengers can book tickets from 5 days before the scheduled train departure time and up to 3 hours before the scheduled train departure.
- All the trains will not stop in between stations.
- Trains start from source station and ends at destination station.
- All the transactions for booking tickets / refunding the canceled tickets are through online electronic clearance.
- Maximum waiting list per each class is 4 seats.
- Auto upgrade waiting list to confirmed ticket.
- A user can book only 2 seats at a time.
- User can book tickets for others (Family Members, Friends etc) using personal log-in account.
- Each train will run on all the days of the week.
Module 1
You have already developed the project in C programming language. You would have a good idea regarding the Railway Reservation System. In this module, let’s design the project according to our previous understanding of the project.
While designing the project, make sure that you imbibe all the important aspects of object oriented concepts that you have learnt in the last 1 week. You also need to take into account the aspect of reusability of your code.
Steps to be done in this module:
1. Identify the classes that you would require in this project.
2. Identify member variables and functions of each class that you have identified in the previous step.
3. Identify where the various object oriented concepts could be used in the project – inheritance, polymorphism, virtual functions, friend functions, etc
4. Draw these classes in a word document.
The diagram shows all the member variables and functions of each class identified for a School scenario. It also shows that Student and Teacher classes are inherited from Person class.
Note: Draw the classes that you have identified for the project in a similar way as shown in the above example.
5. Identify the various details that you would require to store in files. (You need to write objects into files instead of single data). Document the folder/file structure that would make your programming efficient
6. Identify what kind of data could lead to exceptions in your project
7. Show the documentation to your mentor and take their consent
Comments
Post a Comment