This action might not be possible to undo. Are you sure you want to continue?
MCS 491 Graduation Project I
BUS RESERVATION SYSTEM
200822024 DUYGU KANDEMİR 200822025 HASAN KARPUZÇİ
Instructor: Assist. Prof. Dr. Özgür Tolga PUSATLI
December 2012 Ankara
1) INTRODUCTION 1.1 Purpose of Report 1.2 Objectives 1.3 Limitations 2) SOFTWARE DEVELOPMENT LIFE CYCLE 3) DATABASE DESIGN 3.1) Requirement Analysis 3.2) Conceptual Design 3.3) Logical Design 3.4) Physical Design 4) USERS 4.1) Admin 4.2) Employee 5) SOFTWARE INTERFACES 6) USER INTERFACES 6.1) Login Form 6.2) Admin Form 6.3) Employee Form 6.4) Service Information Form (not including Plate) 6.5) Reservation Form 6.6) Passenger Information Form 6.7) Actual Service Information Form 6.8) Service Information Form (with Plate) 6.9) Driver Information Form 6.10) Service Form (for Modifying) 6.11) Service Form 6.12) Service List Form 6.13) Bus Form 6.14) Driver Form 7) SAMPLE CODES 7.1) Service Adding/Updating Process 7.2) Database Connection Code 8) TESTING 9) FUTURE WORKS 10) CONCLUSION 11) BIBLIOGRAPHY
3 3 3 3 4 4 5 6 7 8 8 8 8 9 10 10 11 12 13 14 15 16 17 18 19 20 20 21 21 22 22 23 23 24 25 26
3 . the limitations of the system. services are only between Ankara – Istanbul and Istanbul-Ankara. customer cannot reserve a ticket. man and woman cannot seat side by side if they do not know each other. Thirdly.1) Purpose of Report The purpose of this report is to explain detailed description of Bus Reservation System. It becomes very difficult to keep bus services records and customer information. Firstly. It will explain the aim of the project. 1. destination time. customer wants to know bus services with their time and date when he decided to travel. what kind of future works may be done.2) Objectives This project is based on a scenario. then employee will take some personnel information from customer and will reserve a seat that customer selected. This project’s aim is to satisfy a facility to reserve seats. Namely. cancellation of seats and different types of enquiry like seat status.1) INTRODUCTION 1. departure date. 1. Our project will be useful in the Bus Reservation System. In this scenario. what the project will do. 1. If he decides to reserve a ticket. Finally.00 pm and 8. its departure time. Travelling is a large growing business in Turkey and other countries also.3) Limitations This project has some limitations.00 am. each day there are three services for each direction at 9. interfaces of the system. He can do this by a phone call or going to agency. he will meet the employee who work at the agency and get information about services. ticket can be reserved by an employee who works at the agency.00 pm. Secondly. service enquiry and service time. suitable seats etc. In both situations.
Figure 3. Figure 2.2) SOFTWARE DEVELOPMENT LIFE CYCLE Software development processes are shown below.1 Database Life Cycle 4 . Database Life Cycle is shown below. In fact. and these activities continue long after a database has been implemented.1 Software Development Life Cycle 3) DATABASE DESIGN The database design was created by collected all relevant information regarding customer’s request. the Database Life Cycle never ends because database monitoring and modification are part of the life cycle.
The data requirements are used as a source of database design. This stage involves assessing the informational needs of an organization so that a database can be designed to meet those needs.1.3. The functional requirements are used as a source of application software design. 5 .1) Requirement Analysis Requirements Analysis is the first and most important stage in the Database Life Cycle.1 Requirement Analysis Process The requirements and the collection analysis phase produce both data requirements and functional requirements. Figure 3.
attributes related to these entities and relationships. An attribute is a property that describes an entity. Figure 3. distinguishable from other objects. Information is taken from Bus Company and limitations are also specified. An entity is described using a set of attributes. ‘Service’ keeps departure and destination information and in Driver entity there is information for two bus driver. ER diagram consists of entities.3. There are 7 entities and attributes related to these entities. ‘Customer’ entity keeps personal information. we have to create a conceptual diagram for the database. ‘Bus’ entity keeps bus information.2 E-R Diagram of Bus Reservation System 6 . Relationships are used to tie together different entities (two or more entities). We used Entity-Relationship (ER) diagram which is high level conceptual data model and design can be diagrammatically represented and easily understood. Entity is real-world object. You can see this project’s ER diagram below. Relationships can have their own attributes. Service-Bus ServiceCustomer and Service-Driver are designed to be suitable first normal form. and some additional constructs: week entities and aggregation.2) Conceptual Design After collecting and analyzing all requirements.
so that data can be accessed quickly and efficiently. The normalization process resolves any problems associated with the database design.3) Logical Design The tables sketched in the ER diagram are then normalized.3.3 Relational Data Model of Bus Reservation System 7 . Figure 3.
This means finding ways to speed up the performance of the relational database management system (RDBMS).3.1) Admin Make reservation Cancel reservation Enter actual time/date Assign a bus to service Assign drivers to service Add new service Modify service Cancel service Add new bus Add new driver 4.4) Physical Design The Physical Design stage has only one purpose: to maximize database efficiency.2) Employee Make reservation Cancel reservation Enter actual time/date Assign a bus to service Assign drivers to service 8 . Manipulating certain database design elements can speed up the two slowest operations in an RDBMS: retrieving data from and writing data to a database. 4) USERS 4.
4. C# is a simple. It compiles fast and debugging is easy. MySQL is the most popular database server. With superior speed. 9 . reliability and ease of use MySQL became the preferred choice of corporate IT managers as it eliminates major problems associated with downtime. It derives from C and C++. modern.1 Use Case Diagram 5) SOFTWARE INTERFACES C# was used as programming language and MySQL was used as a database server. maintenance administration and support. User can execute arbitrary expressions and call their own functions and properties from within Visual Studio’s debugger. powerful and safe programming language.
user has to enter password correctly to login. user can get some information about aim of this project. If user enters incorrect password. Then.1) Login Form First screen is Login form. he will receive an error message as “invalid password”. Operations that are done with the system were repeatable. 6. User needs to choose his status as Admin or Employee. Finally. The design of the pages allows the users to use this easily. Also.6) USER INTERFACES The format of the all interfaces was designed as possible as easy understanding and user friendly.1 Login form of Bus Reservation System 10 . developers and contact addresses. Pages were connected to each other in a consistent way. user can quit this program. Figure 6. when user clicks the “About us” button.
2 Admin Form of Bus Reservation System 11 . This form shows capabilities of Admin.2) Admin Form If user chooses his status as Admin.6. Admin Form will appear. Figure 6.
12 . This form shows capabilities of Employee.3 Employee Form of Bus Reservation System User can choose one of these buttons.3) Employee Form If user chooses his status as Employee. Employee Form will appear. Figure 6.6. return Login Form or quit program.
13 .4 Service Information Form of Bus Reservation System User can select direction as Ankara-İstanbul or İstanbul-Ankara and select time as 09. 13.00 or 20. “Service Information” Form needs to be filled. Figure 6.6.00.4) Service Information Form (not including Plate) If user (Admin or Employee) clicks “Make/Cancel Reservation” button.00.
After right click to the seat.5) Reservation Form After user fills Service information form. Reservation Form will appear. ‘reserved’ choice will appear and if seat is reserved. user needs to select an available seat. Figure 6. Passenger Information Form needs to be filled.5 Reservation Form of Bus Reservation System In this form. 14 .6.
6) Passenger Information Form Figure 6. color will blue.6 Passenger Information System Form of Bus Reservation After user fills passenger information. seat’s color will change according to gender in the Reservation Form.6. 15 . If user right click to a reserved seat ‘cancel’ choice will appear and if it is canceled then seat will be available to reserve and its color will be again green. If it is reserved for a man. if it is reserved for a woman. color will be pink.
Actual Service Information Form needs to be filled. Figure 6. 16 . user needs to fill Service Information Form. firstly. Then.6.7) Actual Service Information Form If user (admin or employee) clicks “Enter actual time/date” button.7 Actual Service Information Form of Bus Reservation System User has to fill this form according to Date format and Time format appropriately.
8) Service Information Form (with Plate) If user (admin or employee) clicks “Assign bus to service” button or “service cancellation” button.6. Service Information Form needs to be filled.8 Service Information Form of Bus Reservation System For this process. Figure 6. Plate is visible in the form. 17 .
9 Driver Information Form of Bus Reservation System 18 . Figure 6. after Service Information Form is filled. Driver Information Form needs to be filled.9) Driver Information Form If user (admin or employee) clicks “Assign drivers to service” button.6.
10) Service Form (for Modifying) If user (only admin) clicks “Modify service” button. after Service Information Form is filled. Service Form can be changed. Figure 6.6.10 Service Form of Bus Reservation System 19 .
12 Service List Form of Bus Reservation System 20 . Figure 6. Figure 6.11 Service Form of Bus Reservation System 6. Service Form needs to be filled. Service List Form will appear.6.12) Service List Form If user (only admin) clicks “List current services” button.11) Service Form If user (only admin) clicks “Add new service” button.
14 Driver Form of Bus Reservation System 21 . Driver Form needs to be filled.14) Driver Form If user (only admin) clicks “Add new driver” button.6.13 Bus Form of Bus Reservation System 6. Figure 6. Figure 6.13) Bus Form If user (only admin) clicks “Add new bus” button. Bus Form needs to be filled.
7) SAMPLE CODES 7.1) Service Adding/Updating Process 22 .
2012 Tolga PUSATLI Bus reservation system was started. Control buttons were removed and quit button was inserted to all forms and provided to close debugging. everything was working correctly.7. Until closing the application. 23 Outcome . application disappeared but debugging still continued. When Mr.2) Database Connection Code 8) TESTING We tested our project by getting help other people. Pusatlı closed application by clicking control button (close button). References No Date Name Scenario 01 27.12.
References No Date Name Scenario 02 30. extra works can be added. Admin can add new employee Printing system will be integrated this process. this. according to customer requirements. KANDEMİR logged in as Admin and tried to add new bus. 24 . Outcome 9) FUTURE WORKS In future. This row was deleted.close() was written in Bus Form. there will be new works on this project. This project can be changed as web-based application. After she filled the Bus Form and clicked SAVE button. Customer will make reservation. Bus Form code was examined. application closed. After these works.2012 Gamze KANDEMİR Bus reservation system was started.12. Ms. Break time and break place will be kept in database for each service.
For that reasons. Our project. and to make reservation reliable they need a strong system that they will make reservation easier. We faced some difficulties in programming and E-R diagram but we overcome these difficulties by searching and discussing with our instructor. roles and lead roles to enter correct information to forms. With this bus reservation system people can travel without any misunderstanding that occurs by system of agencies. make well connection between pages. This project designed to meet requirements of a bus reservation system. We believe that we achieved our goals and developed our goals by coding. bus agencies are taking important role in transportation. It has been developed in C# and database has been built in MySQL. faster and safer.9) CONCLUSION Nowadays. we tried to create strong system. 25 . Our aim is to make passengers happy and do not make agencies embarrassed against customer.
Ramez Elmasri. Thomas Connolly. Languages Design and Application Programming. available at: http://msdn.Kendall. Pearson  Database System A Practical Approach to Design. and Management. last visited 2.1.Navathe.microsoft.com/en-us/vstudio/hh341490.10) BIBLIOGRAPHY  Database Systems – Models. 2010. Shamkant B. 2011. What's New with Visual C#".aspx. Eighth Edition. Implementation. Kenneth E.2013 26 . Julie E. Pearson  Microsoft (last update in 2013) "Visual C# Resources.Kendall. Carolyn Begg. 2005. Addison-Wesley  System Analysis and Design. Sixth Edition. Fourth Edition.