Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
WOLLO UNIVERSITY
COLLEGE OF INFORMATICS
Group Name ID
1. Sisay Mengie…………………………1678/05
2. Surafel Tsegaye………………………1680/05
3. Tsegaye Kediru……………………...1689/05
4. Nejat Ahemed………………………..1664/05
5. Atsedemariyam Zenaw………………1694/05
Kombolcha Ethiopia.
We would like to thanks to our advisor Salihadin S (MSC) is an instructor in wollo university
kombolcha institute of technology to give guidance and to motivate to achieve this project. We
would also thanks to the Selam Bus Line Share Company (Selam Bus Line S.C) office in the
dessie town to give information how the current system works and how the passenger reserve
ticket in the current system and also give information about the background of the company.
We would like to extend our thanks for our friends, our classmates and family for their support
and encouragement to achieve the project.
The purpose of this project to develop online ticket reservation system that provides services like
promotion Selam bus ticket reservation . Properly designed user interface is can standardize the
input and output mechanism allowing users to easily use the entire system.
In addition the system has necessary security to manipulate the information in the database. As a
whole this system is believed to solve the problems of the selam bus ticket reservation and
addressing information to the passenger.
ABBREVIATIONS
Acronyms Description:-
MS: Microsoft
Admin: Administrator
Pass: Passenger
Info: Information
Uname:user name
Rpassword:Retype password
Table of Contents
CHAPTER ONE ............................................................................................................................. 1
1. Introduction ................................................................................................................................. 1
1.1 Background ............................................................................................................................... 1
1.2 Statement of the problem .......................................................................................................... 2
1.3 Objective ................................................................................................................................... 3
1.3.1General Objective ................................................................................................................... 3
1.3.2 Specific Objective .................................................................................................................. 3
1.4 Methodology ............................................................................................................................. 3
1.4.1 System Analysis and Design .................................................................................................. 3
1.4.2 Method of data collection ...................................................................................................... 4
1.5 Feasibility Study ....................................................................................................................... 4
1.5.1 Economic Feasibility ............................................................................................................. 4
1.5.2 Technical Feasibility .............................................................................................................. 5
1.5.3 Operational feasibility............................................................................................................ 5
1.5.4 Political feasibility ................................................................................................................. 5
1.6 Project Scope and Limitation .................................................................................................... 6
1.6.1 Scope of project ................................................................................................................... 6
1.6.2 Limitation of the Project ...................................................................................................... 6
1.7 Significance of the project ...................................................................................................... 7
1.8 Tools ......................................................................................................................................... 7
1.8.1 System Implementation Tools ............................................................................................... 7
1.8.2 Hard ware tools:-.................................................................................................................... 8
1.8.3 Software tools:- ...................................................................................................................... 8
1.9 Project cost ................................................................................................................................ 8
1.9.1 Hardware cost:- ...................................................................................................................... 8
1.9.2 Software cost:- ....................................................................................................................... 9
2 Time schedule:- .......................................................................................................................... 10
CHAPTER TWO .......................................................................................................................... 11
List of tables
List of figures
CHAPTER ONE
1. Introduction
The project is concerned on online Selam Bus Line Share Company (Selam Bus Line S.C) ticket
reservation system. As human being there are many problems face throughout their life it is
obvious to solve many of the problems using computers. When saying this as the computer is the
modern technology problem solve any one can develop the software that make its work
computerized. So we have prepared a project as a precondition for solving many of the problems
of Selam Bus Line Share Company (Selam Bus Line S.C) ticket System that is implemented
manually. Therefore, this work that manually performed needs to be automated to reduce the
problem happened. The project includes the background of the company and also the systems
performed are described. In addition, the conditions like the problems in the company, our
objective, scope of the project and cost are clearly specified. Finally, the tools and techniques we
will use and the schedule is summarized as possible as to finish in the given time by using own
methodologies.
1.1 Background
Selam Bus Line Share Company (Selam Bus Line S.C) is one of the largest long distance cover
transportation company in Ethiopia. It was found by the Tigray Development Association in the
1988 E.C with initial capital of 43,900,000.00Birr. Its main objective is to address the national
wide need for public for transportation. In the current time Selam Bus Line Share Company
(Selam Bus Line S.C) provides service to more than 17 cities in Ethiopia. At present the cities
that the company is departure service from Addis Abeba to Diredawa, Harar, Jigjiga, Jimma,
Bahirdar,Gondor,Dessie,Mekelle,Shire,Assosa,Arbaminch,Hawasa,D/Markos,Welidya,Nekemit,
balerobe on daily basis. The headquarter, bus terminal and garage of Selam Bus Line Share
Company (Selam Bus Line S.C) has been established in Addis Ababa with branch offices in all
regional capitals. Selam Bus Line Share Company (Selam Bus Line S.C) to satisfy the need of
the passenger it can give a service for the passenger , such as Air conditioner, fridge, monitor,
& safety belt so that passengers are entertained by DVD/VCD music/film, Cake & soft drink or
plastic packed water/Juice while travelling.[1]
Manual system: The existing system is very time consuming and inefficient to the customer.
This system is more prone to errors and sometimes the approach to various problems is
unstructured.
1.3.1General Objective
To develop online ticket reservation system of Selam Bus Line Share Company (Selam Bus Line
S.C) that will replace the manual ticket reservation system.
1.4 Methodology
Interview: we contact the organization and then exchange some ideas about their current system,
how it has been working and the structure of this organization.
Document analysis: reading the document available in the organization site. [3]
Observation: - To understand directly how the existing system works currently, we have used
observation. We observed customer interaction.
The purpose of this project is that generating good services for the customers and at the same
time minimizing the cost and time taken by the service.
Tangible Benefits
Intangible Benefits
Easily access customer information throughout the Selam Bus Line Share
Company (Selam Bus Line S.C).
Increased flexibility.
Increase speed of activity.
To provide an easy option for the passenger who is willing to reserve ticket online.
To generate report.
Show schedule.
Assigning bus to journey.
To update and cancel the reservation date if the passenger want.
For the Selam Bus Line Share Company (Selam Bus Line S.C):-
1.8 Tools
2 Time schedule:-
Table 3 shows time table:-
Time table
Activities Nov 14- Nov 28- Feb 30 March 29 May 30 Jun 22
Nov 25 Jan 26 -Mar 28 -May 25 - June 10 -Jun 28
Project Proposal
Requirement
Analysis
Design
Implementation &
Coding
Testing
project Defense
CHAPTER TWO
SYSTEM ANALYSIS
2.1 Introduction
This chapter deals with analyzing the general work flow of the existing system. And the
activities that we performed in the project these include the use case diagram, use case
description for each use case, class responsibility collaborator, sequence diagram, activity
diagram and class diagram of the system. There will also be description of the functional and
non-functional requirements of our new system performed.
Currently Selam Bus Line Share Company (Selam Bus Line S.C) follows manual based to
provide service to its passengers. In existing system passenger need to go to selam bus office
their own to reserve a ticket. The clerk asks some questions for the passenger:-
After these questions are completely answered the clerk gives the ticket to the passenger.
It is time consuming.
It causes data loss because there is no proper handling of data.
It is not easily accessible.
Information in paper based form.
Requires stationary materials.
Make sure that the date, time and your name written correctly. This ticket should be
submitted when requested.
You need to show up identification card when you come to buy.
Customers should not hold materials like liquids, harmful properties, untaxed materials
and electronics which is not allowed by the Company.
If you lost your ticket you can travel by paying the full amount and it will be refunded
when the first ticket is found within 15 days.
Passenger wants to postpone the trip day he or she announce before 24 hours.
If you cancel your trip before 24 Hrs of your departure time and you don’t show up on
the departure time, there will be deduction of 50% from the total amount paid within 15
days. [2]
The system allow clerk can generating report for the Selam Bus Line Share
Company (Selam Bus Line S.C).
The system provide to modify system user can delete, update and insert the
required information.
The system has a function that allow passenger to view the schedule.
The system allows registered user to reserve tickets online.
The system allows passenger can give a feedback about Selam Bus Line Share
Company (Selam Bus Line S.C).This helps to improve the service and
performance of Selam Bus Line Share Company (Selam Bus Line S.C).
The system allows clerk postpone the date of journey.
Passenger can reserve ticket by choosing the available seat.
Admin Log in
Create account
Update account
Delete account
Clerk Log in
Generate report
View passenger information
Print ticket
Cancel reservation
Update Reservation
View message
Send message
Manager Login
Assign Bus
View Report
View feedback
View message
Send message
Add schedule
Post notice.
Passenger
View notice
Register
Login
View Schedule
Reserve ticket
Send message
View message
Rigister
Create account
View schedule
Update account
pass <<include>> <<include>>
Reserveticket Delete account admin
<<include>>
View message <<include>>
Add schedule
<<include>> <<include>>
Send message <<include>>
<<include>>
<<include>> Assign bus
Login
<<include>>
View report
Update <<include>>
<<include>> manage
reservation
<<include>> <<extend>> View feedback r
<<include>>
Generate <<include>>
report <<include>> Post notice
clerk <<include>>
View pass info Logout <<include>> View message
<<include>>
Print ticket
Send message
Cancel
reservation
2.5.3 Login
Table 4.1 which shows use case description about login use case
Identifier UC1
Basic course of action 1. System user can easily open the home page.
2. The system displays the login form.
3. System user can full fill the correct requirement data.
4. The System check user name and password whether it’s
correct or not.
5. The System display provides information.
6. Use case End.
Table 4.2 which shows use case description about Register use case
Identifier UC2
Actor Passenger.
Pre-condition None
Basic course of 1. System user can easily open the home page.
action 2. The system display passenger registration form.
3.The System user can full fill the correct requirement
data and click create account button.
4. The system check validation of data.
5. The system display successfully registered.
6. Use case end.
Table 4.3.Which shows use case description about reserve ticket use case.
Identifier UC3
Actor Passenger.
Basic course of action 1. The System user can easily open the home page.
2. The system user login into the system.
3.The System display the schedule form.
4. The system user view the schedule .
5. The System user clicks the bus id button.
6.The system display the reservation form.
7. The system user select the seat no and full fill the information.
8.The system check validation of data
9.The system user successfully reserved seat.
10. Use case End.
Alternative course of alternative course of action 8:-
action If System user is not filled correctly, display ‘Error’
message and go to Step 7.
Table 4.4 which shows about use case description about view schedule use case
Actor Passenger.
Table 4.5 which shows about use case description about Cancel reservation use case
Identifier UC 5
Actor Clerk .
Basic course of action 1. The System user can easily open the home page
2. The system user login into the system..
3. The system user click view information page.
4. The system display passenger information table.
5. The system user fill seat number and click search button.
6. The System check user valid data whether it’s correct or
not.
7. The system displays successful cancel.
8. Use case End.
Alternative course of alternative course of action 6:-
action
If System user is not filled correctly, display ‘Error’
message and go to Step5.
Table 4.6 use case description about Generate Report use case
Identifier UC6
Actor Clerk.
Basic course of action 1. The System user can easily open the home page.
2.The system user login into the system.
3.The System user click generate report button.
4.The system display generate report form.
5.The system user full fill the correct data.
6. Use case End.
Table 4.7 which shows that use case description about update reservation use case.
Identifier UC7
Actor Clerk .
Description The system allows User update reservation for the users.
Post condition The system will display the information is updated successful
message.
Basic course of action 1. The System user can easily open the home page
2. The system user login into the system..
3. The system user click view information page.
4. The system display passenger information table.
5. The system user fill seat number and click search button.
6. The System check user valid data whether it’s correct or
not.
7. The system displays successful update.
8. Use case End.
Table 4.8 shows Use case description for print ticket use case
Identifier UC8
Actor Clerk.
Basic course of action 1. System user can easily open the home page.
2. The system user login into the system.
3.The System user click view information page.
4. The System displays the reserved passenger list.
5. The System user checks the seat number.
6. The system user prints ticket.
7. Use case End.
Table 4.9 which shows use case description about assign bus use case
Identifier UC9
Actor Manager.
Description The system users allow assign bus to the requested service.
Basic course of action 1. The System user can easily open the home page.
2. The system user login into the system.
3.The System user click assigns bus page.
4. The system displays assign bus form.
5. The system user full fill correct requriment data.
6.The System check user valid data whether it’s correct or
not.
Table 4.10 which shows about use case description about create account use case
Identifier UC10
Actor Admin.
Basic course of action 1. System user can easily open the home page.
2.The system user login into the system.
3.The system user click create account page.
4. The system display the account form.
5. The system user can full fill the correct requirement data
about users.
6. The System check user valid data whether it’s correct or not..
7. The System user create account..
8. Use case end.
Table 4.11 which shows use case description about view report use case
Identifier UC11
Actor Manager.
Basic course of 1. The System user can easily open the home page.
action 2. The system user login into the system.
3.The System user Click view report button.
4. The system display view report form.
5. The system user can full fill the correct requirement data.
6. The System check required data whether it’s correct or not.
7. The system user can easily see the report sends from the clerk.
8. Use case End.
Table 4.12 which shows use case description about view feedback
Identifier UC12
Actor Manager.
Description The system user will view feedback sent from users.
Post-condition The system user can view the feedback that sent from user.
Basic course of action 1. The System user can easily open the home page.
2. The System user click View feedback button.
3. The system display View feedback form.
4. The system user selects feedback that store on the database.
5. The system user can see the feedback that sent from user.
6. Use case End.
Table 4.13 which shows use case description about view passenger information
Identifier UC13
Actor Clerk.
Basic course of action 1. The System user can easily open the home
page.
2. The system user login into the system.
3. The System user Click View passenger
information button.
4. The system display View passenger information
form.
5. The system user fill passenger seat number.
6. The system user click search button.
7. The system display passenger information.
8. The system user view information.
9. Use case End.
Alternative course of Alternative course of action 6:-
action If System user is not filled correctly, display
‘Error’ message and go to Step5.
Table 4.14 shows use case description about update account use case
Identifier UC14
Actor Admin.
Description The system user can update the account for Clerk, manager.
Basic course of action 1.The System user can easily open the home page.
2.The system user login into the system
3. The System user click update account button.
4. The System display update account form.
5.The System user can full fill the correct requirement data.
6. The System check validation of data whether it’s correct or not.
7. The system can update the account successfully
8. Use case End.
Table 4.15 shows use case description about check ticket use case
Identifier UC15
Actor Admin.
Description The system users can delete the account into system.
Basic course of action 1.The System user can easily open the home page.
2.The system user login into the system
3. The System user click delete account button.
4. The System display delete account form.
5.The System user can full fill the correct requirement data.
6. The System check user valid data whether it’s correct or not.
7. The system display successfully delete.
8. Use case End.
Table 4.16 which shows use case description about logout use case
Identifier UC16
Description Users logout from the system when finishes their task.
Pre-condition The user must have user account and finish their task.
Identifier UC17
Actor Manager
Basic course of action 1. The system user can open the home page.
2. The system user login into the system
3. The system user click the notice button.
4. The system display the notice form.
5. The system user post the notice.
6. Use case ends.
Table 4.18 which shows use case description about add schedule
Identifier UC18
Actor Manager
Basic course of action 1. The system user can open the home page.
2. The system user login into the system.
3. The system user click add schedule page.
4. The system display add schedule form.
5. The System user can full fill the correct
requirement data.
6. The system user add schedule.
7. Use case ends.
Identifier UC19
Actor Passenger
Basic course of action 1. The system user can open the home page..
2. The system user click notice page.
3. The system display the view notice form..
4. Use case ends.
Table 4.20 which shows use case description about send message
Identifier UC20
Basic course of action 1. The system user can open the home page.
2. The system user login into the system.
3. The system user click message page.
4. The system display the message form.
5. The system user write message and then click
send.
6. Use case ends.
Table 4.21 which shows use case description about view message
Identifier UC21
Description System user view message that sent from available user.
Pre-condition None
Basic course of action 1. The system user can open the home page.
2. The system user login into the system.
3. The system user click message page.
4. The system display message form.
5. The system user click inbox and view the
message.
6. Use case ends.
.
Collaborator
Responsibility
Create account
Update account
Delete account
Table 5.2 show the class responsibility of passenger
Passenger<<Actor>>
Frist name Clerk
Last name
Id
Seat number
Register
Reserve ticket
View schedule
View post
Send message
View message
Password
Assign bus
View report
Post notice
Add schedule
Send message
View message
Clerk<<Actor>>
User name
Password Passenger
Id Admin
Manager
Generate report
Print ticket
Cancel reservation
Update reservation
Send message
View message
Login Login
Home Login form <<Database>>
<<Link>> <<controller>>
User
1:open() 2:click()
3:dispaly form()
5:Login() 6:Verify()
4:Enter
password
&username()
7:Try again()
8:continue()
9:Successfully
login ()
pass
1:Open()
2:Click()
3:Display form
()
6:Verify()
4:Fill register
form()
5:Create
account()
8:Register()
7:Try again()
9:Successfully
register()
3:Display form()
6:Verify()
4:Click busid()
5:fill form()
9:Successfully
reserve()
2:Click()
Clerk 1:Open()
3:Display form()
6: Verify()
4:Enter Seat
Number() 5:Click search()
9: Verify()
7:Try again() 8:Continue()
11:click on 10:Display
Delete information()
<<button>>()
12: successfully
deleted
2:Click()
Clerk 1:Open()
3:Display form()
6: Verify()
4:Enter Seat
Number() 5:Click search()
9: Verify()
8:Continue()
7:Try again()
10:Display
information()
11:click on Edit
<<button>>()
12:Continue()
13: successfully
update()
Clerk
1:Open() 2:Click()
3:Display
generate report
form()
5:Click add
report() 6:Verify
4:Fill form()
7:Try again()
8:continue()
9:Successfully
add ()
Clerk 2:Click()
1:open()
3:Display form()
6:Verify()
5:Click search()
8:Print()
4:Fill seat no()
7:Try again()
9: Successfully
print()
Clerk
1:open() 2:Click()
3:Displ ay form()
6:Verify()
4:Fill seat no()
5:Click search()
9:Successfull y
view ()
Manage
r 2:Click()
1:Open()
3:Display form()
6:Verify()
5:Click search()
4:Fill the data()
8:Continue()
7:Try again()
9:Display report
manager
2:Click()
1:open()
9:Store()
10:Sucessfully
assign()
Admin
2:click()
1:open()
3:Display form()
6:Verify()
5:Click Create()
4:Fill the form
()
8:continue()
7:Try again()
9:successfully
create()
2:Click()
Admin
1:Open()
3:Display form()
7:Try again
9:Successfully
display()
Login
Systemuser
Click Login
page
Enter username
and password
Login Canecl
valid
invalid
Register
Click Register
page
Display
Register form
Fill form
invalid
valid
Successfully
Register
Reserve ticket
Display the
form
Fill form
invalid
Cancel
Valid
Successfully
reserve
Logout
Cancel
reservation
Display form
invalid
Cancel
valid
Create
account
Display the
form
Fill form
invalid
Cancel
Valid
Successfully create
Logout
Delete account
Display the
form
Fill form
invalid
Cancel
Valid
Successfully delete
Logout
View pass
information
Fill seat no
Click search
invalid
Cancel
Valid
Successfully view
Logout
View feedback
Login to
manager page
Click view
feedback page
Cancel
Update
reservation
Display form
invalid
Cancel
Valid
Successfully update
Logout
Logout
System user
login
Cancel
Click logout
link
Display home
page
Add schedule
Display form
fill data
invalid
Cancel
Valid
Successfully added
Logout
Bus
*
schedule Manager assign
1
add seat no:varchar
* bus id:varchar
bus id :int 1 uname:varchar Feedback
dname:varchar password:varchar view
date:date
departure id:int 1
* id:int
city:varchar
- assign bus
* ():varchar 1
- view feedback
1
():varchar
1
create account
post Notice Admin
view
give feedback
*
*
date:date 1
1 bus id: 1 name:varchar
* password:varchar
Passenger id:int
create account - create account
1
reserve ():varchar
uname:string Ticket
-delete account
password:string 1 ():varchar
id:int name:varchar *
departurecity: print 1
- view schedule varchar *
():varchar
- reserve arrival city: Clerk
varchar 1 manage account
():varchar
*
view pass info user
*
uname:varchar 1
password:varchar
id:int has account
Account
- generate report 1
1 ():varchar uname:varchar
-view pass info password:varchar
():varchar
HOME
Reserve
ticket
LOGIN
Send
message
PASSENGE
ADMIN MANAGE View
R
R CLERK schedule
3. System Design
3.1 Introduction
System design is to involve converting the description of the proposed system into logical and
then physical design specification. System design is the first part to get the solution domain in a
software development. This chapter focuses on transforming the analysis model into the design
model that describes non-functional requirements and constraints described in the problem
statement and requirement analysis sections discussed earlier.
The purpose of designing is to show the direction how the system is built and to obtain clear and
enough information needed to drive the actual implementation of the system. It is based on
understanding the model the software built on. The objectives of design are to model the system
with high quality. Implementing of high quality system depend on the nature of design created
by the designer. If one wants to change the system after it has been put in to operation depends
on the quality of the system design. So if the system is design effectively, it will be easy to make
changes to it.
Performance: - The system can respond fast with high throughput, i.e. it should
perform the task quickly as possible.
Cost:- The system can be developed with minimum cost possible.
Efficiency:- the system doing something well and thoroughly without waste of
money and time.
Bus
*
schedule Manager assign
1
add seat no:varchar
* bus id:varchar
bus id :int 1 uname:varchar Feedback
dname:varchar password:varchar view
date:date
departure id:int 1
* id:int
city:varchar
- assign bus
* ():varchar 1
- view feedback
1
():varchar
1
create account
post Notice Admin
view
give feedback
*
*
date:date 1
1 bus id: 1 name:varchar
* password:varchar
Passenger id:int
create account - create account
1
reserve ():varchar
uname:string Ticket
-delete account
password:string 1 ():varchar
id:int name:varchar *
departurecity: print 1
- view schedule varchar *
():varchar
- reserve arrival city: Clerk
varchar 1 manage account
():varchar
*
view pass info user
*
uname:varchar 1
password:varchar
id:int has account
Account
- generate report 1
1 ():varchar uname:varchar
-view pass info password:varchar
():varchar
Client
Internet
Web Server
«System»
Selam bus ticket
reservation
«Sub system»
reserve seat «component» «component»
«component» print ticket
view feedback
delete account
«Sub system»
update
reservation
«component»
announce notice
«Sub system»
cancel
reservation
View
Passeng schedule
er
Register
Reserve
ticket
Assign bus
Manager
View
Feedback Persista
nce
Add
schedule
Create
Admin account «Database»
Delete
account
Customer Application
Computer Server Database
HTTP MYSQL Server
Register
Web Reserve
browser
Print
ticket
Generate
Report SBLSC
DB
Create
account
Mozila
fire fox
Assign
bus
View
report
View
Schedule
View
feedback
Persistent information management deals with how the persistent data (file, database, etc) are
stored and managed and it outlives a single execution of the system. Information related selam
bus line share company system view schedule, register, reserve ticket and print ticket and assign
bus information produced and other related information are persistent data and hence stored on a
selam bus company database system. This allows all the programs that operate on the SBLSC
data to do consistently.
Manager Manager
<<Table>>
Fname;varchar
Fname:varchar
Lname:varchar
Lname:varchar
Username:varchar
Username:varchar
password:varchar
password:varchar
Clerk Clerk
<<Table>>
id:int
id:int<<PK>>
Fname:varchar
Fname:varchar
Lname:varchar
Lname:varchar
uname:varchar
uname:varchar
password:varchar
password:varchar
Passenger Passenger
<<Table>>
id:int
id:int<<PK>>
Fname:varchar
Fname:varchar
Lname:varchar
Lname:varchar
uname:varchar
uname:varchar
password:varchar
password:varchar
Busid:int
Busid:int
Admin Admin
<<Table>>
Fname:varchar Fname:varchar
Lname:varchar Lname:varchar
password:varchar password:varchar
Clerk Login
Generate report
View pass information
Print ticket
Update reservation
Delete reservation
Manager Login
Assign bus
View comment
View feedback
View notice
Admin Login
Create account
Delete account
Update account
Client slide
It gives the URL (Uniform Resource Locator) address of the web site.
The user should be legitimate and having an account provided by the system.
The user communicates the different links/pages using the homepage.
Server Side
The server side should be registered on the local or any other service provider.
Have Internet connection and database driven-website for remote access.
It automatically save the changes and take backups.
The user communicates the different links/pages using the homepage.
System will display error message if user tried to access using wrong or
invalid account by checking against the account table.
The system display error messages when the user enter invalid inputs.
Fig
Fig 1.34 Registration UI
4. 1 System Implementation
Implementation is the phase where objectives of physical operations of the system turned into
reality i.e. real working model. The process of converting as new system into an operational one
is known as system implementation. This includes all those activities that take place to convert
from an old system to a new system.
4.1.1 Coding
First phase of implementation is coding. Coding is the process whereby the physical design
specification created by the designers is turned in to working computer code by the programmer.
Modern language that used is Hypertext Preprocessor(PHP).
The code is made simple in such a way that another programmer can easily understand and work
on that in future.
Sample code for login
<?php
session_start();
session_destroy();
$user = "";
$pass = "";
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
include 'sql.php';
$user = $_POST['username'];
$pass = $_POST['password'];
//unwanted HTML (scripting attacks)
$user = html special chars($user);
$pass = html special chars($pass);
session_start();
$_SESSION['username'] = $user;
$_SESSION['Clerk_page'] = "log";
}
}
?>
Sample code for reservation
<script type="text/javascript">
function validation_for_signup() {
var check_Room_Type = /^[\w\.]+@[a-zA-Z_]+?\.[a-zA-Z\.]$/;
var check_priceeb = /^[09]{2}[0-9]{8}$/;
var check_priceus = /^[09]{2}[0-9]{8}$/;
if(document.signup.Room_Type.value=="") {
alert("Please enter Room_Type");
document.signup.Room_Type.focus();
return false;
}
else if(check_Room_Type.test(document.signup.Room_Type.value) == false) {
alert('Please enter the correct format for user name,user name only text!');
document.signup.Room_Type.focus(); return false;
}
if(document.signup.Room_Type.value=="") {
alert("please enter Room_Type"); document.signup.Room_Type.focus();
return false;
}
else if(check_email.test(document.signup.Room_Type.value) == false) {
alert('Please enter a correct Room_Type again!');
document.signup.Room_Type.focus();
return false;
} if(document.signup.password.value=='') {
alert("Please enter Password.");
document.signup.password.focus();
return false;
}
else if(document.signup.password.value.length<6) {
alert("Password is too short.");
function isNumberKey(evt)
{
var charCode = (evt.which) ? evt.which : event.keyCode
if (charCode > 31 && (charCode < 48 || charCode > 57)){
alert("Only number is allwed!")
return false;
}
if(document.bform.phone.value=="")
{
alert("please enter phone number");
document.bform.phone.value="";
document.bform.phone.focus();
return false;
}
var str=document.bform.phone.value;
var valid="0123456789+";
for(i=0;i<str.length;i++)
{
if(valid.indexOf(str.charAt(i))==-1)
{
alert("please insert phone number only number");
document.bform.phone.value="";
document.bform.phone.focus();
return false;
}
}
if(str.length!=10)
{
alert("please enter phone number 10 digit.");
document.bform.phone.focus();
return false;
}
if (str.charAt(0)!="0")
{
alert("phone number should be start with 0");
document.bform.phone.focus();
return false;
}
if (str.charAt(1)!="9")
{
</script>
<html>
<style>
#example1 {
background-color: green;
padding: 30px;
background:#00ffff;
width: 850px;
padding: 25px;
border: 25px solid navy;
margin: 25px;
}
</style>
<body>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
//<input type="image" src="img_submit.gif" alt="Submit" width="48" height="48">
$pest=0;
INCLUDE "connection.php";
session_start();
$busid=$_GET['id'];
$SQL = "SELECT * FROM `seat` where Busid='$busid' order by seatNo asc;";
$result = mysql_query($SQL) or die(mysql_error());
?>
<table>
<?php
$seatCount=0;
while ($db_field = mysql_fetch_array($result)) { //SELECT * FROM `seat` where Busid='5'
order by seatNo asc
?>
<td
style="background-color:
<?php
if($db_field['status']=="oc")
echo "red";
else
echo "green";?>;"
>
<?php echo $db_field['seatNo']; ?>
<img src="image/reserve.png" width="100" height="50"/>
</td>
<?php
if(isset($_POST[$db_field['seatNo']]))
{
$pest=$db_field['seatNo'];
$res=mysql_query("update `seat` set status='oc' where seatNo='$pest';");
}
?>
</td>
<?php if($seatCount==3) echo "</tr>"; $seatCount=0; $seatCount++;//echo
$db_field['seatNo']; ?>
<?php
}
?>
</table>
<div class="modal-body">
<tr>
<td><label style="color:#3a87ad; font-
size:18px;" >Bus Id</label></td>
<tr>
<td><label style="color:#3a87ad; font-
size:18px;">Seat No</label></td>
</table>
<div class="modal-footer">
<!--<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>-->
<button type="submit" name="Submit" class="btn btn-
primary">Add</button><br></br><br></br>
</div>
<div id="example1">
<img src="image/bus1.jpg" alt="Nice car" style="width:20%" alt="ሰሰሰሰ ሰሰ ሰሰሰ ሰሰሰ
ሰሰ"> <img style="margin-left: 20px;border:0px dotted brown;border-top-right-radius:
20px;width: 40%;border-top-left-radius: 20px;width: 100px;"src="image/dove.gif"/>
<p>ሰሰሰሰ ሰሰ ሰሰሰ ሰሰሰ ሰሰ</p>
<h2>Further Information</h2>
<p>When the color is red the set number is reserverd.</p>
<p>When the color is green the set number is not reserverd.</p>
<p>If the passenger can’t pay within 4 hours after he or she reserved the reserved seat is
canceled and replace by others.</p>
</div>
</body>
</html>
4.2 Testing
Final phase of implementation is testing.Testing is a process to show the correctness of the
program. Testing is checking of the system workability in an attempt to discover errors and
avoiding such errors from the system. In this the team members tested the entire system as a
whole with all forms, code, modules. In this we tested all the functionalities in the System.
Enter invalid User name, password “invalid user name and password
and Click Login button Invalid username, password
please try again ”
Name (empty,valid )
Integration testing is the activity of software testing in which individual software modules are
combined and tested as a group. It occurs after unit testing and before acceptance testing.
Acceptance testing is the process of testing system it accepted if the user of the system is
satisfied. In this perspective acceptance testing is widely used to prove that system performs as
per the requirements. In acceptance testing the customers provides the input data to validate the
system operation.
It is the final step of testing process. In this the team members tests the entire system as a whole
with all forms, code, modules. This form of testing is popularly known as Black Box testing or
System tests. In this the team members tests all the functionalities in the System. All errors in the
forms, functions, modules are tested.
5.1 Conclusion
As we described in the chapter one proposal phase the current selam bus line share company uses
manual way ticket reservation system .Due to this the current system has different problem
related with reservation.So the system we developed in the selam bus line share company change
in to the computerized way of ticket reservation. Ingenerally the system can solve the problems
which occur in the current system.it reduce the human error and it can increase efficiency.
5.2 Recommendation
we recommended that Selam bus line share company should use this system wisely to solve its
problems and the online Payment in this project is conceptual or ideal but not function real
online payment. Because, it needs linking with the banking system. This is not implemented in
this stage of our project development.so, researchers who are willing to conduct project in this
area needs to be think about online payment by forming contact with bank system.
5.3 References
[1]https://en.wikipedia.org/wiki/Selam_Bus_Line_Share_Companywww.selambus.com
[2]https://en.wikipedia.org/wiki/Selam_Bus_Line_Share_Company
[4] https://en.wikipedia.org/wiki/PHP
<?php
session_start();
session_destroy();
$user = "";
$pass = "";
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
include 'sql.php';
$user = $_POST['username'];
$pass = $_POST['password'];
//unwanted HTML (scripting attacks)
$user = html special chars($user);
$pass = html special chars($pass);
session_start();
}
}
?>