Sei sulla pagina 1di 18

DEEPAK-A22-10903055

TERM PAPER ON BUS RESERVATION SYSTEM

Submitted to: Sir Rajwinder Singh CSE (LECT)

Submitted by: Deepak Kumar Jena Roll No: RC4901A22 Regd. No: 10803188

Course: B.Tech (ME)

C4901

DEEPAK-A22-10903055

ACKNOWLEDGEMENT
It is not until you undertake the project like this one that you realize how massive the effort it really is, or how much you must rely upon the selfless efforts and goodwill of others. There are many who helped us with this project, and we want to thank them all from the core of our hearts. We owe special words of thanks to our teacher Sir Rajwinder Singh for their vision, thoughtful counseling and encouragement at every step of the project. We are also thankful to the teachers of the Department for giving us the best of knowledge and guidance throughout the project. And last but not the least, we find no words to acknowledge the financial assistance & moral support rendered by our parents in making the effort a success. All this has become reality because of their blessings and above all by the grace of god.
Deepak Kr. Jena Roll No: RC4901A22 Reg. No: 10903055

C4901

DEEPAK-A22-10903055

TABLE OF CONTENTS
1. 2. Introduction Proposed system i. Description ii. System requirements 3. Requirement Analysis 4. System Design 5. Source code 6. Testing 7. Future scope of project

C4901

DEEPAK-A22-10903055

INTRODUCTION:Bus services have made the process of seat reservation much simpler than ever before. Throughout the length and breadth of the country, there are numerous counters where one can easily book the tickets. The metropolitan cities like Mumbai, Chennai and Delhi and various other cities have many counters at different centers for the convenience of users. Most of the manual reservation centers have been changed into computerized reservation centers, which provide ticket booking facilities from anywhere. These reservation centers work between 08:00 hrs IST to 20:00 hrs IST, apart from Sundays. On Sundays, they operate till 14:00 hrs IST. Most of the Indian Roadways are much in demand and remain crowded most of the times. Due to this, people are recommended to get their bookings done in advance. They have provided the facility of advanced reservation, which is made open 20 days before the actual date of journey. Sometimes, the public can face long queues and obtain the ticket. Advance Reservation is also made for people, who want to set out on sight-seeing trip or pilgrimage trips. The confirmed reservations guarantee that one is formally allowed to enter and travel by the bus in the allotted seat numbers. Some authorized travel agencies are allowable to issue tickets. Advent of computerization system has also made it possible for passengers to book their ticket online. One can also check whether the fares have been changed or not and can look for the latest changes made.

Things to Remember for Seat Reservation or Ticket Booking:


C4901

DEEPAK-A22-10903055

1. Reservations can be done through any authorized Reservation counter. 2. One can also opt for online booking from anywhere. In case, the ticket for the berth number is "confirmed". 3. Reservations can be cancelled. One would receive a refund of 10% of what has been paid. 4. Reservations made for sight-seeing trips or pilgrimages are permissible in all classes with a condition that the journey starts and ends at the same destinations.

C4901

DEEPAK-A22-10903055 PROPOSED SYSTEM

The following documentation is a project the BUS RESERVATION SYSTEM. It is a detailed summary of all the drawbacks of the old system and how the new proposed system overcomes these shortcomings. The new system takes into account the various factors while designing a new system. It keeps into the account the Economical bandwidth available for the new system. The foremost thing that is taken care of is the Need and Requirements of the User.

DESCRIPTION
Before developing software we keep following things in mind that we can develop powerful and quality software PROBLEM STATEMENT o Problem statement was to design a module: o Which is user friendly o Which will restrict the user from accessing other users data? o Which will help user in viewing his data and privileges? o Which will help the administrator to handle all the changes?

FUNCTIONS TO BE PROVIDED:
The system will be user friendly and completely menu driven so that the users shall have no problem in using all options. o The system will be efficient and fast in response. o The system will be customized according to needs. **Write according to you project o (View o Add o Delete o Modify)

SYSTEM REQUIRMENTS
Operating system: MS Windows XP or Windows Vista Language: C Language Processor: Pentium IV Processor RAM: 512 MB; Hard disk: 5 GB
C4901

DEEPAK-A22-10903055

REQUIREMENT ANALYSIS
This process is adopted when management of the system development, Personnel decide that the particular system needs improvement. The system development life cycle is the set of activities, carried out by the analyst, designers and users to develop and implement a system. The systems that are present in the nature follow common life cycle pattern. For example consider the raining system. Initially the rain falls into the river, river flows into sea, the sea water evaporates to form vapors, the vapors form clouds which again bring rain. Similarly consider a man made system initially a system is analyzed, designed and made operational by the efforts of system analysis. After successful operation or a number of users, the system becomes less and less effective by change in the environment. So these changes have to be incorporated in to the system by minor modifications. So the general activities from the life cycle of the system are given below: Select ion and identification of the system to be studied Preliminary study Defining the system Design and development of the system Implementation of the system

C4901

DEEPAK-A22-10903055

SYSTEM DESIGN
Then we began with the design phase of the system. System design is a solution, a HOW TO approach to the creation of a new system. It translates system requirements into ways by which they can be made operational. It is a translational from a user oriented document to a document oriented programmers. For that, it provides the understanding and procedural details necessary for the implementation. Here we use Flowchart to supplement the working of the new system. The system thus made should be reliable, durable and above all should have least possible maintenance costs. It should overcome all the drawbacks of the Old existing system and most important of all meet the user requirements.
START

WELCOME TO BUS RESERVATION SYSTEM


Enter your

choice ? ??

VIEW ALL BUS

RESERVE A SEAT

CANCEL A SEAT

EXIT

Do you want to continue? NO

STOP

C4901

DEEPAK-A22-10903055

SOURCE CODE
#include <stdio.h> #include <conio.h> #include<string.h> struct air { char name[20]; int phno; char address[50]; int ticketno; }s; void view(); void reserve(); void cancel(); void form(); void menu() { int ch; clrscr(); printf("\tBUS RESERVATION SYSTEM"); printf("\n\n1.VIEW ALL BUS"); printf("\n\n2.RESERVE A TICKET"); printf("\n\n3.CANCEL A TICKET"); printf("\n\n4.EXIT "); printf("\nEnter your choice(1,2,3or4)"); scanf("%d",&ch); switch(ch) { case 1: view(); getch(); menu(); break; case 2: reserve(); getch(); menu(); break; case 3: cancel(); getch(); menu(); break;
C4901

DEEPAK-A22-10903055

10

case 4:exit(); break; default:printf("\nenter a valid choice"); }} void view() { clrscr(); printf("CODE ROUTE TIMINGS printf("\n1021 Jalandhar to Ludhiana 06:30 printf("\n1024 Jalandhar to Chandigarh 12:00 printf("\n1098 Jalandhar to Amritsar 14:30 printf("\n1987 Jalandhar to Patiala 18:00 printf("\n1576 Jalandhar to Mohali 20:00 getch(); }

"); "); "); "); "); ");

void form() { printf("\nEnter the name"); scanf("%s",&s.name); printf("\nEnter the phone number"); scanf("%d",&s.phno); printf("\n Enter the address"); scanf("%s",&s.address); printf("\n\Enter the seat no"); scanf("%d",&s.ticketno); printf("Your ticket is confirmed"); getch(); } void reserve() { int code,total_seats=100,reserved=0,class; clrscr(); if(reserved<total_seats) { reserved++; printf("Enter the train code"); scanf("%d",&code); if(code==1021||code==1024||code==1098||code==1987||code==1576) {
C4901

DEEPAK-A22-10903055

11

clrscr(); printf("\n 1. Video coach (fare Rs 350)"); printf("\n 2.Non-video coach(fare Rs 300)"); scanf("%d",&coach); if(class==1) { clrscr(); printf("Your fare is Rs.350"); form(); menu(); } else if(coach==2) {clrscr(); printf("\nYour fare is Rs.300"); form(); menu(); } else { clrscr(); printf("Enter valid choice(1or 2)"); menu(); } getch(); } else printf("WARNING!YOU HAVE ENTERED THE WRONG CODE"); } } void cancel() {int ticket; char ch; clrscr(); printf("enter the ticket no"); scanf("%d",&ticket); if(ticket==s.ticketno) printf("your ticket is cancelled"); getch();

{
C4901

DEEPAK-A22-10903055

12

} else {printf("ticket no is invalid"); getch(); menu(); }} void main() { clrscr(); printf("\n WELCOME TO BUS RESERVATION SYSTEM"); getch(); menu(); } Ending of your project

C4901

DEEPAK-A22-10903055

13

TESTING
Testing is the major control measure used during software development. Its basic function is to detect errors in the software. During requirement analysis and design, the output is a document that is usually textual and no executable. After the coding phase, computer programs are available that can be executed for testing purpose. This implies that testing not only, has to uncover errors introduced during coding, but also errors introduced during previous phase. Thus the goal of testing is to uncover the requirements, design and coding errors in the programs. So after testing the outputs of my project are as follows: WELCOME TO THE BUS RESERVATION SYSTEM BUS RESERVATION SYSTEM 1. VIEW ALL BUSES 2. RESERVE A TICKET 3. CANCEL A TICKET 4. EXIT ENTER YOUR CHOICE (1,2,3 OR 4)-1

C4901

DEEPAK-A22-10903055

14

CODE TIMINGS 1021 06:30 1024 12:00 1098 14:30 1987 18:00 1576 20:00

ROUTE JALANDHAR TO LUDHIANA JALANDHAR TO CHANDIGARH JALANDHAR TO AMRITSAR JALANDHAR TO PATIALA JALANDHAR TO MOHALI

C4901

DEEPAK-A22-10903055

15

BUS RESERVATION SYSTEM 1. VIEW ALL BUSES 2. RESERVE A TICKET 3. CANCEL A TICKET 4. EXIT ENTER YOUR CHOICE (1,2,3 OR 4)-2 ENTER THE CODE 1987 1. VIDEO COACH (FARE RS 350) 2. NON-VIDEO COACH (FARE RS 300)-1 YOUR FARE IS RS.350. ENTER THE NAME ENTER THE PHONE NUMBER ENTER THE ADDRESS ENTER THE SEAT NO. YOUR TICKET IS CONFIRMED. DEEPAK 9855349552 L.P.U. 23

C4901

DEEPAK-A22-10903055

16

BUS RESERVATION SYSTEM 1. VIEW ALL BUSES 2. RESERVE A TICKET 3. CANCEL A TICKET 4. EXIT ENTER YOUR CHOICE (1,2,3 OR 4)-3 ENTER THE TICKET NO - 23 YOUR TICKET IS CANCELLED.

C4901

DEEPAK-A22-10903055

17

BUS RESERVATION SYSTEM 1. VIEW ALL BUSES 2. RESERVE A TICKET 3. CANCEL A TICKET 4. EXIT ENTER YOUR CHOICE (1,2,3 OR 4) - 4

FUTURE SCOPE OF THE PROJECT


C4901

DEEPAK-A22-10903055

18

Our project will be able to implement in future after making some changes and modifications as we make our project at a very low level. So the modifications that can be done in our project are: ** write down the modifications that can be made in your project With the help of this project we are not able to calculate number of reserved and unreserved seats so we have to make a project to calculate numbers of seats.

C4901

Potrebbero piacerti anche