Sei sulla pagina 1di 18

UNIVERSITY OF COMPUTER STUDIES YANGON

(UCSY)

“ONLINE BUS TICKETS SERVICE PROJECT REPORT”


SUPERVISED BY
Dr. BABY HTUN

SUBMITTED BY UCSY STUDENTS (CREDIT SYSTEM FIRST BATCH)

Id-21418 Ye Min Aung(Leader) Id-21392 San San Yu


Id-21349 Kyi Sin Linn Id-21507 La Min Phwe
Id-21430 Kyaw Khaing Oo Id-21433 Shun Lei Wai Kyaw
Id-21479 Theint Wai Soe Id-21514 May Phu Ei

CONTENTS

I. INTRODUCTION

II. OBJECTIVE

III. SYSTEM REQUIREMENTS

IV. ER DIAGRAM

V. DATA DICTIONARY

VI. DATABASE TABLE

VII. QUARY

VIII. ABSTRACT FOR ONLIE BUS TICKETS SERVICES

IX. CONCLUSION
I. INTRODUCTION
Online Bus Ticket System is a cloud base software to automate
the online ticket purchasing through on easy to use online bus booking
system. This system reduces the due process and increases the booking
process. Customers can book their desired seats for various routes and
destinations just using internet and social media with the system in term
of going to office and station. They can check the availability of posts on
specific date and can also check book ticket, or cancel ticket for 24/7 as
the system use anytime. Payment can be accepted by credit card,
mobile payment. Managing buses, employees and salary would be so
comfortable. It is a safe and secure system that decreases the human
efforts and increases customer satisfaction.

II. OBJECTIVE
The objective of this system
 On online app including purchases and payment
 Reduce waste time and money
 Search information about the bus cycle life
 Support the customer self-service
 Provide that best meet to customer choice as they can choose themselves
 Available for reservation for 24/7
 Provide safety and credible service
The Limitation of this system
 Need to use internet as it is on online app
 Need a social media(computer or phone to accept this system)
III. SYSTEM REQUIREMENTS

SOFTWARE REQUIREMENTS

Name of Components Specifications

Operation System Windows 7,10, Linux, Mac,


Ubuntu
Language Java Servlet
Database MySQL Server
Browser any
Web Server Apache Tomcat
Software Development Kit JDK
Scripting Language JSP

HARDWARE REQUIREMENTS

Name of Components Specification

Processor Platinum 90MHz


RAM 128MB
Media CD-ROM, 2x or higher
Graphic Hardware None
CPU Platinum 90MHz or Higher
Monitor 15” color monitor
V. DATA DICTONARY

Table Attributes Type Require PK/FK FK Reference


s (primar Table
y key/
foreign
key)
customer customer_id varchar(30 yes PRI
customer_nam )
e varchar(30
address )
contact_phone varchar(30
)
varchar(20
)
agency agency_name varchar(20
operator_id ) FK Bus_operator
varchar(20 s
)

bus_operator operator_id varchar(20 PRI


s operator_name )
no_of_bus varchar(30
contact_phone )
founder_date varchar(20
)
varchar(20
)
date
bus bus_no varchar(10 PRI
operator_id ) FK Bus_operator
bus_category varchar(20 s
price )
descriptions varchar(30
)
double
varchar(50
)
booking booking_id varchar(10 PRI
customer_id ) FK Customer
operator_id varchar(30 FK Bus_operator
bus_no ) FK bus
booking_date varchar(20
leavinyg_from )
going_to varchar(10
departure_date )
seat_quantiy date
nationality varchar(20
)
varchar(20
)
date
int(11)
varchar(20
)
payments payment_id varchar(20 PRI
customer_id ) FK Customer
operator_id varchar(30 FK Bus_operator
paydate )
credit_no varchar(20
amount )
date
varchar(10
)
double
Transactions operator_id varchar(20 PRI Bus_operator
bus_no ) PRI s
depature_time varchar(10 bus
seat_quantity )
available_date time
int(11)
date

VI. DATABASE TABLES

 CUSTOMER

Customer_id customer_name address contact_phone

C01 Shun Lei Taunggyi 09768723587

C02 San Yu Pyay 09796416527

C03 Ko Khaing G Mandalay 09423556785

C04 Dr. Ye Gwa 09947238948

 BUS OPERATOR
Operator_id Operator_name No_of_bus Contact_phone Founder_date
OD01 Elite 3 01663472 2.2.2005
OD02 JJ 2 01637343 26.4.2003
OD03 Shwe ManThu 2 01932622 14.2.2004
OD04 Mandalar Min 3 01372486 21.8.2006

 AGENCY

Agency_name Operator_id
OD01
OD02
THY
OD03
OD04
OD01
OD02
KYI
OD03
OD04
OD01
OD02
SAN
OD03
OD04

 BUS

Bus_no Operator_id Bus_category Price descriptions


B102020 OD01 VIP 23000 Ygn to Mdy
B202020 OD01 Standard 13500 Ygn to Mdy
B302020 OD01 VIP 23000 Ygn to POL
B402020 OD02 VIP Scania 23000 Ygn to POL
B502020 OD02 Scania Touring 11000 Ygn to NPT
B602020 OD03 Standard 4000 Ygn to PTN
B702020 OD03 Standard 4000 Ygn to PTN
B802020 OD04 Standard-Higer 7500 Ygn to MLM
B902020 OD04 Standard-Scania 7000 Ygn to MLM
B102020 OD04 VIP-Higher 12000 Ygn to MLM

 BOOKING

bookin custom operat bus_n booking leaving_ going departure seat_qu Bus_cat
g_id er_id or_id o _date from _to _date antiy egory

T01 C01 OD01 B102 3.3.2020 Yangon Mand 5.3.2020 2 VIP


020, alay
T02 C02 OD02 B402 4.3.2020 Yangon Pyin 5.3.2020 1 VIP
020 Oo
Lwin
T03 C03 OD03 B802 4.3.2020 Yangon Maw 6.3.2020 1 Standar
020 LaMyi d-Higer
ne
T04 C04 OD04 B602 2.3.2020 Yangon Pathei 6.3.2020 2 Standar
020 n d

 Payments

payment_id customer_id operator_id paydate credit_no amount


P01 C01 OD01 3.3.2020 123534668 50000
P02 C02 OD02 4.3.2020 532456354 23000
P03 CO3 OD03 4.3.2020 864136565 7500
P04 CO4 OD04 5.3.2020 893565654 8000

 Transactions

operator_id bus_no depature_time seat_quantity available_date


OD01 B102020 20:15 PM 2 5.3.2020
OD02 B402020 20:15 PM 1 5.3.2020
OD03 B802020 8:00 AM 1 6.3.2020
OD04 B602020 18:30 PM 2 6.3.2020

VII. QUARY

1) Create Table Customer & insert data.

create table Customer

(customer_id varchar(30) Primary key,

customer_name varchar(30),

address varchar(30),

contact_phone varchar(20));

mysql > insert into Customer(customer_id,customer_name,address,contact_phone) values


("C01","Shun Lei","Taunggyi","09768723587");

mysql > insert into Customer(customer_id,customer_name,address,contact_phone) values


("C02","San Yu","Pyay","09796416527");
mysql > insert into Customer(customer_id,customer_name,address,contact_phone) values
("C03","Ko Khaing G","Mandalay","09423556785");

mysql > insert into Customer(customer_id,customer_name,address,contact_phone) values


("C04","Dr.Ye","Gwa","09947238948");

2) Create bus operators table and insert data.

create table Bus_Operators

(operator_id varchar(20) Primary key,

operator_name varchar(30),

no_of_bus varchar(20),

contact_phone varchar(20),

founder_date date);

insert into Bus_Operators values("OD01","Elite",3,01663472,’2005-2-2’);

insert into Bus_Operators values("OD02","JJ",2,01637343,’2003-4-26’);

insert into Bus_Operators values("OD03","Shwe ManThu",2,01932622,’2004-2-14’);

insert into Bus_Operators values("OD04","Mandalar Min",3,01372486,’2006-8-21’);


3) Create table Agency and insert data.
create table Agency
(agency_name varchar(20),
operator_id varchar(20) Primary key,
joined_date date,
foreign key(operator_id)references bus_operators(operator_id));

insert into agency values('THY', 'OD01');


insert into agency values('THY', 'OD02');
insert into agency values('THY', 'OD03');
insert into agency values('THY', 'OD04');
insert into agency values('KYI', 'OD01');
insert into agency values('KYI', 'OD02');
insert into agency values('KYI', 'OD03');
insert into agency values('KYI', 'OD04');
insert into agency values('SAN', 'OD01');
insert into agency values('SAN', 'OD02');
insert into agency values('SAN', 'OD03');
insert into agency values('SAN', 'OD04');
4) Create table bus and insert data.
create table Bus
(bus_no varchar(10),
operator_id varchar(20),
bus_category varchar(30),
price double,
descriptions varchar(50),
primary key(bus_no,operator_id),
foreign key(operator_id) references bus_operators(operator_id));

Insert into bus values


('B102020','OD01','VIP',23000,'Ygn to Mdy'),
('B202020','OD01','Standard',13500,'Ygn to Mdy'),
('B302020','OD01','VIP',23000,'Ygn to POL'),
('B402020','OD02','VIP Scania',23000,'Ygn to POL'),
('B502020','OD02','Scania Touring',11000,'Ygn to NPT'),
('B602020','OD03','Standard',4000,'Ygn to PTN'),
('B702020','OD03','Standard',4000,'Ygn to PTN'),
('B802020','OD04','Standard-Higher',7500,'Ygn to MLM'),
('B902020','OD04','Standard-Scania',7000,'Ygn to MLM');
foreign key(operator_id) references bus_operators(operator_id));
5) Create table transactions and insert data.
create table Transactions
(operator_id varchar(20),
bus_no varchar(10),
depature_time time,
seat_quantity int,
available_date date,
Primary key(operator_id,bus_no),
foreign key(operator_id)references bus_operators(operator_id),
foreign key(bus_no)references bus(bus_no));

insert into transactions values('OD01','B102020','20:15:00',2,'2020-3-5');


insert into transactions values('OD02','B402020','20:15:00',1,'2020-3-5');
insert into transactions values('OD03','B802020','8:00',1,'2020-3-6');
insert into transactions values('OD04','B602020','18:30:00',2,'2020-3-6');

6) Create table booking and insert data.


create table Booking
(booking_id varchar(10),
customer_id varchar(30),
operator_id varchar(20),
bus_no varchar(10),
booking_date date,
leaving_from varchar(20),
going_to varchar (20),
departure_date date,
seat_quantiy int,
bus_category varchar(20),
primary key(booking_id,customer_id,operator_id,bus_no),
foreign key(customer_id)references customer(customer_id),
foreign key(operator_id)references bus_operators(operator_id),
foreign key(bus_no)references bus(bus_no));

insert into Booking values('T01','C01','OD01','B102020',’2020-3-3’,'Yangon','Mandalay',’2020-5-


3’,2,'VIP');

insert into Booking values('T02','C02','OD02','B402020',’2020-3-4’,'Yangon','Pyin Oo Lwin',’2020-


3-5’,1,'VIP');

insert into Booking values('T03','C03','OD03','B802020',’2020-3-4’,'Yangon','Maw


LaMyine',’2020-3-6’,1,'Standard-Higer');

insert into Booking values('T04','C04','OD04','B602020',’2020-3-2’,'Yangon','Pathein',’2020-3-


6’,2,'Standard');

7) Create payments table and insert data.


create table Payments
(payment_id varchar(20),
customer_id varchar(30),
operator_id varchar(20),
paydate date,
credit_no varchar(10),
amount double,
primary key(payment_id,customer_id,operator_id),
foreign key(customer_id)references customer(customer_id),
foreign key(operator_id)references bus_operators(operator_id));
Insert into payments values
('P01','C01','OD01','2020-3-3','123534668',50000),
('P02','C02','OD02','2020-3-4','532456354',23000),
('P03','C03','OD03','2020-3-4','864136565',7500),
('P04','C04','OD04','2020-3-5','893565654',8000);

8) Get bus no and bus category of buses which are leaving from Yangon to Mandalay.
Mysql> select bus.bus_no,bus_category from bus, booking b where bus.bus_no=b.bus_no and
leaving_from='Yangon' and going_to='Mandalay';

9) Get all information where every name start with S.


select*from agency where agency name like 's%';

10) Change the address of customer ‘Gwa’ to ‘Yangon’.


update customer set address='Yangon' where address='Gwa';

11) Get address of customer ‘C01’.

select address from customer where customer_id='C01';

12) Add a new customer.


insert into customer values('C05','Aye Kyi','Yangon','09769446851');
13) Double the price of bus.

update bus set price=price*2 where bus_no='B602020';

VIII. Conclusion
Our database system is mainly purposed for user-friendly interface. We let
our customers' destination priority. Our service is to show suitable and the most
convenient bus, including all the information; departure time, seat quantities, etc.
The above process is shown by agency. The agency will have to take all user
requests, checking out all the available conditions to return the most suitable
data to our customers. If customers found the right bus, they have to pass our
payment system. The system will collect credit numbers, customers ID and the
amount of price of the chosen bus.

Potrebbero piacerti anche