Ooad Lab Record
Ooad Lab Record
EXPERIMENT
PAGE
No.
29
51
72
92
S. No.
DATE
INTERNAL MARKS
MARKS
O
STAFF- INCHARGE
SIGN.
AIM:
To study about the Rational Rose Software and UML Diagrams.
CHARACTERISTICS OF CASE:
Some of the characteristics of case tools that make it better than
customized development are;
Its a graphic oriented tool.
It supports decomposition of process.
Some typical CASE Tools are:
Unified Modeling Language
2
1.CLASS DIAGRAM
A class diagram is a collection of static modeling elements, such as
classes and relationship connected as a graph to each other and the
contents.
The classes are drawn as a rectangular with three components separated
by horizontal lines.
The top components contain class name, middle contains
The top components contain class name, middle contains attributes button
contains the list of operations.
Class
NewClass
Package
NewPackage2
2.USE CASE
DIAGRAM:
A use case diagram is a graph of actors a set of use case enclosed by system
boundaries, communication, association between the actors and the use
case and generalized among the use case.
The functionality of a system is described in a number of different use cases
each of which represents a specific flow of events in the system.
Scenario
NewUseCase
Actor
NewCl ass4
Package
NewPackage4
Link
3.SEQUENCE DIAGRAM
A sequence diagram shows an interaction arrangement in a time sequence.
The horizontal line represents the objects.
The vertical line represents the object life time, which is the objects existing
during the interaction
A object is shown as a box at the top of clashed verticals lines.
line
Message line
4.COLLABORATION DIAGRAM:
A collaboration diagram represents a collaboration which is a set of objects
related in a particular context and interacting, which is a set of messages
exchanged among the objects within the collaboration to achieve outcome.
The sequence is indicated by numbering the message.
5.ACTIVITY DIAGRAM:
AN Activity diagram is a variation or special case of state machine.
The purpose of activity diagram is to provide a view of flow and what is going
on inside of use case (or) among several use cases.
It is similar to a state chart diagram, where a token represents and operations.
An activity is shown as a round box containing, the name of operation.
Decision
End point
Link
RESULT:
Thus the case study of Rational Rose Software and Unified Modeling Language was
completed successfully.
AIM :
To develop a system that can perform exam registration.
PROBLEM STATEMENT:
To create an Exam registration software that will meet the needs of the
applicant and help them in registering for the exam ,enquiry about the registered
subject ,modification in database and cancellation for the registered project.
1. INTRODUCTION:
The main aim of this project is to automate registering student details,
maintaining the student detail, retrieving student details, retrieving specific
details when necessary, security from unauthorized access ,functionalities such
as insert, delete, update etc., issuing the hall ticket.
1.1. Purpose:
The main purpose of the system is to issue hall ticket immediately after
registering their details. Administrator will issue hall ticket only if the student
has paid the fee.
1.2. Scope of the Product:
The mainly focuses for the understanding of the various users who are
going to use this software and best way to make the software behave in a
normal manner and user friendly.
It checks out to see if the fee is paid based on which to check out if the
hall ticket has already been issued.
1.3. References:
IEEE SRS Format.
1.4. Overview:
The
Hall ticket issuing is done based on the details regarding payment of fees.
The user will register with the system by providing personal information
such as name, date of birth, gender, subject and its code and registration
number.
2.GENERAL DESCRIPTION:
2.1 Context of the Product:
Exam Registration system gives you managing the flexibility of
registering for exam by enrolling the personal details which are required by
administrator and finally simple click for hall ticket generation.
User profile shall include personal details and register number. The
student has to login before any processing is to be done.
2.2 Product Functions:
Module 1:
It is login form in which both user and administrator has to enter username and
password to enter into exam registration.
Module 2:
Student can enter in to register their details and in same form the admin can
enter to manage the student database and retrieve it.
Module 3:
If student registers after the payment of fees into exam registration system
administrator will issue hall ticket, if else not.
Module 4:
It is the form where the admin maintain the student database to insert, delete,
and update. The complete data of the student can otherwise be viewed in grid
form.
2.3 User Characteristics:
2.3.1 End Users
End user should have basic idea about computer operations and database.
2.3.2 Administrator
If the network connection does not work properly than our system should
not work as intended. Also that is assumed that the product is installed
properly at web server.
This system will not take care of any virus problem, which might occur
either on the client or the server system. Avoiding the use of pirated
software and ensuring that floppies and other removable media are
scanned for viruses before use could minimize the possibility of viral
infection.
Recovery of data after a system crash will be possible only if backups are
taken at regular intervals.
2.4 Assumptions:
3.SPECIFIC REQUIREMENTS:
3.1 External Interface Requirements:
Describes the user interface characteristics
-user opens the main page which displays option such as register or cancel.
-Each option is linked to another page where user details and fees payment
details are updated.
-The monitor displays the project.
9
-The mouse and/or keyboard are used for data entry and/or to make selections.
3.1.1 User Interface
Keyboard, Mouse
3.1.2 Hardware Requirements:
1.128 MB RAM
2. Pentium III processor
3.1.3 Software Interface
Front End: Microsoft visual studio 2008
Back End: MS Access
Another one is Rational Rose software.
3.2 Functional Requirements
The different steps followed in using the project by the user is
described in this section.
Login:
The user enters the username and password and chooses if the user is
student or administrator .If entered details are valid, hall ticket will be issued by
checking fees payment details .If it is invalid, an appropriate message is
displayed to the user.
Update User Details:
User details can be updated by administrator if required such as fees
payment details, address or phone number etc..
Add User:
Only the administrator has access to this use-case. The administrator has
to provide the details of the user to register. If the user added already exists,
then an appropriate message is displayed.
3.3. Performance Requirements:
The project is designed for over user at a time. The number of page will
be more or less10.The navigation from one page to another takes place, within
10
fraction of seconds. Since the data is stored in database, huge amount of data
can be accessed and data storage is possible.
3.4. Quality Requirements:
This section decreases issues related to security and safety of the product
3.5. Security:
There would be some risks of details of any user is gone out. Therefore
each user is provided with username and password using which they can access
their own details. The product is password protected.
3.6. Safety:
The user must logout before closing the project to prevent malicious
access or destruction.
4. CONCLUSION
Future Enhancement:
The project can be upgraded to make it as an international accessing of
exam registration details project, so that users can be accessed easily and
effectively.
11
12
Assumptions:
The id generated to the enrolled candidates is unique.
The user has basic knowledge about working of computers and gives
appropriate data for the required fields.
13
14
CLASS DIAGRAM:
15
ACTIVITY DIAGRAM :
16
SEQUENCE DIAGRAM :
COLLABORATION DIAGRAM:
17
COMPONENT DIAGRAM:
DEPLOYMENT DIAGRAM:
18
IMPLEMENTATIONvbb
FORM1: STUDENT LOGIN
Imports System.Data.OleDb
Public Class Form1
Dim conn As New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=C:\Documents and Settings\User\My Documents\Database1.accdb")
Dim cmd As New OleDbCommand
Dim res As OleDbDataReader
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim count As Integer
conn.Open()
cmd = New OleDbCommand("select * from login", conn)
res = cmd.ExecuteReader()
count = 0
While (res.Read)
If TextBox1.Text = res.GetValue(0).ToString And TextBox2.Text =
res.GetValue(1).ToString() Then
count += 1
19
End If
End While
If count = 1 Then
MessageBox.Show("login successful")
Form2.Show()
Else
MessageBox.Show("enter correct user and pasword")
End If
conn.Close()
End sub
FORM2: REGISTRATION FORM
Imports System.Data.OleDb
Public Class Form2
Dim con As New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=C:\Documents and Settings\User\My Documents\Database1.accdb")
Dim cmd As New OleDbCommand
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
con.Open()
cmd = New OleDbCommand("insert into student values(' " &
TextBox1.Text & " ', ' " & TextBox2.Text & " ', ' " & TextBox3.Text & " '," &
TextBox4.Text & ",' " & TextBox5.Text & " ', " & TextBox6.Text & " ) ", con)
cmd.ExecuteNonQuery()
MessageBox.Show("inserted")
con.Close()
Form1.Show()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Form1.Show()
Me.Hide()
End Sub
FORM 1: ADMIN LOGIN
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
conn.Open()
20
End Sub
Private Sub ListBox1_MouseClick(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseClick
Dim s1 As String
Dim j As Integer
Dim count As Integer
s1 = ListBox1.SelectedItem
conn.Open()
da = New OleDbDataAdapter("select * from userdetails where SNAME =
'" & s1 & "' ", conn)
dt2 = New DataTable
da.Fill(dt2)
conn.Close()
conn.Open()
da = New OleDbDataAdapter("select * from student where stname = '" &
s1 & "' ", conn)
dt = New DataTable
da.Fill(dt)
conn.Close()
count = 0
For j = 0 To 5
If dt2.Rows(0).Item(j) = dt.Rows(0).Item(j) Then
count += 1
End If
Next j
MessageBox.Show("valid user")
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
conn.Open()
da = New OleDbDataAdapter("select * from student where stname = 'a' ",
conn)
dt = New DataTable
da.Fill(dt)
conn.Close()
End Sub
End Class
22
23
24
25
ADMIN TABLE:
RESULT :
Thus the Exam Registration System project was
executed successfully.
27
customer.
Analysis:
The stock manager analysis the stocks. He identifies the
old stocks and the expired goods and also the list of items
needed.
Old stock clearance:
The stock manager clears the old stock goods by selling
it at a offer price.
Order List Preparation:
The stock manager prepares the list of items to be
bought. Then he calls the company for quotations.
Quotation:
The stock manager calls the company for quotations.
After receiving the quotations from the company, the stock
manager chooses the quotation.
Purchase: The stock manager purchases the needed goods
from the corresponding company in which the quotations are
selected.
Payment:
The stock manager pays the bills along with the tax and
the goods are delivered by the company manager.
2.2 User characteristics:
The new user can be add to this application by entering
the name, address, phone, email etc. Only the administrator
can modify the list of user details and also the administrator
can remove the unwanted user. If anyone wants to login then
firstly, the user has to create a module.
3. SPECIFIC REQUIREMENTS:
3.1. Hardware Requirements:
Processor Intel Pentium IV-2.0 GHZ.
Hard disk 40 GB.
RAM 512MB
DVD RAM 1 nos.
3.2. Software Requirements:
OS windows XP/vista.
30
work structure of the project. Some Gantt charts also show the
dependency (i.e., precedence network) relationships between
activities.
Assumptions:
The assumptions for the stock management are as follows:
33
34
USECASE DIAGRAM:
logging
logs in
update inventory
inventory manager
order processing
clerk
item unavailability
demands item from stock
check inventory status
process order
produce stock summary report
billing
deposit money
CLASS DIAGRAM:
35
inventory
item_name
in_stock_quantity
total_sale
price
list of_vendors
vendor_address
vendor_phone
purchase_pending_items
order
Order No
deliverydate
orderedBy
totalamount
update_inventory()
check_status()
purchase_items()
make_bills()
remove_items()
generate_stocksummary_report()
process_order()
item
name
brand
quantity
price
accountant
name
password
payment
amount
cash payment
check_availability()
make_bills()
makes_payment()
deposit_money()
credit card
payment
STATECHART DIAGRAM:
log out
ACTIVITY DIAGRAM:
36
Search for
item
Update Stock
Purchase
items
Process Bill
purchase
order
verity of order
invalid
valid
payment
deliver
items
SEQUENCE DIAGRAM:
37
/order
/inventory
manager
/stock maintenance
system
/stock database
1:logs in()
2:validate()
3:send validity
9:process order()
10:update()
11:update database()
/accountant
12:generate bill()
13:send billing()
14:logs out()
COLLABORATION DIAGRAM:
38
4:demand item()
1: logs in()
5: check status() 2:validate()
8: process order()
13:logs out()
/inventory
manager
send status()
11:generate bill()
11:
2:
/order
7: send availability()
6: checking availability()
9: update()
/accountan
t
/stock
database
PACKAGE DIAGRAM:
update inventory
login
order
purchase
COMPONENT DIAGRAM:
39
login
update
inventory
payment
make bills
cash
payment
credit card
payment
IMPLEMENTATION:
40
purchase
order
FORM1-LOGIN:
Public Class Form1
Dim conn As New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Da
ta Source=C:\Documents and Settings\user\My
Documents\stock.accdb")
Dim cmd As New OleDbCommand("", conn)
Dim res As OleDbDataReader
Private Sub Label1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Label1.Click
End Sub
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Dim count As Integer
conn.Open()
cmd = New OleDbCommand("select * from manager",
conn)
res = cmd.ExecuteReader
count = 0
While (res.Read)
If TextBox1.Text = res.GetValue(0).ToString() And
TextBox2.Text = res.GetValue(1).ToString() Then
count += 1
End If
End While
conn.Close()
If count = 1 Then
MessageBox.Show("valid user")
Form2.Show()
Else
MessageBox.Show("Enter correct user name & pwd")
End If
End Sub
41
FORM2-WELCOME:
Public Class Form2
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Form3.Show()
Me.Close()
End Sub
End Class
FORM3-PURCHASE&STOCK VERIFICATION:
Public Class Form3
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Form4.Show()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button2.Click
Form4.Show()
End Sub
End Class
FORM4-LIST OF PRODUCTS:
Public Class Form4
Private Sub Form4_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
ComboBox1.Items.Add("stationary")
ComboBox1.Items.Add("dress")
ComboBox1.Items.Add("jewellery")
End Sub
Private Sub ComboBox1_SelectedIndexChanged(ByVal
sender As System.Object, ByVal e As System.EventArgs)
Handles ComboBox1.SelectedIndexChanged
End Sub
42
ComboBox1.Items.Add("churidhar")
ComboBox1.Items.Add("sarees")
End If
If Form4.TextBox1.Text = "c" Then
ComboBox1.Items.Add("earing")
ComboBox1.Items.Add("ring")
End If
End sub
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Dim i As New Integer
Dim s As String
If Form4.TextBox1.Text = "a" Then
s = ComboBox2.SelectedItem
conn.Open()
da = New OleDbDataAdapter("select Quantity from
stationary where ptype='" & s & "' ", conn)
dt = New DataTable
da.Fill(dt)
i = dt.Rows(0).Item(0)
i = i - Val(TextBox1.Text)
conn.Close()
conn.Open()
cmd.CommandText = "update stationary set Quantity =
' " & i & " ' where ptype = '" & s & "' "
cmd.ExecuteNonQuery()
MessageBox.Show("Quantity Updated")
conn.Close()
Me.Close()
End If
If Form4.TextBox1.Text = "b" Then
s = ComboBox2.SelectedItem
conn.Open()
da = New OleDbDataAdapter("select Quantity from
dress where ptype='" & s & "' ", conn)
44
45
End Class
OUTPUT FORMS
47
48
49
INVENTORY DATABASE
RESULT :
Thus the Stock Maintenance System project was
executed successfully.
50
Once they reach the limit they have to repay the amount
received as credit along with its interest to the respective
bank.
The account entries and the credit management are done by
the administrator.
1.3. References:
IEEE SRS Format.
1.4. Overview:
This document covers the overall description of what credit
card processing system project is expected to perform.
The project aims at customers and pays for their
requirements, records the credit details, customers pays it
back once the credit is over the limit.
2.GENERAL DESCRIPTION:
This section gives a high level description of the project
and set forth its user requirements. In actual, it provides
background for the requirements.
2.1 Context of the product:
The project is a small subsection of a banking system.
The project aims to reduce the instant payment of cash for any kind
of purchase (within a limit) by making the bank services as
customer friendly.
2.2 Product functions:
Module 1:
Login: The credit card number is entered and is verified by the
authorizer whether the card is accessible or not.
Module 2:
In the transaction form the account number of the
merchant and the amount to be transacted must also submitted.
52
Module 3:
The next process is if the amount to be credited is
within the main balance the process is done and the product is
received by the user.
Storage:
The details entered by the authorizer are stored in
different fields in the database.
2.3 User characteristics:
2.3.1 End Users
2.3.2 Administrator
2.4 Assumptions:
3.SPECIFIC REQUIREMENTS:
This section provides technical information about the
product that will be needed to design the software.
3.1 External Interface Requirements:
Describes the user interface characteristics
-user opens the main page which displays option such as
register or cancel.
-Each option is linked to another page where user details and
fees payment details are updated.
-The monitor displays the project.
-The mouse and/or keyboard are used for data entry and/or to
make selections.
3.2. User interface:
Card swapping machine, PC.
3.2.1Hardware interface:
1.128 MB RAM
2. Pentium III processor
3.2.2 Software Interface
54
provided with username and password using which they can access
their own details. The product is password protected.
4 CONCLUSION:
Future Enhancement:
The project can be upgraded to make it as a self
accessing method, so that users can be accessed easily and
effectively.
56
Assumptions:
The card number and pin number generated to the
enrolled customer is unique.
57
58
swipe
purchase
Merchant
customer
credit card
sumbits request
Acquirer bank
sends request to authorize the
transcation
Card issuer
CLASS DIAGRAM:
59
Transaction
customer
name
account number
address
card number
bank balance
phone number
card network
card swiper
card
name
account number
address
bank balance
phone number
card number
number
card swiper()
read card()
retain card()
card()
get card number()
customer()
get card number()
get balance()
1
card number
account number
transaction state
time : date time
message
bank name
merchant
transaction()
create transaction()
perfom transaction()
get message from bank()
complete transaction()
merchant()
get account number()
*
account
account number
bank name
balance amount
account()
get account number()
get balance amount()
1..*
credit
displays
message log
message log()
display log()
60
debit
balance enquiry
amount
amount
account number
credit()
get message from bank()
complete transaction()
debit()
get message from bank()
complete transaction()
balance enquiry()
get message from ban
complete transaction()
Card holder
Merchant
Swipe the card
start
start
Card holder
Acqurier
Merchant
Card Issuer
Acqurier
Card
validated
Card Issuer
Authoriztion code
sent to acqurier
card holder
is billed
validity
no
stop
yes
Authoriztion code
sent to acqurier
ACTIVITY DIAGRAM:
card holder
is billed
61
stop
SEQUENCE DIAGRAM:
62
Customer
Merchant
Acqurier bank
issuer
request purchase
Swipe and return
sumbits request
request for authorization
authorize transcation
receive product
request payement
funding
pays to merchant
COLLABORATION DIAGRAM:
63
issuer
5: authorization code sent
10: funding
3: sumbits request
8: batches the sales
12: card holder is billed
6: authorize transcation
11: pays to merchant
2: Swipe and return
7: receive product
Merchant
Customer
1: request purchase
13:
COMPONENT DIAGRAM:
user
interface
Credit card
system
Bank
system
uses
card swiper
customer
accoun...
card is suer
PACKAGE DIAGRAM:
64
bank
database
merchant
submit details
bank db
issues product
to customer.
IMPLEMENTATION
Welcome form
65
66
67
Dim d As Integer
a = dt.Rows(0).Item(6)
c = bm.Rows(0).Item(3)
If Val(TextBox1.Text) <= a Then
b = a - Val(TextBox1.Text)
MessageBox.Show("Amount to be transacted is with in the
available balance")
Else
MessageBox.Show("Credit amt is too low to make a
transaction")
End If
con.Close()
con.Open()
cmd = New OleDbCommand("update customer set
TotalBalance = " & b & " where creditcardno= " &
TextBox2.Text & " ", con)
cmd.ExecuteNonQuery()
MessageBox.Show("updated")
con.Close()
con.Open()
d = c + Val(TextBox1.Text)
MessageBox.Show("Amt is debited")
cmd = New OleDbCommand("update merchants set
CurrentBalance = " & d & " where Accountnumber= " &
TextBox3.Text & " ", con)
cmd.ExecuteNonQuery()
con.Close()
End Sub
End Class
69
OUTPUT FORMS:
70
71
MERCHANTS DATABASE:
72
RESULT :
Thus the Credit Card Processing System project was
executed successfully.
E-Reader-Ebook reader
1.5 References:
IEEE SRS Format.
2. GENERAL DESCRIPTION:
2.1 Product Functions :
Login:
The login is used for security of the customer. The
customer logs in with the user name and the password of the
customer.
Analysis:
The eBooks manager analysis the books. He identifies
the books and keeps track of the books currently read by the
user and also the list of books needed by the customer.
Old book clearance:
The e-book manager clears the old books by selling it at
a offer price.
Order List Preparation:
The e-book manager prepares the list of items to be
bought. Then he calls the company for quotations.
Purchase:
The e-book manager purchases the needed books from
the corresponding websites.
Payment:
The customer pays the bill along with the tax and the
books are delivered.
2.2 User Characteristics:
2.2.1 End User:
75
Functional Requirements:
Register - Enter details in application form.
Login - Enter Username and Password.
Search - Search book by attribute.
Buy - Download softcopies and order for hard copy.
Payment - Pay for books in different method.
76
3.4.1
Performance Requirement:
77
4. CONCLUSION:
Future Enhancement:
The project can be upgraded to make it as an
international accessing of e-book maintenance system that
owner/ manager can access easily and effectively from
anywhere.
78
79
Assumptions:
80
USE-CASE DIAGRAM:
81
registration
authorization
search books
user
administrator
get books
<<extend>>
payment
cash
credit
help
CLASS DIAGRAM:
82
books
customer
operating system
computer architecture
dbms
web technology
ooad
name
address
cont no
login()
payment()
select()
buy()
database
operation
store()
Login
Search
Books
ACTIVITY DIAGRAM :
83
View/
Purchase
Logout
s tart
register
login
invalid,id or pas s word
check availability of
book
s earch another book
available
buy book
end
SEQUENCE DIAGRAM :
84
Request to Buy
the book
Request for registration
system
Database
Registration form
Request to buy
Update
COLLABORATION DIAGRAM:
85
16: Update
15: Show the message (your book will delivered soon)
Database
COMPONENT DIAGRAM:
e book homepage
registeration
form
updation
form
login
form
search
form
ordering
form
86
payment
form
DEPLOYMENT DIAGRAM:
e book management
payment
select
book
IMPLEMENTATION
FORM1:
Imports System.Data.OleDb
Public Class Form1
Dim i As Integer
Dim con As New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Da
ta Source=E:\suganya\ooadebook.accdb")
Dim cmd As New OleDbCommand("", con)
Private Sub Label3_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Label3.Click
End Sub
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button2.Click
87
con.Open()
cmd.CommandText = "insert into register values('"
& TextBox1.Text & "','" & TextBox2.Text & "'," &
TextBox3.Text & ",'" & TextBox4.Text & "','" &
ComboBox1.Text & "','" & TextBox5.Text & "')"
cmd.ExecuteNonQuery()
MessageBox.Show("inserted")
con.Close()
Form2.Show()
Me.Hide()
End Sub
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
TextBox1.Text = ""
TextBox2.Text = ""
TextBox3.Text = ""
TextBox4.Text = ""
TextBox5.Text = ""
ComboBox1.Text = ""
End Sub
Private Sub
ComboBox1_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ComboBox1.SelectedIndexChanged
End Sub
End Class
88
FORM2:
Imports System.Data.OleDb
Public Class Form2
Dim con As New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Da
ta Source=E:\suganya\ooadebook.accdb")
Dim cmd As New OleDbCommand("", con)
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button2.Click
TextBox1.Text = ""
TextBox2.Text = ""
End Sub
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
con.Open()
cmd.CommandText = "insert into login values('" &
TextBox1.Text & "','" & TextBox2.Text & "')"
cmd.ExecuteNonQuery()
MessageBox.Show("inserted")
con.Close()
Form3.Show()
Me.Hide()
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
TextBox1.TextChanged
89
End Sub
End Class
FORM3:
Imports System.Data.OleDb
Public Class Form3
Dim i As Integer
Dim con As New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Da
ta Source=E:\suganya\ooadebook.accdb")
Dim cmd As New OleDbCommand("", con)
Private Sub Form3_Load(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
ComboBox1.Text = ""
TextBox1.Text = ""
TextBox2.Text = ""
End Sub
Private Sub TextBox1_TextChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
TextBox1.TextChanged, TextBox2.TextChanged
End Sub
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button2.Click
90
con.Open()
cmd.CommandText = "insert into search values('"
& ComboBox1.Text & "','" & TextBox1.Text & "','" &
TextBox2.Text & "')"
cmd.ExecuteNonQuery()
MessageBox.Show("inserted")
con.Close()
Form4.Show()
Me.Hide()
End Sub
Private Sub
ComboBox1_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ComboBox1.SelectedIndexChanged
End Sub
End Class
FORM4:
Imports System.Data.OleDb
Public Class Form4
Dim i As Integer
Dim con As New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Da
ta Source=E:\suganya\ooadebook.accdb")
Dim cmd As New OleDbCommand("", con)
End Sub
Private Sub Button2_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button2.Click
Form5.Show()
Me.Hide()
End Sub
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
MsgBox("your book is downloading")
End Sub
End Class
FORM5:
Imports System.Data.OleDb
Public Class Form5
Dim i As Integer
Dim con As New
OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Da
ta Source=E:\suganya\ooadebook.accdb")
Dim cmd As New OleDbCommand("", con)
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
MsgBox("PAID!!!!!!.......your book will be
delivered soon")
End Sub
End Class
92
OUTPUT FORMS:
93
94
Result:
Thus the E-book Management system was executed
successfully.
ONLINE TICKET RESERVATION SYSTEM
AIM :
To develop a system that can perform online ticket
reservation.
PROBLEM STATEMENT:
Going to the movie theaters is a fun and enjoyable event.
Unfortunately standing in line to purchase movie tickets can
take forever. You may lose out on a good movie seat and rush
to get your snacks. To buy tickets online and to beat the movie
crowd e-ticketing is necessary.
95
1. INTRODUCTION
1.1
1.2
1.3
References
IEEE SRS Format
1.5
Overview
The rest of this SRS is organized as follows: Section 2
gives an overall description of the software. It gives
what level of proficiency is expected of the user, some
general constraints while making the software and some
assumptions and dependencies that are assumed. Section
3 gives specific requirements which the software is
expected to deliver. Functional requirements are given
by various use cases. Some performance requirements
and design constraints are also given.
2.GENERAL DESCRIPTION
2.1Context of the product
Online ticket reservation is aimed towards the vendors
who want to reach out to the maximum cross-section of
customer and common people who can be potential customer.
This project envisages bridging the gap between the seller, the
retailer and the customer. Online ticket reservation should be
user-friendly, quick to learn and reliable software for the
above purpose. Online ticket reservation is intended to be a
stand-alone product and should not depend on the availability
of other software. It run on Windows based platform.
2.2Product functions
User : Administrator
Functions : The Administrator is the super user and has
complete control over all the activities that can be
performed. The application notifies the administrator of
all customer access requests, and the administrator can
then approve or reject them. The administrator also
manages the list of available train route categories. The
administrator can also view and delete entries in the
booked tickets.
97
User : Customer
Functions: A Customer can browse through the
reservation centre and choose trains to place in a virtual
booking cart. The booking cart details can be viewed
and items can be removed from the cart. To proceed
with the booking, the customer is prompted to login.
Also, the customer can modify personal profile
information (such as phone number and shipping
address) stored by the application. The customer can
also view the status of any previous orders, and cancel
any order that has not been shipped yet.
2.3 User characteristics
The user should be familiar with the booking related
terminology
like
booking
number/Checking
out/Transaction etc.
The user should be familiar with the Internet.
2.4Assumptions
There is no maintainability of back up so availability
will get affected.
Limited to HTTP/HTTPS.
Real-life credit card validation and Banking system is
not implemented.
No multilingual support.
3. SPECIFIC REQUIREMENTS:
This section provides technical information about the product
that will be needed to design the software.
3.1 External Interface Requirements:
Describes the user interface characteristics :
-user opens the main page which displays different options
include login form, menu form, shopping details, transaction,
checkout etc.
-Each option is linked to another page where customer details
and reservation details are updated.
98
:
:
Menu
Menu Selection
99
Basic path
and the user is
Post condition
accordance
page.
3.2.2 Booking Details
Use case
Trigger
Basic path
:
:
:
Post condition
Booking id
Keyboard input
The administrator has the only right
to use this page, but with the details
provided from the customer. The
details are stored to the database.
After the details being stored in
database, the administrator is logged
out.
3.2.3 Logout
Use case
:
Logout
Trigger
:
Button click
Basic path
:
The user must logout from the main
page before closing.
Post condition :
The user is navigated to login page.
3.3 Performance Requirements:
The project is designed for one user at a time. The
number of page will be more or less 10. The navigation from
one page to another page takes place within a fraction of
seconds.
Since the data is stored in database, huge amount of
items can be shopped and data storage is possible. 95% of
credit card transaction shall be processed in less than one
second.
3.4Quality Requirement:
100
101
LOGIN
MOVIE INFO
TIMING
BUYER
SELLER
TICKET INFO
PAYMENT
CREDIT
DEBIT
CLASS DIAGRAM
LOGIN
view
user name
password
MOVIE INFO
movie name
theatre name
PAYMENT
book
TICKET
class
seat count
TIMINGS
show time
ACTIVITY DIAGRAM
102
mode
date
acc_no
bank name
Enter user
name
Enter
pass word
invalid
valid
Enter theatre
name
Enter movie
name
Enter s how
timing
Select
class
s elect no of
s eats
mode of
payment
debit card
credit card
enter card
no
enter acc
no
enter acc
holder name
enter name
reservation
confirmed
SEQUENCE DIAGRAM
103
:User
1: Login
:Theatre
admin sys
:Theatre Db
2: Authenticate
3: Login successfull
4: Valid or INvalid
5: Enter theatre name
6: Search for theatre name
13: Payment
14: receive payment details
COLLABORATION DIAGRAM
7: Enter movie name
9: Select show timing
10: Select class
11: Select total no of seats
13: Payment
:User
:Theatre
admin sys
3: Login successfull
16: Reservation confirmed
:Theatre
Db
4: Valid or INvalid
2: Authenticate
15: Reservation status
6: Search for theatre name
8: Search for movie name
12: Check for availability
14: receive payment details
COMPONENT DIAGRAM
104
ticket
booking
user reg
authentic
ation
availabilit
y
ticket
payment
response
msg
DEPLOYMENT DIAGRAM
ticket
bo...
user
reg
authen
tic...
availa
bility
ticket
p...
IMPLEMENTATION
105
response
msg
LOGIN:
Imports System.Data.OleDb
Public Class Form1
Dim con As New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\hamsa\eticket.mdb")
Dim cmd As New OleDbCommand("", con)
Dim res As OleDbDataReader
Private Sub Button2_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button2.Click
Dim c As Integer
con.Open()
cmd = New OleDbCommand("select * from login", con)
res = cmd.ExecuteReader
While res.Read
If TextBox1.Text = res.GetValue(0) And TextBox2.Text
= res.GetValue(1) Then
c += 1
End If
End While
con.Close()
If c = 1 Then
MessageBox.Show("login successful")
Form2.Show()
Me.Hide()
Else
MessageBox.Show("Invalid entry")
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Me.Close()
End Sub
End Class
MOVIE INFO:
106
Imports System.Data.OleDb
Public Class Form2
Dim con As New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\hamsa\eticket.mdb")
Dim cmd As New OleDbCommand("", con)
Private Sub Button2_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button2.Click
con.Open()
cmd.CommandText = "Insert into otherentries values('" &
theatre.Text & "','" & ComboBox2.Text & "')"
cmd.ExecuteNonQuery()
con.Close()
Form3.Show()
Me.Hide()
End Sub
Private Sub Button1_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
Button1.Click
Form1.Show()
End Sub
End Class
TIMINGS:
Imports System.Data.OleDb
Public Class Form3
Dim con As New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\hamsa\eticket.mdb")
Dim cmd As New OleDbCommand("", con)
Private Sub Button2_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button2.Click
If RadioButton1.Checked = True Then
con.Open()
cmd.CommandText = "Insert into timing values('" &
RadioButton1.Text & "')"
cmd.ExecuteNonQuery()
107
108
CONFIRMATION:
Imports System.Data.OleDb
Public Class Form6
Dim con As New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=E:\hamsa\eticket.mdb")
Dim cmd As New OleDbCommand("", con)
Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
Me.Close()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button2.Click
con.Open()
cmd.CommandText = "Insert into bankinfo values('" &
TextBox1.Text & "','" & TextBox2.Text & "')"
cmd.ExecuteNonQuery()
con.Close()
MessageBox.Show("Your reservation is
successfull!!!!!!!!!!")
End Sub
End Class
111
OUTPUT FORMS
112
113
114
DATABASE
RESULT :
Thus the Online Ticket Reservation System project was
executed successfully.
115