Project Description
Objective: Develop a user-friendly C++ application for railway ticket reservation, offering:
- Seamless Booking: Passengers can search for trains between stations, view schedules, and book tickets with just a few clicks.
- Enhanced Search: Find the perfect train by filtering options based on arrival/departure times, coach type (sleeper, 3-tier, 2-tier), and even seat preferences (upper berth, middle berth, etc.).
- Secure Transactions: Secure user login and two-factor authentication with email/contact number verification ensure safe and reliable booking.
- Flexible Payment: Choose your preferred payment method for a convenient and hassle-free experience.
Existing System Limitations:
- Restricted Information: Passengers only had access to train names, not schedules or detailed coach information.
- Limited Seat Selection: Passengers could only choose seat numbers, not specific types or locations (e.g., upper berth).
- Simple Payment Verification: Lack of two-factor authentication increased the risk of fraud and unauthorized transactions.
Proposed System Improvements:
- Comprehensive Information: Passengers can access train schedules, routes, fare details, and seat availability for various coach types and locations.
- Granular Seat Selection: Choose your preferred seat type (upper, middle, lower) and location within the coach for a comfortable journey.
- Enhanced Security: Two-factor authentication with email/contact number verification protects user accounts and prevents unauthorized access.
- Admin Control: Admins have read/write/modify access to passenger data and system settings, ensuring efficient management.
Railway Ticket Reservation System code.CPP
1. Library Inclusions and Global Variables
#include <...> // Various standard libraries for I/O, file handling, etc.
char f[10] = "f";
char s[10] = "s";
int addr, ad, flag, f1, d, m, i, amt;
float tamt;
Thought Process: Libraries are included for necessary functionalities. Global variables are declared for use across the program. This is standard in setting up the environment for a C++ application.