Professional Documents
Culture Documents
Finaldocumentation2 150206021617 Conversion Gate02 PDF
Finaldocumentation2 150206021617 Conversion Gate02 PDF
Finaldocumentation2 150206021617 Conversion Gate02 PDF
Table of Contents........................................................................................................................................1
INTRODUCTION .......................................................................................................................................3
1.4Justifications.......................................................................................................................................5
1.5 Scope.................................................................................................................................................5
1.6Methodology......................................................................................................................................6
CHAPTER 2 ..................................................................................................................................................8
Features...................................................................................................................................................8
Chapter3 ...................................................................................................................................................10
3.0 INTRODUCTION....................................................................................................................................10
3.1 Purpose............................................................................................................................................10
3.2Scope ...............................................................................................................................................10
3.14Communication Interfaces..........................................................................................................17
3.16.4 Reliability................................................................................................................................19
3.16.5 Availability...............................................................................................................................19
3.16.6 Security...................................................................................................................................19
3.16.7 Maintainability........................................................................................................................19
3.16.8 Portability...............................................................................................................................19
CHAPTER 7.................................................................................................................................................59
2
CHAPTER 1
INTRODUCTION
BUS BOOKING MANAGEMENT SYSTEM is aimed at reducing paper work for the bus
industry and hence improving its efficiency and speeding up of all processes.
The database can be accessed by the passengers from any computer terminal connected through
LAN to a server where the system has been installed. Hence, all the related information about a
passenger is available to Admin and Employees. Thus this software saves the entire passenger’s
long queue and hassle.
1.1 Background
Horizon coach is a transport company Located in CBD Nairobi Kenya along Accra road. It was
started in 1958. The company is most well known passenger, courier, parcel delivery and
transport company operator in East Africa which provide the safest, most comfortable luxury
buses on Kenyan roads today.
In Horizon Coach, most of the driver information is kept in a file. Therefore, it is quite hard for
them to search the driver information when needed. Moreover, it uses a lot of papers and data is
lost because no backup provided for the data. Some of the data is quite hard to read because the
form was filled up by hand writing.
Other problems that occur in Bus Information is tracking its maintenance record. Most of the bus
will be maintained at list four times in year. By using a manual form, each bus must have its own
maintenance record file. Problems that occur to this manual system are to store the maintenance
record file and to find it back. It takes quite a time in order to find the correct maintenance record
needed.
3
1.2.1Challenges of the current system
Horizon Coach have decided to take charge in designing a system that is friendly and will try to
work out solution in a way that favors the interests of every customer and workers, solve
problems faster, manage data, so that all the transactions become fast and there should not be any
error in transaction like calculation mistake and bill generation.
1.3 Objectives
The objective of “Bus booking management system” is to easily track the information of all
customers, drivers and bus destination. The main goal of the software is to build a good
management tool for all customers. The main purpose of this software is to reduce the time
taken through manual system in order to maintain all the records.
4
1.4Justifications
The purposes of this system is to help easily capture the information of all patients and to reduce
the time taken through manual system in order to maintain all the records.
1.5 Scope
This system is helpful to reduce the time and complexity of maintaining the records. It also helps
in accurate maintenance of passengers and drivers.
-It can be used in any transport company for maintaining Passenger details.
5
1.6Methodology
1Research method
Horizon coach uses a manual system but is not efficient on passenger’s detail. So I thought there
was a need to improve on passenger registration system to overcome some problems.
1. Security: -data stored in database can be access by unauthorized person because of using
access database which is weak and it cannot prevent unauthorized people from access it.
This lead to information stored in their database being interfered and damaged.
2. The system is slow: - because its users keeping information manually in books which
can easily be overwrite.
1.7Development Method
The methodology that I used through out the development process was a variation on the
waterfall life cycle. As the requirements for the project was unlikely to change dramatically. If
the project looked like the requirements would be changing often a more agile methodology
would have been chosen. The waterfall lifecycle works by following a strict path through the
6
development process not moving on to the next stage until the previous stage has been
completed.
7
CHAPTER 2
Features
I. Employee registration and management.
II. Passenger registration and management.
III. Manage passenger bills.
IV. Booking passenger travelling dates.
V. Passenger reports handling.
VI. Passenger Luggage and store management.
Horizon Coach
The reason for developing this system was to come with a system that would be able to track
information of all passengers who comes to book a service. A system that will be able to register
passengers and give them a random number to prevent any data duplication. This system will
also be able to retain passenger details in the database.
Resources/requirements
1. Computer machine
2. External disk
8
4. Printer
5. Printing material
2.0 GB memory
capacity,
500GB storage
capacity hard disk
Windows
professional
9
Chapter3
SYSTEM REQUIREMENTS AND SPECIFICATION
3.0 INTRODUCTION
The below subsections is the Systems Requirements Specifications (SRS) document and it
provides an overview of the entire system.
3.1 Purpose
The System Requirements Specification (SRS) will provide a detailed description of the
requirements for the Bus Booking Management System (BBMS). This SRS will allow
for a complete understanding of what is needed for the hotel management system
construction. The clear understanding of the HMS and its’ functionality will allow for the
correct software to be developed for the end user and thus will be used for the
development of the future stages of the project. This SRS will also provide the foundation
for the project. From this SRS, the BBMS can be designed, constructed, and finally
tested.
This SRS will be used by the software engineers constructing the BBMS and the Bus end users.
The software engineers will use the SRS so that to fully understand the expectations of this
BBMS to construct the appropriate software. The hotel end users will be able to use this SRS as
a “test” to see if the software engineers will be constructing the system to their expectations. If it
is not to their expectations then the end users can specify their choice and the software engineers
will change the SRS to fit the end users’ needs.
3.2Scope
10
The system product to be produced is a Bus Booking Management System which will automate
the major Bus operations. The first subsystem is a Bus Reservation and as well as advance
Booking System to keep tracks of reservations and seats availability. The second subsystem is
the Tracking and Selling tickets System that charges the current journey. The third subsystem is
a General Management Services and Automated Tasks System which generates reports to audit
all bus operations and allows modification of subsystem information. These three subsystems’
functionality will be described in detail in section 2-Overall Description.
There are two accounts for the BBMS. The end users are the Bus staff (customer service
representative) and administrator the Bus managers. Both user types can access the Reservation
and Booking System and the ticket Tracking and Selling System. The General Management
System will be restricted to management users.
The objective of this Bus Management System is to provide a system that can manage a bus that
has increased in size to a total of 60 seats. Without automation the management of the bus has
become an unwieldy task. The end users’ day-to-day jobs of managing a bus will be simplified
by a considerable amount through the automated system. The system will be able to handle
many services to take care of all passengers in a quick manner. The system should be user
appropriate, easy to use, provide easy recovery of errors and have an overall end user high
subjective satisfaction.
3.4 Overview
11
The SRS is organized into two main sections. The first is The Overall Description and
the second is the Specific Requirements. The Overall Description will describe the
requirements of the BBMS from a general high level perspective. The Specific
Requirements section will describe n detail the requirements of the system.
This covers the general description of factors that affect the product and its requirements. This
section does not state specific requirements. Instead it provides a background for those
requirements, which are defined in section 3, and makes them easier to understand.
12
The BBMS will be placed on PC’s throughout the company.
All databases for the Bus Booking management system will be configured using Access 2000-
2003. These databases include Bus seats and passenger information. These can be modified by
the end users. The bus database will include the bus number plates, seats and if they are vacant
or reserved. The passenger information database will contain all the information of the
passenger such as first name, Surname, ID Number, Gender and phone Number.
The audio and visual alerts will be deferred because of low importance at this time.
14
3.10SPECIFIC REQUIREMENTS
This section contains all the software requirements in a more detailed manner, that when
combined with the system context diagram, use cases, and use case descriptions, is sufficient to
enable designers to design a system to satisfy those requirements, and testers to test that the
system satisfies all the requirements.
The Bus Booking Management System will use the standard input/output devices for a personal
computer. This includes the following:
• Keyboard
• Mouse
• Monitor
• Printer
15
3.11 User Interfaces
Room Service/Restaurant Create order, modify order, view order, cancel order, generate
meal bill
16
3.14Communication Interfaces
This system shall be a standalone product that does not require any communication interfaces in
whatsoever.
Functional requirements define the fundamental actions that system must perform.
The functional requirements for the system are divided into three main categories,
Reservation/Booking, travel, and Management. For further details, refer to the use cases.
3.15.1 Reservation/Booking
1.1. The system shall record reservations.
1.2. The system shall record the passenger’s first name.
1.3. The system shall record the passenger’s Surname name.
1.4. The system shall record the number of passenger.
1.5. The system shall record the seat number.
1.6. The system shall record the passenger’s phone number.
1.7. The system shall generate a unique confirmation number for each reservation.
1.8. The system shall record the expected travel date and time.
1.9. The system shall record the expected destination date and time.
1.9.1. The system shall record that the seat is empty.
1.9.2. The system shall record the payment.
1.9.3. The system shall record the payment type.
17
3.15.2 Nonfunctional Requirements
Performance requirements define the acceptable response times for system functionality.
• The load time for user interface screens shall take no longer than two seconds.
• The log in information shall be verified within five seconds.
• Queries shall return results within five seconds.
The logical database requirements include the retention of the following data elements. The list
below is not complete but only designed as a starting point for development.
The Bus Booking Management System shall be a stand-alone system running in a Windows
environment. This system shall be developed using visual basic 6.0 and an Access 2000-2003.
There shall be consistency in variable names within the system. The graphical user
interface is designed to have consistent look and feel.
3.16.4 Reliability
This specifies the factors required to establish the required reliability of the software system at
time of delivery.
3.16.5 Availability
This system shall be available only during normal Bus operating hours.
3.16.6 Security
Passenger Service Representatives and Managers will be able to log in to the Bus Booking
Management System. Passenger Service Representatives will have access to the
Reservation/Booking subsystems. Managers will have access to the Management subsystem as
well as the Reservation/Booking subsystems. Access to the various subsystems will be protected
by a user log in screen that requires a user name and password.
3.16.7 Maintainability
The Bus Booking Management System is being developed in Visual Basic 6.0. VB6.0 is an
object oriented programming language and shall be easy to maintain.
3.16.8 Portability
The Bus Booking Management System shall run in any Microsoft Windows environment that
contains visual basic 6.0 and the Microsoft Access database.
19
3.17 Change Management Process
Changes to this document may be made after approval from the project manager and the client
approval officer.
A system context diagram as well as use cases and use case descriptions have been developed in
separate documents.
20
CHAPTER 4
4.1 INTRODUCTION
Software design is the process of implementing software solutions to one or more set of
problems. The software design (SDS) document contains a statement of the design of inventory
management system. The design contains an explanation of a way to carry out each of the
product specification written in the Software Requirement Specification (SRS).The design will
serve as a guide to the developer. The SDS also shows how the program is separated into
modules, how the modules interact with each other, and how users see the program.
a) Purpose
This document is designed to be a reference for any person wishing to implement, or any persons
interested in the design architecture of the Horizon coach Management system. This document
describes each application’s architecture and its associated interfaces and database design. This
design will detail the implementation of the requirements as defined in the BBMS system
specification design.
b) System overview
This document includes but is not limited to the following information for the Horizon Coach
Booking management system; system overview, design consideration, architectural strategies,
system architecture, policies and tactics, database schemas, detailed system design.
c) Intended users
This document should be read by an individual with a technical background and has experience
reading data flow diagrams DFDs, control flow diagrams CFDs, interface design and
development experience in event driven programming or as describe in the BBMS System
Requirement Specification 1.2.
21
4.2 SYSTEM SCOPE
a) Main Inputs:
i. Passenger name
ii. Driver ID/Passenger ID
iii. Passenger address, phone number, Gender
iv. Travel date and time for passenger
b) Outputs
i. Make Reservation screen
ii. Add new Bus screen
iii. Add new driver/Delete driver screen
iv. Add new user
22
c) Design Map
The system design will take the following mapping when ready.
Splash Form
Main Form
Login
ADMIN USER
ADD NEW ADD NEW BUS SEARCH ADD NEW BUS SEARCH
USER
23
4.3 DESIGN CONSIDERATIONS
This section describes many of the issues that are needed to be able to addressed or resolved
before embarking on a complete design solution.
a) Assumptions
This BBMS design makes several assumptions about the software and hardware requirements as
is in the SRS. All the environmental operating requirements of both the user interface and the
database can be found in the BBMS requirements.
Both the database and the user application make the following assumptions about the operating
environment.
The system can be described by the operating requirements associated with this document and in
the SRS. The system application in execution will have the necessary resources availed as
required. This entails sufficient memory and permanent storage space and the adequate CPU for
the application. The user application makes the following assumptions about its operating
environment. The user machine will have Microsoft access database components installed, as
they are required for the system implementation. The machine will also have necessary database
setup.
It is also important the series of prompts and responses be tested with the users before being
deployed.
24
The user should get a response in a timely fashion since users tend to lose interest if they have to
wait too long for the system to respond.
In this design, a minimum of data is transferred between the user and the database so as to
retrieve the necessary information and return the requested data to the user.
System scalability and security are the requirements for the system architecture of the Bus
Booking management system. The system will accommodate scalability allowing flexibility
within the system to expand, modify or downsize easily to meet the evolving business and
technology change.
a) Development tools
This part of the SDS specifies the tools that will be used to develop the system. They include:
Application programming visual basic 6.0 and MS access for database. Other tools to be used
will include forms which will act as screens for input and out, tables that will be for input and
data entry.
b) Design methodology
In designing the BBMS for Horizon Coach, the following approach will be used:
Water fall model will be used as the best language for this kind of system. This is because water
fall model is suitable for visualizing, specifying, constructing and documenting the features of
25
the system. The design will take the following approach: designing the database, creating
relationships, designing the user interfaces and the system processes.
c) Database design
Database design refers to a process of modeling the information so as to meet the user
requirements. The process will be accomplished in three stages.
d) Conceptual design
Conceptual design refers to a process of constructing an abstract model of data to be included in
a database.
In creating the conceptual design for Horizon Coach, the following activities will be involved.
Identification of the entities: the various entities included in the BBMS are;
• TRAVELL DETAILS
• RESERVATION DETAILS
• LOG IN
• HOMEPAGE
e) Identification of relationships
This refers to an association between the entities.
For Horizon Coach, a passenger makes reservation as wishes. The Management therefore records
all details of the passenger and as well as those of the driver who will be on duty.
CUSTOMER
Passenger makes reservation
26
Delivers
SERVICE Delivered
f) Logical design
This part of the database design will entail selection of database model which is a collection of
concepts and rules for the description of the structures of the database. A relational database
model will be used for this case as it defines a database as a collection of tables containing all
data and their related properties.
f) Data normalization
This is a process of removing redundant data from the tables in order to improve storage
efficiency, data integrity and data scalability.
i. Users table
27
This table stores user’s username and password which they use to log in to the system.
28
iv. Passenger information Table
To record passenger information
29
4.5 DATABASE IMPLEMENTATION
In this system, the database will be implemented using MS Access. It functions as storage to
keep track of the entire Organization.
File Security is defined by personal or sensitive data that is stored in files on the database. It is a
vital part of every data storage system. The administrative team will handle this for the BBMS
project by defining user groups and assigning permissions. This is a requirement of the system
because the staff will be using/sharing applications and files.
The User groups will be defined and consist of system administrators, managers, and staff.
Basically three levels of access. These levels will allow certain privileges and be controlled by
the rank in group permissions. Permissions will stem between read, write, and execute broken
down into access and ability to perform file/application manipulation. The categories are as
follows.
30
4.6 ARCHITECTURAL AND COMPONENT LEVEL DESIGN
Decision -Indicate a point where the outcome of a decision indicates the next step.
31
Data flow for searching record
Validate
User username & Search record Display the
password requested record
32
Start
System Flowchart
Enter to
Admin/Employee Form
Enter details
for the task
Validate/verify details
Another Database
task
Display reports
YES
Print report
33
Exit
a. Context Diagram
The first level of DFD shows the main process within the system that generalizes the function
of the entire system in relation to external entities.
This may be represented showing the Passenger reservation process, where the passenger is an
external entity in the context diagram.
Process
-The nature of process is entered in the box along with the actor
34
Source (sink) -A point where data originates
1 Bus
Process reserve
Passenger
Reserves
Sort Services
Passenger
1.2 Staff
1.3 35 Staff
Passnger file
Locate seats
User interface will consist following main screens, login screen which will consist of a user
dialogue box text boxes and three labels for data input. The login screen will be used to
authenticate the user to the system.
The sample user interface forms and screens that the user will interact with include:
1. Login Form
2. Bus Form
3. Driver Form
4. Reservation Form
5. Passenger information Form
6. Service Information Form
7. Main Menu Form
LOADING BAR
36
The loading bar gives user some information before the program has started.
The main menu is the homepage of the program. User can use it for navigation.
37
Login Form
38
User needs to enter his username and user full names should appear if his username is in
database. Then, user has to enter password correctly to login. If user enters incorrect password,
he will receive an error message as "Invalid Password". Finally, user can quit this program.
ADMIN FORM
If user logs in as Administrator, Admin Form will appear. This Form shows capabilities of
Admin.
39
EMPLOYEE FORM
If user logs in as system user, Employee Form will appear. This form shows capabilities of
Employee.
40
SERVICE INFORMATION FORM
41
If user (Admin or Employee) clicks “Make Reservation” button, “Service Information” Form
needs to be filled.
42
After user fills Service information form, Passenger Information Form will appear. The
passenger information will be filled.
RESERVATION FORM
43
In this form, user needs to select an available seat. Seat’s color will change according to gender
in the Reservation Form. If it is reserved for a man, color will yellow; if it is reserved for a
woman, color will be pink.
PAYMENTS FORM
44
Payment form is used to make payment. Passenger can make payment using either cash or by M-
pesa.
PAYMENT VERIFICATION(mpesa)
45
If passenger decides to pay using M-pesa, this form appears where he/she is given pay bill
number.
DRIVER FORM
46
If user clicks “Add new driver” button; Driver Form needs to be filled.
BUS FORM
47
When the company buys a new bus, the following form is used to keep the bus record in
database.
48
Admin can add new Employee into the system using the above form.
CHANGE PASSWORD
49
If user decides to change password, he can use the “change password form”
CHAPTER 5
TESTS PLAN
50
5.1Introduction
This is aimed at identifying and correcting errors. The major objective of this activity is to ensure
that the processing done by the application is correct and meets the objectives of the
organization. Test plan aids in effective and systematic testing of the system and it aims at
checking the errors of omission and commission that hinders the realization of the objectives. It
takes the bottom up testing approach.
5.2Importance of testing
2. It is used to find undercover errors in a program through the use of defect testing.
3. Testing is also used to uncover new types of errors associated with new inventions and
technology
5. It is used for both validation and verification to develop a product that meets user
requirement.
6. It is used to identify the best component combination for effective error identification.
The system will be tested with sample data to see how it would handle input and output functions
as well as extreme data or conditions to determine the system behavior in overloaded situation
which will directly slow the system that behaves in failure or extreme situations.
51
The types of testing that will be conducted upon include:
• Unit testing
• Module testing
• System testing
• Integration testing.
5.3.1Unit testing
In this type of testing, the smallest testable parts of the system I.e. units are individually tested
and independently examined for correct functionality. This type of testing involves both the
positive testing and negative testing. This is important so as to make sure that the system
functions properly when used both correctly and incorrectly. In this case, the forms in visual
basic as well as the tables for the database will be tested individually to ensure that they are
compatible. This also applies to the operating system and the software applications.
5.3.2Integration testing
This is where two or more related programs are tested. The test will involve two types of
approaches i.e. the bottom-up approach that begins with the simplest task to the most complex
part .e.g. from passenger information table to the database and top-down approach that tests the
system from the complex task to the simplest unit of all.
We seek to verify that all the hardware function together without conflicting.
All the forms linked to the database should be connected well without any issue.
Ensure that all the programs work well to avoid interruption and there is no issue whatsoever
affecting database update.
5.3.3System testing
I this type of testing we shall test the entire system for functionality to ensure that the system can
process and handle large volumes of data quickly and efficiently. The test will be done with a
52
sample of some users who will use the system under test in its actual capability environment.
Possible problems are corrected before really conversion.
5.3.4Acceptance testing
This test will complete the formal testing process where all the users and the administrator will
use the system so as they get familiar with it. The users test the system before it is rolled out to
be fully used.
i. Beta testing-Carried out at bus company premise. This involve delivering the system to
number of potential clients to use the system and report back to developer key
malfunctions with an understanding that the product is still being tested.
ii. Alpha testing-It takes place at the developer site. It is the final testing before the
software is about to be released to the hospital for use.
a. First phase
b. Second phase
a).First phase-The software is tested by in house of developers. They use either debugger
software or hardware assisted debuggers.
b).Second phase-The software is handed over to a different bus company for additional testing
in an environment that is similar to intended use.
5.3.5Recovery testing
Recovery testing will force the system to fail in various ways and try to verify that the recover is
efficiently done or performed. It is vital that all the data is recovered after the system failure and
no corruption of data.
53
5.4Test plan
Unit testing Interface How the system Easy to use and To increase the
and logical is interactive effective interface by level of
testing system users. usability hence
increases level
of accuracy.
Numerical fields Should accept Should perform
numbers only. as expected.
Text fields Should accept only Should perform
text characters. as expected.
Login Should accept correct Should perform
password. as expected.
Username and Security Connect to database Should perform
password for verification access as expected.
is denied if wrong
password is given.
Module testing The MDI Navigation of Sub menu to open The system
FORM system should be
accessed from
the level to the
lowest level.
System testing CODE System The system should Ensure the
implementation have no errors when system
running functions as
required without
problem.
Command Should perform as The files should
buttons for file expected be manipulated
operation easily by use of
commands.
54
5.5Conclusion
All testing was done carefully and each test was up to the required standards of the users’ .error
tests may be suggested but the above mentioned are just sufficient to test. Testing is an essential
phase in system development and therefore it should be taken with a lot of interest.
CHAPTER 6
IMPLEMENTATION PHASE
6.1Introductions
The system has been developed using visual basic 6.0 and ms access database.
55
6.2Purpose
The document contains overviews of system, description of the major tasks that are required to
be done before the system is put into use.
6.3System description
This system will manage all bus booking activities, it will cover all passenger details and
maintaining all record about the drivers. This will be facilitated in the database which will
preserve their record for future reference. The system will processes data into useful information.
6.4System organization
The main functions that will be carried out by the application will be
1. Registering passengers
6. Generating reports
Direct conversion
56
This the best method of implementing the system by direct conversion .This was done because
the travelling company does not have a stable system at the moment as they still run their things
manually.
Justification
I. The system will be implemented immediately after testing is done in team work.
II. Currently there is no system that is used so there is no much cost that will be lost in
replacing the old system.
6.6Installations
A 150 GB
2 GB or 4 GB ram
Microsoft access
All data from the manual system was migrated to the new system to measure up the performance
of the new system depending on the kind of data that will be put on the system once is put in
use.
6.8Review
57
The system developer and the users will analyze and compare the two systems and will come up
with changeover method used.
6.9Maintenance plan
The maintenance plan include all those thing that will be need for the project output once the
management has accepted them and how they will be achieved.
6.10Implementation schedule
6.11Conclusions
58
The implementation of this system will help in handling daily operation efficiently and good
performance of the travelling agencies. It will improve record storage as all data will be stored in
the database.
6.12Recommendation
The system being a stand-alone it does not need to be online as all need that will be required for
a passenger you can book seats.
CHAPTER 7
59
7.0Codes
Codes for validating passwords and user name in the login form
End Sub
Sample codes for the admin form
Unload Me
frmreservation.Show
End Sub
End Sub
frmadduser.txtfullnames.Enabled = True
frmadduser.txtPassword.Enabled = True
frmadduser.TxtUserName.Enabled = True
frmadduser.txtsearch.Enabled = False
frmadduser.txtfullnames = ""
frmadduser.txtPassword = ""
frmadduser.TxtUserName = ""
frmlogin.TxtUserName.Text = frmadduser.TxtUserName.Text
frmadduser.Show
End Sub
64
Private Sub cmdseats_Click()
frmreservation.cmdok.Visible = False
Unload Me
frmreservation.Show
End Sub
Option Explicit
Dim rs_bus As New ADODB.Recordset
Private Sub fill()
66
txtfullnames.Text = rs_bus!FullNames
txtpassword.Text = rs_bus!Password
txtusername.Text = rs_bus!UserName
End Sub
End Sub
End With
End Sub
68
Private Sub cmdexit_Click()
rs_bus.Close
If frmlogin.txtusername = "admin" Then
Unload Me
frmadmin.Show
Else
frmemployee.Show
Unload Me
End If
End Sub
End Sub
End Sub
End Sub
End With
Else
reply = MsgBox("Record Not Available", vbOKOnly + vbInformation, "Error")
If reply = vbOK Then
txtsearch.Text = ""
txtsearch.SetFocus
End If
End If
End Sub
Option Explicit
Dim rs_bus As New ADODB.Recordset
Private Sub Command1_Click()
72
If rs_bus.State = adStateOpen Then rs_bus.Close
rs_bus.Open "Select * from passengerinformation WHERE id_number='" & txtIDnumber.Text
& "'", datacon, adOpenKeyset, adLockOptimistic
If rs_bus.RecordCount > 0 Then MsgBox ("Passenger Already Exists"): Exit Sub
With rs_bus
.AddNew
.Fields("id_number") = txtIDnumber.Text
.Fields("first_name") = txtfirstname.Text
.Fields("surname") = txtsurname.Text
.Fields("gender") = txtgender.Text
.Fields("phone_number") = txtphonenumber.Text
.Update
MsgBox ("Record Saved Successfully")
End With
Command1.Enabled = True
Command4.Enabled = False
txtfirstname.Enabled = True
txtIDnumber.Enabled = True
txtphonenumber.Enabled = True
txtsurname.Enabled = True
Option1.Enabled = True
Option2.Enabled = True
End Sub
Option Explicit
Dim rs_bus As New ADODB.Recordset
Private Sub fill()
Label6.Caption = rs_bus!seat_color
End Sub
Private Sub cmd1_Click()
Text1.Text = "Seat No 1"
If Label6.BackColor = vbYellow Then
cmd1.BackColor = vbYellow
ElseIf Label6.BackColor = &HFF00FF Then
75
cmd1.BackColor = &HFF00FF
End If
Label6.BackColor = &HC00000
End Sub
End Sub
76
Private Sub cmd12_Click()
Text1.Text = "Seat No 12"
If Label6.BackColor = vbYellow Then
cmd12.BackColor = vbYellow
ElseIf Label6.BackColor = &HFF00FF Then
cmd12.BackColor = &HFF00FF
End If
Label6.BackColor = &HC00000
End Sub
86
Private Sub cmd40_Click()
Text1.Text = "Seat No 40"
If Label6.BackColor = vbYellow Then
cmd40.BackColor = vbYellow
ElseIf Label6.BackColor = &HFF00FF Then
cmd40.BackColor = &HFF00FF
End If
Label6.BackColor = &HC00000
End Sub
Unload Me
frmpassengerinfo.Visible = False
frmpayments.Show
End Sub
98
USER MANUAL
INTRODUCTION
Horizon Coach Booking Management system is developed using Visual Basic 6.0(VB) to assist
the administrator and users on their day to day operations in running of the company. The user
manual is designed to assist the user in the effective use of the system and to assist in user
registration showing all operations performed in the system and how to perform.
Specifications
This system has been built on specifications and some assumptions have been made which must
be known to the user.
a) The system is capable of holding the passenger, driver as well as payment details and be
retrieved.
b) Records can be deleted or amended from the database to update records or edited the
system after a given period of time.
Requirements
Installation of the valid software is needed before user can interact with the system.
Hardware requirements
a) Pentium IV computer
c) 256 MB of RAM
d) 50 GB Hard Disc.
99
Software requirements
a) Windows 7 operating system
b) Microsoft Access
c) Microsoft Word
Running setup:
3. The setup screen automatically appears on the screen, follow the instructions given that
guide you through the setup.
4. In the start menu click and go to the program, select the folder containing the system and
double click to open.
Getting started
100
Immediately you run the program the main window appears.
Login
When you click on login button, Login form appears requesting one to enter a valid username
then after you press tab key, full names are displayed and you are now suppose to enter
password to get access to the system.
101
Navigation Buttons
CONCLUSION
Despite the hardships encountered in the entire development process the system has been
developed for Horizon Coach, thus enabling it improves its efficiency and effectiveness.
102
Maintenance and usage of the system will be easy as the documentation and user manual of the
system will be available to all users. Also there will be room for enhancement as this was
considered during development.
The system will offer better functionalities than the manual system, where the users of the
system will have to be computer literate so as to use the system effectively.
103
APPENDIX
Glossary
a) BBMS: is an abbreviation for Bus booking Management System
b) ADD- refers to a command that is used to include an item in the system.
c) SEARCH- used to find passenger, driver or user in the database.
d) RAM- refers to Random Access Memory i.e. type of memory that can be accessed
e) Scalability -refers to the ability to expand.
f) Debug -is the process of correcting errors generated during program execution.
g) An error- refers to a defect in a given program.
h) Run a program- is to initiate the execution of the set instructions.
i) Prompts will be defined as the point at which the computer and the user interact. These
are decision points in the control flow of the program, allowing the program to branch
based on the user response.
j) Commands- are the legal responses the user may make at any given prompt.
k) Administrator:- the personnel who are mandated with administrating and creation of
user accounts besides ensuring system security
l) Users: The personnel who interact with the current system as well those expected to
interact with the proposed system.
104
Gnatt chart
1 2 3 4 5 6 7 8 9 10 11 12 13
Proposal document
Proposal
presentation
SRS document
System design
specification
Logical design n
document
Physical design
document
Implementation
and test plan
document
User manual
documentation
Final document
Final Presentation
TROUBLE SHOOTING
105
Problem Possible cause Remedy
Software not responding Many processes re-scheduling Check your memory space and
Low memory space on the free it if necessary.
hard disk Close programs that are not in
use
Display of a funny message on A virus attack on your system Install an Anti-virus software
the screen. Update your Anti-virus from
Deletion of data your vendor or from the
spontaneously website
Pc shutdown Power failure Ensure there is power on
Faulty power supply cable mains supply and switch on.
Faulty power supply unit Check cable.
Check your power supply unit
REFERENCES
Shelly, B, G, Cashman, J, T and Rosenblatt, J, H, 2006, System Analysis and Design, sixth
edition, Thomson Course Technology, Massachusetts.
Pressman R.S Software Engineering: A practioners approach,5th Edition, McGraw Hill,
New Delhi,2001
http://en.wikipedia.org/wiki/Data_flow_diagram(14th October 2014)
106
Software engineering 4th edition by Ian Somerville © 2004 publisher Pearson education
international.
Software engineering 7th edition by William stalling published by Pearson education.
107