Ooad Lab Material
Ooad Lab Material
NO:1
DATE: PASSPORT AUTOMATION SYSTEM
AIM:
PROBLEM STATEMENT:
PROJECT PLAN:
The use cases are set of scenarios to guide together by a common user goal.
A scenario is a sequence of steps describing an interaction betweeen user and their
system. Use case diagram is a visual representation of what the application wants the
system to do.
CLASS DIAGRAM:
The class diagram is a static diagram. It represents the static view of application.
Class diagram is not only used for visualising, describing and documenting different
aspects of system but also for constructing executable code of software aplication.
2
SEQUENCE DIAGRAM:
3
COLLABORATION DIAGRAM:
7. verify details
4. verify the details
databas e
police
STATECHART DIAGRAM:
ACTIVITY DIAGRAM:
Activity diagram is UML behaviour diagram which shows the flow of control or
objecct flow with emphasis on sequence and conditions of flow. The actions coordinate
4
by activity models can be initiated because other actions finish executing because objects
and data become available or because some even external to the flow occur.
login
regis tration
applicant form
getting the
pas s port
COMPONENET DIAGRAM:
5
passport automation
system
applicant
passport police
regional
admin admin
DEPLOYMENT DIAGRAM:
passport
auto...
update
PACKAGE DIAGRAM:
Package diagram in UML depicts the dependencies between the packages that
make up a model. Package is a namespace used to group together elements that are
semantically related and might change together. It is a general purpose mechanism to
organize elements into groups to provide better structure of the system model.
6
us er interface
domain
technical service
databas e
IMPLEMENTATION:
FORM 1:
7
FORM 2:
FORM 3:
8
FORM 4:
FORM 5:
9
FORM 6:
SOURCE CODING:
FORM 1:
Private Sub Command1_Click()
Me.Hide
Form3.Show
End Sub
Private Sub Command2_click()
Me.Hide
Form6.Show
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
FORM 2:
Private Sub Command1_Click()
Me.Hide
Form2.Show
10
End Sub
Private Sub Command2_click()
Me.Hide
Form4.Show
End Sub
Private Sub Command3_Click()
Me.Hide
Form1.Show
End Sub
FORM 3:
Private Sub Command1_Click()
Adodc1.Recordset.AddNew
MsgBox "submitted successfully"
End Sub
Private Sub Command2_click()
Me.Hide
Form1.Show
End Sub
FORM 4:
Private Sub Command1_Click()
Me.Hide
Form3.Show
End Sub
Private Sub Command2_click()
Dim As Integer
11
s = Text1.Text
Adodc1.Recordset.Find "[id]=" & s
If Adodc1.Recordset.EOF Then
MsgBox "It's not found"
End If
Else
MsgBox "Its found"
End If
End Sub
FORM 5:
Option Explicit
Public Loginsucceeded As Boolean
Private Sub Command1_Click()
Loginsucceeded = False
Me.Hide
Form1.Show
End Sub
Private Sub Command2_click()
If Text2 = "admin" Then
Loginsucceeded = True
MsgBox "login succeed"
Form5.Show
Else
MsgBox "invalid password,try again!!! login"
Me.Show
12
End If
End Sub
FORM 6:
Private Sub Command1_Click()
Me.Hide
Form1.Show
End Sub
Private Sub Command2_click()
Dim s As Integer
s = InputBox("enter the id to search")
Adodc1.Recordset.MoveFirst
Adodc1.Recordset.Find "[id]=" & s
If Adodc1.Recordset.EOF Then
MsgBox "it's not found"
Else
MsgBox "its found"
End If
End Sub
Private Sub Command3_Click()
Adodc1.Recordset.Update
End Sub
RESULT:
Thus the application program for passport automation system is created
successfully and UML diagrams were drawn using rational rose software.
13
EX NO:2 BOOK BANK MANAGEMENT SYSTEM
DATE:
AIM:
To draw the UML diagrams and to implement coding for book bank management
system.
PROBLEM STATEMENT:
Book bank management system is where the books can be collected every semester
and must be returned at the end of the semester. The system must have some options for
new member to enrol 1 for membership by paying deposit. A provision for getting six or
seven books per semester. Membership can be renewed by using the registered number.
The deposit must be refunded on termination of membership. A database must be
maintained to guide the issues to track the details of the student. Search option must be
provided so that the member can search for the availability of the particular books.
MODULE DESCRIPTION:
MODULE 1: REGISTRATION
The user or the student must register first by using his\her password and the
following user id and then the validity of the password is checked. If the user id and the
password is correct then allow issue or else reject.
Allow the user to search for the books that he\she requires. Then make request for
display. Then display the following book details.
14
Check out how many books are allowed for a person to borrow. If the number of
books allowed less than the number books borrowed then allow the user to borrow. I f it
is in reverse then reject.
If the book is not returned within the due date then calculate the fine
amount to be paid. If the book is returned within the due date then no need to calculate
the fine amount.
MODULE 6: LOGOUT
The user must log out from the book bank after borrowing\returning the book.
DESIGN PHASE:
Actor is any external entity that makes use of the system being modelled. It is
represented using stick figure.
15
Name College
Dept
Registration
Book bank
manager
By book name
Student Search
By author name
<<extend>>
Book
<<extend>>
Not Available
Available
PG Student UG Student
Membership status
Issue book
CLASS DIAGRAM:
16
SEQUENCE DIAGRAM:
17
member administrator database
1: register
3: Issue/reject
4: login
7: display details
COLLABORATION DIAGRAM:
18
return
books
login
search
books
if avail
error
if new user
new user
issue
books
register
COMPONENT DIAGRAM:
book bank
managem... issue for
member 4th year
details
19
DEPLOYMENT DIAGRAM:
BOOK BANK
PACKAGE DIAGRAM:
20
There are three types of layer. They are
UI
WEB
DOMAIN
TECHNICAL SERVICES
DATABASE ADMIN
21
IMPLEMENTATION:
FORM 1:
FORM 2:
22
FORM 6:
FORM 8:
23
FORM 9:
FORM 10:
24
SOURCE CODE:
FORM1:
25
"Data Source = '" & Application.StartupPath & "\Logindb.mdb'")
User.Open("UserTable", DBConn, ADODB.CursorTypeEnum.adOpenStatic,
ADODB.LockTypeEnum.adLockOptimistic)
UserFound = False
Login = False
Username = "uname = '" & txtUser.Text & "'"
Do
User.Find(Username)
If User.BOF = False And User.EOF = False Then
userDB = User.Fields("uname").Value.ToString
passDB = User.Fields("pass").Value.ToString
If userDB <> txtUser.Text Then
User.MoveNext()
Else
UserFound = True
If passDB = txtPass.Text Then
User.Close()
DBConn.Close()
Return True
End If
End If
Else
loginerror = "Invalid Password"
User.Close()
DBConn.Close()
Return False
End If
26
Loop Until UserFound = True
User.Close()
DBConn.Close()
Return False
End Function
Private Sub cmdLogin_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles cmdLogin.Click
If Login() = True Then
MessageBox.Show("Login Succesfull!!!", "Login Message")
Form05.Show()
Else
MessageBox.Show(loginerror, "Login Message")
End If
End Sub
End Class
FORM 3:
30
strSQL = "INSERT INTO Books (memid, mname, bname) VALUES ('" &
TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "')"
DBConn.Execute(strSQL)
MessageBox.Show("Book Issued.")
DBConn.Close()
Form11.Show()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Me.Close()
End Sub
Private Sub ListBox1_MouseClick(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseClick
TextBox3.Text = ListBox1.SelectedItem
End Sub
End Class
FORM 7:
Public Class Form07
Inherits System.Windows.Forms.Form
Dim DBConn As New ADODB.Connection
Dim User As New ADODB.Recordset
Private myCommand As New ADODB.Command
Private strSQL As String
Public Function connection()
DBConn.Open("Provider = Microsoft.Jet.OLEDB.4.0;" & _
"Data Source = '" & Application.StartupPath & "\Logindb.mdb'")
31
User.Open("Books1", DBConn, ADODB.CursorTypeEnum.adOpenStatic,
ADODB.LockTypeEnum.adLockOptimistic)
Return 0
End Function
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
connection()
strSQL = "INSERT INTO Books1 (memid, mname, bname) VALUES ('" &
TextBox1.Text & "','" & TextBox2.Text & "','" & TextBox3.Text & "')"
DBConn.Execute(strSQL)
MessageBox.Show("Book Issued.")
DBConn.Close()
Form11.Show()
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Me.Close()
End Sub
Private Sub ListBox1_MouseClick(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles ListBox1.MouseClick
TextBox3.Text = ListBox1.SelectedItem
End Sub
End Class
FORM 8:
Public Class Form08
Inherits System.Windows.Forms.Form
Dim DBConn As New ADODB.Connection
32
Dim User As New ADODB.Recordset
Private myCommand As New ADODB.Command
Private strSQL As String
Public Function connection()
RESULT:
Thus the UML diagrams and the implementation of book bank management
system using visual basics is executed and the output is verified.
34
EX.NO:3 EXAM REGISTRATION SYSTEM
DATE:
AIM:
To draw the UML diagram and to implement coding for exam registration system.
PROBLEM DEFINITION:
The Exam Registration System helps the candidate to register their personal
details, who want to write the Indian Service Examination. This system certainly reduces
the time complexity. The duration of the project is 3 days. Registration for exams by
means of online is possible from house, college etc. Exam registration is to automate the
system, rechecking the inclusion of all required material and automatically including each
student’s details based on a number of criteria. Specific design and implementation
details will be specified in a future document. The system reduces the time taken for
processing registration.
MODULES:
1. Student (Candidate)
2. Administrator
3. Payment Handler
MODULE DESCRIPTION:
In this project there are different modules to enable the exam registration system in
successful manner.
35
STUDENT:
The Student is the initiator of the systems. The Student enters the details for
registration. He has to login to the Exam Registration Form and should provide
mandatory information like name, age, organisation etc. The student receives hall-ticket
from the administrator after handling the payment.
ADMINISTRATOR:
The administrator is another actor who interacts with the various activity of the
system. The administrator will verify the details and confirm the student for writing
exam. The status will be updated in the database. This database is managed by
administrator.
PAYMENT HANDLER:
DESIGN PHASE:
UML provides use case diagram notation to illustrate the names of use case and
author relationship between them. Use case diagram and case relationship are secondary
in use case work and use case text document.
36
CLASS DIAGRAM:
The UML class diagram is to illustrate class interfaces and their actions. They are
used for static object modelling, we have already introduced and used their UML diagram
while domain modelling.
web
s _name
Student
s _dept
name s _year
dept visits to reg s _gen
Father_name s _regno Maintains
Web_Admin
Gender
Semes ter name
capture()
year login
maintain()
Regno id
update
Databas e
name
dept
father_name
Gender
s em
year
Regno
admin_name
admin_id
s tore()
update()
37
ACTIVITY DIAGRAM:
logi n
form
verificati on
s toring to Update
db detail s
SEQUENCE DIAGRAM:
A Sequence diagram illustrates a kind of format in which each object interacts via
message. It is generalize between two or more specialized diagram.
38
COLLABORATION DIAGRAM:
39
STATE CHART DIAGRAM:
UML state machine represents the interaction events and states of an object and
behaviour of an object in reaction to an event. Transaction shown as allows labelled with
their event. It is included with initial pseudo state and final end state.
COMPONENT DIAGRAM:
Student
Book
Hall ticket
Sys tem
adm in
40
DEPLOYMENT DIAGRAM:
Search
Regis ter
Verify
PACKAGE DIAGRAM:
41
c. Technical services layer
UI
VB
DOMAIN
Technical Service
Database
IMPLEMENTATION:
FORM 1:
42
FORM 3:
FORM 4:
43
FORM 6:
LOGIN FORM:
44
SOURCE CODING:
FORM 1:
Me.Hide
Form2.Show
End Sub
Me.Hide
Form5.Show
End Sub
FORM 2:
Me.Hide
Form3.Show
End Sub
Me.Hide
Form1.Show
End Sub
FORM 3:
Me.Hide
45
Form4.Show
End Sub
Me.Hide
Form2.Show
End Sub
Data1.Recordset.AddNew
End Sub
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
End Sub
Dim a As Integer
a = Text2.Text
If a >= 18 Then
End If
End Sub
Combo1.AddItem "male"
Combo1.AddItem "female"
End Sub
FORM 4:
Me.Hide
Form6.Show
End Sub
Me.Hide
Form3.Show
End Sub
Data1.Recordset.AddNew
End Sub
Data1.Recordset.Delete
47
MsgBox "record is deleted"
End Sub
Combo1.AddItem "chennai"
Combo1.AddItem "trichy"
Combo1.AddItem "villupuram"
Combo1.AddItem "madurai"
Combo1.AddItem "kanci"
Combo1.AddItem "salem"
End Sub
FORM 5:
frmLogin.Show
End Sub
Me.Hide
Form1.Show
End Sub
Me.Hide
Form6.Show
End Sub
48
FORM 6:
End Sub
Else
Me.Hide
Form7.Show
End If
End Sub
Me.Hide
Form4.Show
End Sub
LOGIN FORM:
Option Explicit
49
LoginSucceeded = False
Me.Hide
End Sub
LoginSucceeded = True
Me.Hide
Else
txtPassword.SetFocus
SendKeys "{Home}+{End}"
End If
End Sub
RESULT:
Thus the project for EXAM REGISTRATION SYSTEM has been successfully
executed and codes are generated.
50
EX.NO:4 STOCK MAINTENANCE SYSTEM
DATE:
AIM:
To develop the stock maintenance system using VB software and to draw UML
diagram using Rational Rose.
PROBLEM STATEMENT:
The main scope of this stock maintenance system is to maintain the stock details of
the shop and the following problems are identified below,
UML DIAGRAMS:
The use cases are a ser of scenarios to guide together by a common user goal. A
scenario of the sequence of steps describing an interaction between a user and their
system. use case diagram is a visual representation of what of the card holder wants the
system to do.
51
ST OCK M AINT AINENCE
<<incl ude>>
\
QUALIT Y
CUST OMER
ADMINIST RAT OR
<<extend>> ONLINE
PURCHASE T HE PRODUCT
<<extend>>
DIRECT
<<extend>>
SUPPLAYER PAY T HE AMOUNT
CASH
SUPPLY T HE PRODUCT DD
CLASS DIAGRAM:
owner
cus tom er
login
login viewing product
view product adding product detail
s electingproduct verify
bill generation
login() paym ent
s election()
true product() login()
logout() verify()
updateproductdetail()
logout()
databas e
viewing product
adding productdetail
update()
logout()
52
ACITVITY DIAGRAM:
SEQUENCE DIAGRAM:
53
COLLABORATION DIAGRAM:
5: PAYMENT
COUSTO VENDER
MER
6: ISSUE PRODUCT
4: BILL GENERATION
3: SELECTING PRODUCT
8: LOGOUT
DB 7: UPDATE PRODUCT DETAIL
2: VIEW PRODUCT DETAILS
1: LOGIN
54
STATE CHART DIAGRAM:
State chart diagrams model the dynamic behaviour of individual classes or any
other kind of object. They show the sequences of states that an object goes through, the
events that cause a transition from one state to another, and the actions that result from a
state change.
CUST
LOGIN
ENTER CUST
DETAILS
SELECT
PRODUCTS
DISPLAY
PRODUCT
PURCHAS
E
UPDATE
DETAILS
VENDER
COMPONENT DIAGRAM:
55
stock maintenance
system
db details
customer (stock)
vendor
DEPLOYMENT DIAGRAM:
STOCK
MAITAONENENCE
CUST DB
VENDE
R
PACKAGE DIAGRAM:
web login
dom ain
databas e
update vendor
IMPLEMENTATION:
LOGIN SCREEN:
57
SHOP DETAILS:
CUSTOMER DETAILS:
58
PRODUCT DETAILS:
ORERED DETAILS:
59
PURCHASE DETAILS:
BILL GENERATION:
60
STOCK DETAILS:
SOURCE CODE:
FORM 1:
Form2.Show
Else
End If
End Sub
61
Unload Me
End Sub
FORM 2:
Form3.Show
End Sub
Form4.Show
End Sub
Form5.Show
End Sub
Form11.Show
End Sub
Form12.Show
End Sub
Form13.Show
End Sub
62
Form14.Show
End Sub
Form1.Show
End Sub
FORM 3:
Form2.Show
End Sub
FORM4:
Form2.Show
End Sub
Form2.Show
End Sub
Unload Me
End Sub
Data1.Recordset.AddNew
End Sub
63
Private Sub Command5_Click()
Data1.Recordset.MovePrevious
Data1.Recordset.MoveFirst
End If
End Sub
Data1.Recordset.MoveNext
Data1.Recordset.MoveLast
End If
End Sub
Data1.Recordset.Delete
Data1.Recordset.MoveNext
Data1.Recordset1.MovePrevious
End If
End Sub
FORM 5:
Form6.Show
64
End Sub
Form7.Show
End Sub
Form8.Show
End Sub
Form9.Show
End Sub
Form10.Show
End Sub
Form15.Show
End Sub
Form2.Show
End Sub
FORM 6:
Form7.Show
65
End Sub
Form5.Show
End Sub
FORM 7:
Form8.Show
End Sub
Form5.Show
End Sub
FORM 8:
Form9.Show
End Sub
Form5.Show
End Sub
FORM 9:
Form10.Show
66
End Sub
Form5.Show
End Sub
FORM 10:
Form5.Show
End Sub
Form11.Show
End Sub
FORM 11:
Form12.Show
End Sub
End Sub
Form2.Show
End Sub
67
Private Sub Command5_Click()
Data1.Recordset.AddNew
End Sub
Data1.Recordset.MovePrevious
Data1.Recordset.MoveFirst
End If
End Sub
Data1.Recordset.MoveNext
Data1.Recordset.MoveLast
End If
End Sub
Data1.Recordset.Delete
Data1.Recordset.MoveNext
Data1.Recordset.MovePrevious
End If
End Sub
FORM 12:
68
Private Sub Command1_Click()
Form13.Show
End Sub
Data1.Recordset.AddNew
End Sub
Form11.Show
End Sub
Data1.Recordset.MovePrevious
Data1.Recordset.MoveFirst
End If
End Sub
Data1.Recordset.MoveNext
Data1.Recordset.MoveLast
End If
End Sub
Data1.Recordset.Delete
69
Data1.Recordset.MoveNext
Data1.Recordset.MovePrrevious
End If
End Sub
FORM 13:
Form12.Show
End Sub
End Sub
Data1.Recordset.Delete
Data1.Recordset.MoveNext
Data1.Recordset.MovePrevious
End If
End Sub
Data1.Recordset.MovePrevious
70
If Data1.Recordset.EOF() = True Then
Data1.Recordset.MoveFirst
End If
End Sub
Data1.Recordset.MoveNext
Data1.Recordset.MoveLast
End If
End Sub
Data1.Recordset.AddNew
End Sub
FORM 14:
Private Sub Command1_Click()
Form2.Show
End Sub
RESULT:
Thus the application for stock maintenance system was created successfully and
UML diagrams were drawn using rational rose software.
71
EX.NO:5 ONLINE COURSE RESERVATION SYSTEM
DATE:
AIM:
To draw the UML diagrams and to implement coding for the Online Course
Reservation System.
PROBLEM STATEMENT:
Online course reservation system is web based software that helps people to
register courses online. This course preference quickly and conveniently. Our
implementations are designed for people who wants to combine the convenience of
online reservation with hand marked assignments, personal support and feedback from
expert inductors.
PROJECT PLAN:
The requirement form the customer is got and the requirements about the course
registration are defined. The requirements are analyzed and defined so that is enables the
student to efficiency select a course through registration system. The project scope is
identified and the problem statement is prepared.
EFFICIENCY:
The system must run without any interfaces or delay and should be capable of
handling multiple users.
72
The Online Course Reservation System assumes that the applicant and
administrator must have basic knowledge about accessing the internet.
Name
Login
Age Course
ADMIN
Sel ect course
USER
<<incl ude>>
<<extend>>
Payment
<<incl ude>>
T ransaction failure
By debit card
Net banki ng
update
Hal l ticket
CLASS DIAGRAM:
73
object flow with
Web web_databse
name name
id id
dept dep
course course
Store_web _details
branch branch
Student
payemt_details admin_name
name visits
course_duration admin_login_id
id start_date admn_pass
dept ending_date
course
store()
branch capture() update()
update_to_admin()
select_course() Update
pay_amount()
Maintains
Admin
name
id
pass
catpure_web()
maintain_db()
SEQUENCE DIAGRAM:
Sequence diagram is the most common kind of interaction diagram, which focuses
on the message interchange between a numbers of lifelines. Sequence diagram describes
an interaction by focusing on the sequence of messages that are exchanged, along with
their corresponding occurrence specifications on the lifelines.
74
s tudent web adm in databs e
vis its
s electcours e
duration
s elect_Dept
capture
update
capture
update
paym ent
update
COLABORATION DIAGRAM:
student
1. visits admin
2. selectcourse
3. duration
4. select_Dept
7. enters other primary details
10. payment
11. update
8. capture
5. capture
9. update
6. update
web
databse
75
ACTIVITY DIAGRAM:
Activity diagram is UML behaviour diagram which shows flow of control or
object flow with emphasis on the sequence and conditions of the flow. The actions
coordinated by activity models can be initiated because other actions finish executing,
because objects and data become available, or because some events external to the flow
occur.
76
STATE CHART DIAGRAM:
State chart diagrams model the dynamic behaviour of individual classes or any
other kind of object. They show the sequences of states that an object goes through, the
events that cause a transition from one state to another and the actions that result from a
state change.
vis it
webs ite
login or
regis ter
s elect
cours e
get details
about cours e
proceed to
paym ent
authenticati verification
on
m ake
trans action
provide hall
ticket
update db
COMPONENT DIAGRAM:
77
Student
System
admin
Hall ticket
Course
DEPLOYMENT DIAGRAM:
Deployment diagrams show the physical configurations of software and
hardware. A Deployment diagram shows how and where the system will be deployed.
Physical machines and processors are reflected as nodes, and the internal construction
can be depicted by embedding nodes or artifacts. As artifacts are allocated to nodes to
model the system's deployment, the allocation is guided by the use of deployment
specifications.
Online Cours e
regis tration s ys tem
College
details
Cours e
details
login
PACKAGE DIAGRAM:
IMPLEMENTATION:
FORM 1:
79
FORM 2:
FORM 4:
80
FORM 5:
FORM 7:
81
FORM 8:
FORM 9:
82
FORM 10:
SOURCE CODING:
FORM 1:
Form5.Show
End Sub
Form6.Show
End Sub
FORM 2:
Form4.Show
83
End Sub
Form6.Show
End Sub
FORM 3:
Form1.Show
End Sub
FORM 4:
Adodc1.Recordset.Add
End Sub
Adodc1.Recordset.Update
End Sub
Form1.Show
End Sub
Form3.Show
End Sub
84
Adodc1.Recordset.AddNew
End Sub
Form10.Show
End Sub
FORM 5:
Form7.Show
End Sub
FORM 6:
Form1.Show
End Sub
Form2.Show
End Sub
FORM 7:
Form8.Show
End Sub
FORM 8:
85
Form7.Show
End Sub
Form9.Show
End Sub
Form9.Show
End Sub
Form1.Show
End Sub
FORM 9:
Form7.Show
End Sub
Form12.Show
End Sub
FORM 10:
Form11.Show
End Sub
86
Private Sub Command3_Click ()
Adodc1.Recordset.Update
End Sub
Adodc1.Recordset.AddNew
End Sub
FORM 11:
Form3.Show
End Sub
Form4.Show
End Sub
FORM 12:
Form9.Show
End Sub
RESULT:
Thus the UML diagrams for the online course reservation system is drawn and the
reservation implementation is done successfully.
87
EXNO:6 E-TICKETING
DATE:
AIM :
To develop the E-Ticketing System using Rational Rose Software and to implement
the software in visual basic.
PROBLEM ANALYSIS AND PROJECT PLANNING :
In the E-Ticketing system the main process is a applicant have to login the
database then the database verifies that particular username and password then the user
must fill the details about their personal details then selecting the flight and the database
books the ticket then send it to the applicant then searching the flight or else cancelling
the process.
PROBLEM STATEMENT:
The E-Ticketing system is the initial requirement to develop the project about the
mechanism of the E-ticketing system what the process do at all.
a. The requirement are analyzed and refined which enables the end users to
efficiently use the E-ticketing system.
b. The complete project is developed after the whole project analysis
explaining about scope and project statement is prepared.
c. The main scope for this project is the applicant should reserve for the flight
ticket.
d. First the applicant wants to login to the database after that the person wants
to fill their details.
e. Then the database will search for ticket or else the person will cancelled the
ticket if he/she no need.
88
MODULES:
Modules in this Project are,
1. Login
2. Check Availability
3. Booking Tickets.
4. Payment Details.
The module descriptions for this project are successfully defined below.
LOGIN:
Before entering the system,users have to login. Get the user name and password
from existing users. Give the new users the option to sign up.
CHECK AVAILABILITY:
Get the source and destination. Provide a drop down list box for the date. Check
Availability of Tickets.
BOOKING TICKETS:
If tickets are available, get the number of passengers. Get the name and age of all
passengers. If tickets are not available then reschedule.
PAYMENTS DETAILS:
Print the cost of the tickets. Get the payment details from the user. Confirm the
details and the tickets. Display Confirmed ticket to the user.
DESIGN PHASE:
89
Login
Check availability
Booking
Customer Admin
Message Delivery
Ticket Confirmation
Cashier
Cancel
Update
<include>
Display homepage
Card
CLASS DIAGRAM:
90
SEQUENCE DIAGRAM:
A sequence diagram in Unified Modelling Language (UML) is a kind of
interaction diagram that shows how processes operate with one another and in what
order. It is a construct of a Message Sequence Chart. There are two dimensions.
1. Vertical dimension-represent time.
2. Horizontal dimension-represent different objects.
91
PASSENGER BOOKING BANK TICKET PRINTER DB
SERVER
LOGIN
CHOOSE TRANSPORT
IF AVAILABLE
BOOK
UPDATE
PRINT TICKET
TICKET PRINTED
TICKET ISSUED
UPDATE
COLLABRATION DIAGRAM:
5: UPDATE
11: UPDATE
1: LOGIN
2: CHOOSE TRANSPORT BOOKING DB
4: BOOK SERVER
PASSEN 3: IF AVAILABLE
GER 10: TICKET ISSUED
9: TICKET PRINTED
8: PRINT TICKET
PRINTE
6: REQ TO DEBIT AMOUNT R
TICKET
7: DEBIT TICKET FARE
BANK
92
STATE CHART DIAGRAM :
The purpose of state chart diagram is to understand the algorithm involved in
performing a method. It is also called as state diagram. A state is represented as a round
box, which may contain one or more compartments. An initial state is represented as
small dot. A final state is represented as circle surrounding a small dot.
CHECK ENTERING
IDLE AVAILABILITY DETAILS
CANCEL THE
HOME DETAILS TICKET
PAGE
AUTHENTI CREDIT/D
CATION EBIT
UPDATION MSG
ENTER BOOKING DELIVERY
FROM& TO
IDLE
STACK
ACTIVITY DIAGRAM:
Activity diagrams are graphical representations of workflows of stepwise
activities and actions with support for choice, iteration and concurrency. In the Unified
Modelling Language, activity diagrams can be used to describe the business and
operational step-by-step workflows of components in a system. An activity diagram
shows the overall flow of control. An activity is shown as an rounded box containing the
name of the operation.
93
RESERVE CANCEL THE
THE TICKET TICKET
VIEW THE
DETAILS
CHECK RESERVATION LIST
CHECK FOR SEAT RESERVATION
NO YES
FILL THE INFORM THE GIVE THE
FORM CUSTOMER FORM
ISSUE THE
TICKET
COMPONENT DIAGRAM:
DEPLOYMENT DIAGRAM:
A deployment diagram in the unified modelling language serves to model the
physical deployment of artifacts on deployment targets. Deployment diagrams show "the
allocation of artifacts to nodes according to the Deployments defined between them. It is
94
represented by 3-dimentional box. Dependencies are represented by communication
association.
PASSENGE
R1
RAILWAY RESERVATION
SYSTEM
PRINTERS
PASSENGER2
O
PASSENGER
3
APPLICATIO
N SERVER
DBASE
SERVER
PACKAGE DIAGRAM :
A package diagram in unified modelling language that depicts the dependencies
between the packages that make up a model. A Package Diagram (PD) shows a grouping
of elements in the OO model, and is a Cradle extension to UML. PDs can be used to
show groups of classes in Class Diagrams (CDs), groups of components or processes in
Component Diagrams (CPDs), or groups of processors in Deployment Diagrams (DPDs).
There are three types of layer.
They are,
1. User interface layer
2. Domain layer
3. Technical services layer
95
IMPLEMENTATION:
FORM 1:
96
FORM 2:
FORM 3:
97
FORM 4:
FORM 7:
98
FORM 8:
FORM 8ii:
99
FORM 11:
SOURCE CODING:
FORM 1:
Private Sub Command1_Click ()
MsgBox ("login success")
Form3.Show
End Sub
Private Sub Command2_Click ()
Form2.Show
Unload Me
End Sub
FORM 2:
MsgBox ("Success")
Form3.Show
100
End Sub
End Sub
FORM 3:
Form4.Show
End Sub
Form5.Show
End Sub
FORM 4:
End Sub
Form7.Show
End Sub
Form8.Show
End Sub
101
Form7.Show
End Sub
Form9.Show
End Sub
FORM 5:
End Sub
Form6.Show
End Sub
FORM 6:
Form7.Show
End Sub
Form10.Show
End Sub
End Sub
FORM 7:
102
Private Sub Command2_Click()
End Sub
Form11.Show
End Sub
End Sub
FORM 8:
Form1.Show
End Sub
End Sub
MsgBox ("UpdationSuccessfull")
End Sub
103
End Sub
FORM 9:
Form1.Show
End Sub
End Sub
MsgBox ("UpdationSuccessfull")
End Sub
End Sub
FORM 10:
Form1.Show
End Sub
End Sub
104
Private Sub Command3_Click()
MsgBox ("UpdationSuccessfull")
End Sub
End Sub
FORM 11:
Private Sub Command1_Click()
Form1.Show
End Sub
Form12.Show
End Sub
End Sub
FORM 12:
Private Sub Form_Load()
End Sub
RESULT:
Thus the UML diagrams for E-Book management system is drawn and the
implementation is done successfully.
105
EX.NO: 7 SOFTWARE PERSONAL MANAGEMENT SYSTEM
DATE:
AIM:
To develop a mini project on software personal management system using VB and
to draw the UML diagrams using Rational Rose.
PROBLEM STATEMENT:
The HR must enter the name and password to login the form and select the
particular employee to view the details about that employee and maintaining the
employee details personally. This process of employee management system are described
sequentially through following steps,
• The HR login to the employee management system.
• He/she search for the list of employees.
• Then select the particular employee.
• Then view the details of that employee.
• After displaying the employee details then logout.
MODEL DESCRIPTION:
FORM1:
Login details can given in this form. It contains login and exit options.
FORM LOGIN:
Administrator log into the software personnel management system by using this
form.
106
FORM2:
Actions such as view, modification which the administrator wish to done is given in
this form. It contains view, modification and exit options.
FORM3:
The existing employee details can be viewed in this form by using data connection.
FORM4:
Actual modifications which were done by administrator can be given in this form. It
contains search, add new, delete, update, and cancel options. Search option searches a
particular record in the database. Similarly add new option adds a particular record in the
database. Delete option deletes a particular record in the database. Update option updates
a particular value. Finally the cancel button shows that the project was completed.
DESIGN PHASE:
USE CASE DIAGRAM:
The use cases are a set of scenarios to guide together by a common user goal. A
scenario is the sequence of steps describing an interaction between a user and their
system. Use-case diagram is a visual representation of what the card holder wants the
system to do.
107
CLASS DIAGRAM:
108
SEQUENCE DIAGRAM:
Sequence diagram is the most common kind of interaction diagram, which focuses
on the message interchange between a numbers of lifelines. Sequence diagram describes
an interaction by focusing on the sequence of messages that are exchanged, along with
their corresponding occurrence specifications on the lifelines.
COLLABORATION DIAGRAM:
A collaboration diagram describes interactions among objects in terms of
sequenced messages. Collaboration diagrams represent a combination of information
taken from class, sequence, and use case diagrams describing both the static structure and
dynamic behaviour of a system.
109
ACTIVITY DIAGRAM:
Activity diagram is UML behaviour diagram which shows flow of control or
object flow with emphasis on the sequence and conditions of the flow. The actions
coordinated by activity models can be initiated because other actions finish executing,
because objects and data become available, or because some events external to the flow
occur.
110
STATE CHART DIAGRAM:
State chart diagrams model the dynamic behaviour of individual classes or any
other kind of object. They show the sequences of states that an object goes through, the
events that cause a transition from one state to another and the actions that result from a
state change.
COMPONENT DIAGRAM:
Component diagrams provide a physical view of the current model. A component
diagram shows the organizations and dependencies among software components,
including source code components, binary code components, and executable components.
These diagrams also show the externally-visible behaviour of the components by
displaying the interfaces of the components.
111
DEPLOYMENT DIAGRAM:
Deployment diagrams show the physical configurations of software and hardware.
A Deployment diagram shows how and where the system will be deployed. Physical
machines and processors are reflected as nodes, and the internal construction can be
depicted by embedding nodes or artifacts.
PACKAGE DIAGRAM:
A package diagram in the Unified Modelling language depicts the dependencies
between the packages that make up a model. Package is a namespace used to group
together elements that are semantically related and might change together. It is a general
purpose mechanism to organize elements into groups to provide better structure for
system model.
112
IMPLEMENTATION:
WELCOME FORM:
LOGIN FORM:
113
SELECT HR OR EMPLOYEE LOGIN:
HR LOGIN FORM:
114
HR LOGIN PROFILE:
115
EMPLOYEE LOGIN FORM:
EMPLOYEE REGISTERATION:
116
SOURCE CODING:
WELCOME FORM:
Form2.Show
End Sub
LOGIN:
Form3.Show
End Sub
EXIT:
Form9.Show
End Sub
Form4.Show
End Sub
LOGIN:
Form5.Show
End Sub
HR LOGIN FORM(OK):
117
Private Sub Picture2_Click()
c.Show
Else
End If
End Sub
CANCEL:
Form1.Show
End Sub
HR LOGIN PROFILE:
Form7.Show
End Sub
MODIFY:
Form8.Show
End Sub
EXIT:
Form9.Show
118
End Sub
PREVIOUS:
Data1.Recordset.MovePrevious
Data1.Recordset.MoveFirst
End If
End Sub
DELETE:
Data1.Recordset.Delete
Data1.Recordset.MoveNext
Data1.Recordset.MovePrevious
End If
End Sub
ADDNEW:
Data1.Recordset.AddNew
End Sub
EXIT:
Form9.Show
119
End Sub
BACK:
c.Show
End Sub
MOVE NEXT:
Data1.Recordset.MoveNext
Data1.Recordset.MoveLast
End If
End Sub
MODIFY:
End Sub
BACK:
c.Show
End Sub
EXIT:
Form9.Show
120
End Sub
LOGIN:
Form10.Show
End Sub
CANCEL:
Form4.Show
End Sub
REGISTER:
Form11.Show
End Sub
MODIFY:
Private Sub Image2_Click()
Form12.Show
End Sub
EXIT:
Form9.Show
End Sub
121
EXIT:
Form9.Show
End Sub
ADDNEW:
Data1.Recordset.AddNew
End Sub
BACK:
Form10.Show
End Sub
REGISTER:
End Sub
MODIFY:
End Sub
EXIT:
End Sub
BACK:
Form10.Show
End Sub
RESULT:
Thus the application for software personnel management system was created
successfully and UML diagrams were drawn using rational rose software.
123
EX.NO:8 CREDIT CARD PROCESSING SYSTEM
DATE:
AIM:
To draw the UML diagrams and to implement coding for Credit Card Processing.
PROBLEM DEFINITION:
SOFTWARE REQUIREMENTS:
The software requirement captures all the requirements in single documents. The
credit card processing system that is to be developed provides the credit card
holders to know their due dates and transaction results. The credit card processing
system is supposed to have the following features and benefits.
The system provides the card holders to make successful online payment.
The system provides a signature access and zero liability on lost card.
124
SECURITY REQUIREMENTS:
To provide the security to the system based on the current security system
currently used by VISA.
To provide the interface between the system being developed and the billing
system currently in use by VISA to update the member account when they
purchase items.
MODULAR DESCRIPTION:
PRODUCT PERSPECTIVE:
The credit card processing is a versatile, reliable service can help your business
increase sales by enabling you to accept all forms of payment from anywhere at
any time.
CCP system to be developed benefits greatly the card holders. Once a card holder
is verified for the credit, he signs the charge slip which is forwarded to the
acquiring bank and closes the transactions with the merchant: for the acquiring
bank settles a transaction with the issuing bank.
The product to the developed as interactions with the users buyer and merchant
product as to interact with the other system like internet, card issuing bank and
acquiring bank.
USER CHARACTERISTICS:
The person who issued a credit card actually holds & uses it.
125
MERCHANT /SHOPKEEPER:
The person who accept the payments from the card holders through the swiping of
the credit card in return of the transaction.
It is a bank which has actually issue the credit card to the customer and first credit
to them on transaction made by the card holder.
This is that network which helps facilitate the card transaction such as visa or
master card.
SPECIFICATION DESCRIPTION:
NON-FUNCTION REQUIREMENTS:
1. EFFICIENT:
It would be efficient enough to deals the credit cards. It should provide
information about the credit as soon as possible.
2. PORTABILITY:
It should run in any platform without any major alteration.
3. AVAILABILITY:
It should be available in 24 hours.
4. MAINTAINABILITY:
It should cost minimum during maintenance phase.
126
UML DIAGRAMS:
Use case diagrams are used to describe a set of actions that some system or
systems should or can perform in collaboration with one or more external users of the
system. Each use case should provide some observable and valuable result to the actors
or other stakeholders of the system.
Quantity
Purchase product
Name of the product
Give card
Swipe card
Card holder
Salesperson
Enter amount
Not deliver
CLASS DIAGRAM:
127
Customer details(from)
name
sender
address
credit card no
get details()
+purchase purchase
SEQUENCE DIAGRAM:
3. purchase
8. transfer process
128
ACTIVITY DIAGRAM:
An activity diagram is to provide a view of flows and what is going on inside a use case
or among several classes. Activity diagrams are typically used for business process
modelling the logic captured by a single use case or usage scenario or for modelling the
detailed logic of a business rul
PURCHASE ID
REGISTRATION
USER ID
LOG IN
NO EXIT
VERIFY
YES
ADD NEW PURCHASE
USER PRODUCT
ADD
NO
ENTER CUST
USER NAME ID
YES
MATCH
CARD TYPE ADD NEW
PURCHASE
YES
CARD GENERATE
NUMBER BILL
COLLABORATION DIAGRAM:
129
Browser
1: 1. Search the shop
3: 3. purchase
Custome
r 2: 2. visit the home page purchase the item
handle
payment
bank
6: 6. Find accout no bank acct type
7: 7. transfer the acct no and bill amt
Cus tomer
Shop
Handle
pay ment
Bank
130
COMPONENT DIAGRAM:
Component diagram are used to model physical aspects of a system. So
component diagram are used to visualize the organization and relationships among
components in a system. These diagrams are used to make executable system.
admin
DEPLOYMENT DIAGRAM:
admin
browse payment
custome shop
r
PACKAGE DIAGRAM:
A package diagram in unified modelling language that depicts the dependencies
between the packages that make up a model. A Package Diagram (PD) shows a grouping
of elements in the OO model, and is a Cradle extension to UML. PDs can be used to
show groups of classes in Class Diagrams (CDs), groups of components or processes in
Component Diagrams (CPDs), or groups of processors in Deployment Diagrams (DPDs).
131
User Interface
Domain Model
Technical Service
Database Authentication
IMPLEMENTATION:
FORM 1:
132
FORM 2:
FORM 3:
133
FORM 4:
FORM 5:
134
FORM 6:
FORM 7:
135
SOURCE CODING:
FORM 1:
Private Sub Command1_Click()
Form2.Show
End Sub
FORM 2:
Private Sub Command1 _Click()
Data1.Recordset.AddNew
End Sub
Private Sub Form_Load()
combo1.AddItem "CASH"
combo1.AddItem "CREDIT"
combo1.AddItem "CHEQUE"
End Sub
Private Sub Command5_Click()
Form1.Show
End Sub
Private Sub Command6_Click()
If combo1.Text = "CREDIT" Then
Form3.Show
Else
MsgBox "cannot access,sorry"
End If
End Sub
FORM 3:
Private Sub Command1_Click()
frmLogin.Show
End Sub
Private Sub Command2_Click()
Me.Hide
End Sub
136
FORM 4:
Option Explicit
Public LoginSucceededAs Boolean
Private Sub cmdCancel_Click()
'set the global var to false
'to denote a failed login
LoginSucceeded = False
Me.Hide
End Sub
Private Sub cmdOK_Click()
'check for correct password
If txtPassword = "4321" And txtUserName = "project" Then
'place code to here to pass the
'success to the calling sub
'setting a global var is the easiest
LoginSucceeded = True
MsgBox "Login successfull"
Form4.Show
Me.Hide
Else
MsgBox "Invalid Password, try again!", , "Login
txtPassword.SetFocus
End If
End Sub
FORM 5:
Private Sub Command1_Click()
If Text1.Text = "" Then
MsgBox "FILL THE TEXT"
ElseIf Text1.Text = Text2.Text Then
MsgBox "VALID CARD"
Form5.Show
137
Else
MsgBox "INVALID CARD"
End If
End Sub
Private Sub Command2_Click()
Me.Hide
End Sub
FORM 6:
Private Sub Command1_Click()
Form6.Show
Me.Hide
End Sub
Private Sub Command2_Click()
If Val(Form5.Text4.Text) < Val(Form2.Text6.Text) Then
MsgBox "INSUFFICIENT AMOUNT"
Else
Text6.Text = Val(Text4.Text) - Val(Text5.Text)
End If
End Sub
Private Sub Form_Load()
Form5.Text5.Text = Form2.Text6.Text
End Sub
FORM 7:
Private Sub Command1_Click()
Form7.Show
End Sub
Private Sub Form_Load()
Form6.Text1.Text = Form5.Text7.Text
Form6.Text2.Text = Form4.Text1.Text
Form6.Text3.Text = Form5.Text1.Text
Form6.Text4.Text = Form5.Text5.Text
138
Form6.Text5.Text = Form5.Text1.Text
Form6.Text6.Text = Form4.Text1.Text
Form6.Text7.Text = Form5.Text3.Text
End Sub
FORM 8:
Private Sub Command1_Click()
Form1.Show
End Sub
RESULT:
Thus the UML diagram are drawn and coding for Credit Card Processing System
is implemented successfully.
139
EX.NO:9 E-BOOK MANAGEMENT SYSTEM
DATE:
AIM:
PROBLEM STATEMENT:
This project is mainly used for searching and downloading the books.
The user who is in need of a particular book can search for the book based on
Title, Author, Book name .
If the book is available means the user by creating their unique login, they can
sign in to their account using their login id and password and can perform
downloading and uploading process. After downloading process the contents of
downloaded books will be displayed.
MODULES DESCRIPTION:
1.WELCOME FORM:
2. LOGIN FORM:
The user and the administrator have their own login id and password for accessing
the eBook management system.
140
3. USER LOGIN FORM:
The system provides a security by giving a user login name and password. The user
with id and password only can access the system.
The list of available books in the database will be displayed for the user. The user
search can for the book from the database.
5. REGISTRATION FORM:
A new user should register the details in the register form. After filling the
registration form, the user name and the password is given t0 the user. Using that name
and password only the user can access the system.
6. DOWNLOAD FORM:
It is used for searching a book and if available means downloading a book from
the database through authorized access by the user. This system uses several
programming and database techniques to elucidate the work involved in this process.
Administrator can upload their book to the database which is after login into the
system by using a administrator login name and id.
141
9. EXIT FORM:
The user exit from the system after downloading the book and also the
administrator exit from the system after uploading the book.
UML DIAGRAMS:
USECASE DIAGRAM:
<<include>>
create account
login <<extend>>
database
validation
search books
user.
view books
<<include>>
no of books
select books
<<include>>
<<include>>
credit cards payment
<<include>>
debit cards
admin
visa cards
<<include>>
postal
<<extend>>
delivery
courier
142
CLASS DIAGRAM:
The Class diagram captures the logical structure of the system - the classes and
things that make up the model. Class diagram shows the static view of the system and are
modeled in the Logical view under the appropriate use-case realization. It shows a set of
classes, interfaces and their relationships.
SEQUENCE DIAGRAM:
Sequence diagram is a structured representation of behavior as a series of
sequential steps over time. It is used to depict work flow, message passing and how
elements in general cooperate over time to achieve a result.
143
user administrator browser search &view select payment cancel download message exit
books delivery
visit web page
select books
select cancellation
download books
get message
get exit
COLLABORATION DIAGRAM:
A collaboration diagram shows the interactions between elements at run-time in
much the same manner as a Sequence diagram. However, collaboration diagrams are
used to visualize inter-object relationships, while Sequence diagrams are more effective
at visualizing processing over time.
7: download books
3: select books 5: select cancellation
4: pay for the books
6: cancellation message confirmation
message exit
delivery
144
ACTIVITY DIAGRAM:
Activity diagrams can also be used in business modelling and to model the
workings of an operation, an object, or anything that involves modelling the sequential
steps in a computational process.
A State chart diagram is a view of a state machine that models the changing
behavior of a state. State chart diagrams show the various states that an object goes
through, as well as the events that cause a transition from one state to another
145
COMPONENT DIAGRAM:
Component diagrams provide a physical view of the current model. A component
diagram shows the organizations and dependencies among software components,
including source code components, binary code components, and executable components.
These diagrams also show the externally-visible behaviour of the components by
displaying the interfaces of the components.
e-book management
system
customer database
DEPLOYMENT DIAGRAM:
Deployment diagrams show the physical configurations of software and hardware.
A Deployment diagram shows how and where the system will be deployed. Physical
machines and processors are reflected as nodes, and the internal construction can be
depicted by embedding nodes or artifacts. As artifacts are allocated to nodes to model the
system's deployment, the allocation is guided by the use of deployment specifications.
Paym ent
s elect
book
SQL Server
146
PACKAGE DIAGRAM:
A package diagram in the Unified Modelling language depicts the dependencies
between the packages that make up a model. Package is a namespace used to group
together elements that are semantically related and might change together. It is a general
purpose mechanism to organize elements into groups to provide better structure for
system model.
Ui
web login
Domain
Technical s ervices
Payment
IMPLEMENTATION:
WELCOME FORM:
147
LOGIN FORM:
148
REGISTRATION FORM:
DOWNLOAD FORM:
SOURCE CODING:
149
Private Sub Command1_Click()
Form2.Show
End Sub
Form5.Show
End Sub
Form6.Show
End Sub
Form3.Show
End Sub
Form8.Show
End Sub
Form7.Show
End If
150
End Sub
Form3.Show
End Sub
Data1.Recordset.AddNew
Form5.Show
End Sub
End Sub
Form4.Show
End Sub
Form10.Show
151
End Sub
Me.Hide
End Sub
Form9.Show
End If
End Sub
Data1.Recordset.AddNew
End Sub
Form10.Show
End Sub
Form2.Show
End Sub
152
Private Sub Form_Load()
End Sub
RESULT:
Thus, the above project for E-book management system has been successfully
executed and codes are generated.
153
EX.NO:10 RECRUITMENT SYSTEM
DATE:
AIM:
To draw the UML diagrams and to implement coding for Recruitment System.
PROBLEM DEFINITION:
The recruitment system allows the job seekers to enrol their names through the
process of registration. The employer also can act the list of available candidates and
shortlist for the company requirement. This system makes the tasks of the job seeker
easier rather than waiting in queue for enrolment.
MODULES:
1. Administrator
3. Company (organization)
MODULE DESCRIPTION:
In this project we have defined different modules to enable the recruitment system
in successful manner.
ADMINISTRATOR:
It has the full authority over the website. He can view all the registered users and
have the power to delete them. She/he can edit the webs and update them. She/he can
view all the company details also.
154
JOB SEEKER:
A Candidate can register himself after registration. He will be directed to his home.
Here, he can update his profile change password and see the examination details and
company details.
COMPANY:
DESIGN PHASE:
Uml provides use case diagram notation to illustrate the names of use case and
author relationship between them. Use case diagram and case relationship are secondary
in use case work usecase text document.
155
CLASS DIAGRAM:
The Uml class diagram is to illustrate class interfaces and their actions. They are
used for static object modelling, we have already introduced and used their uml diagram
while domain modelling.
ACTIVITY DIAGRAM:
A Uml activity diagram shows sequential and parallel activities in a process,
workflows, data flows and compiler algorithm.
156
SEQUENCE DIAGRAM:
A sequence diagram illustrate a kind of format in which each object interact via
message. It is generalize between two or more specialized diagram.
COLLABRATION DIAGRAM:
Collaboration diagram illustrate that object interact on a graph or network format
in which object can be placed where in the diagram. In collabration diagram the object
can be placed in anywhere on the diagram. The collabration comes from sequence
diagram.
157
STATE TRANSITION DIAGRAM:
A Uml state machine represents the interaction events and states of an object and
behaviour of an object in reaction to an event. Transaction shown as allows labelled with
their event. It is included with initial pseudo state and fins end state.
COMPONENT DIAGRAM:
Component diagrams provide a physical view of the current model. A component
diagram shows the organizations and dependencies among software components,
including source code components, binary code components, and executable components.
These diagrams also show the externally-visible behavior of the components by
displaying the interfaces of the components.
158
DEPLOYMENT DIAGRAM:
Deployment diagrams show the physical configurations of software and hardware.
A Deployment diagram shows how and where the system will be deployed. Physical
machines and processors are reflected as nodes, and the internal construction can be
depicted by embedding nodes or artifacts. As artifacts are allocated to nodes to model the
system's deployment, the allocation
PACKAGE DIAGRAM:
159
IMPLEMENTATION:
FORM 1:
FORM 2:
160
FORM 3:
FORM5:
161
FORM 8:
FORM 9:
162
FORM 11:
FORM 12:
163
SOURCE CODING:
FORM 1:
Form4.Show
End Sub
Form2.Show
End Sub
End Sub
FORM 2:
Form3.Show
End Sub
Form3.Show
End Sub
FORM 3:
Form5.Show
164
End Sub
FORM 4:
Form5.Show
End If
End Sub
FORM 5:
Form6.Show
End Sub
Form14.Show
End Sub
Form10.Show
End Sub
Form10.Show
End Sub
Form12.Show
165
End Sub
Form13.Show
End Sub
Form1.Show
End Sub
End Sub
FORM 6:
Form6.Show
End Sub
Form14.Show
End Sub
Form10.Show
End Sub
Form10.Show
End Sub
End Sub
Form13.Show
End Sub
Form1.Show
End Sub
End Sub
FORM 7:
Form6.Show
End Sub
Form16.Show
End Sub
End Sub
FORM 8:
Form6.Show
End Sub
167
Private Sub Command2_Click()
End Sub
End Sub
FORM 9:
Form6.Show
End Sub
End Sub
FORM 10:
Form5.Show
End Sub
End Sub
FORM 11:
Form5.Show
End Sub
FORM 12:
168
Private Sub Form_Load()
End Sub
FORM 13:
Form6.Show
End Sub
Form6.Show
End Sub
Form6.Show
End Sub
Form6.Show
End Sub
Form6.Show
End Sub
Form6.Show
End Sub
Form6.Show
169
End Sub
Form5.Show
End Sub
End Sub
FORM 14:
Form15.Show
End Sub
End Sub
FORM 15:
Form5.Show
End Sub
End Sub
RESULT:
Thus the project for RECRUITMENT SYSTEM has been executed and codes are
generated successfully.
170
EX.NO:11 FOREIGN TRADING SYSTEM
DATE:
AIM:
To Draw the UML Diagrams and to implement coding for Foreign Trading
System.
PROBLEM DEFINITION:
The main objective of the project is to build a Foreign Trading System which
assists many Globalized Organizations to improve their trade of commodities and
services to various clients of the world. The project is developed using Rational Rose
Software developed by IBM Corporation. The duration of the project is three weeks.
3. Foreign Trading System can be used round the clock, and it's very safe and
secure for the clients.
MODULE DESCRIPTION:
LOGIN:
In this module, we can perform operation such as enter the user name and
password. If the user name and password is correct then it can be entered into the specific
web page. Otherwise re-enter the user name and password at the particular time only.
171
SOLUTION:
In this module, we can select any one of the operation such as product details,
payment and shipping, maintenance cell by clicking the required operation. Otherwise,
click the back operation to go back to the login form.
PRODUCT DETAILS:
In this module, we can see the details of the products available. By clicking the
back operation, we can move to the previous web page.
In this module, the organisation checks the details of the product which are selected
by the customer. The organisation can check price, the card is valid or invalid, sufficient
balance is available are not and the amount is paid or not by selecting the appropriate
operation.
In this module, we can give the problem of the product. the problem can resolve now
or later by selecting the appropriate operation.
CARD VALIDATION:
PRICE DETAILS:
172
DESIGN PHASE:
ORDER OF PRODUCT
SUPPLIER
QUALITY
<<EXT END>>
<<EXT END>> PAYMENT
PAY BY CASH
SHIP
FLIGHT
CLASS DIAGRAM:
A class diagram in the unified modelling language (UML) is a type of static structure
diagram that describes the structure of a system by showing the system's classes, their
attributes, and the relationships between the classes. It is represented using a rectangle
with three compartments. Top compartment have the class name, middle compartment
the attributes and the bottom compartment with operations.
173
SEQUENCE DIAGRAM:
A sequence diagram in Unified Modelling Language (UML) is a kind of interaction
diagram that shows how processes operate with one another and in what order. It is a
construct of a Message Sequence Chart. There are two dimensions.
1. Vertical dimension-represent time.
2. Horizontal dimension-represent different objects.
COMPANY DETAILS
REGISTRATION
UPDATE
PERMISSION
PURCHASE PRODUCT
UPDATE
174
COLLABORATION DIAGRAM:
A collaboration diagram, also called a communication diagram or interaction
diagram,. A sophisticated modelling tool can easily convert a collaboration diagram into
a sequence diagram and the vice versa. A collaboration diagram resembles a flowchart
that portrays the roles, functionality and behaviour of individual objects as well as the
overall operation of the system in real time.
COMPANY COMPAN
DB Y
6: UPDATE
3: UPDATE 4: PERMISSION
1: COMPANY DETAILS 8: DELIVER THE PRODUCT
PRODU CUSTOM
CT ER
5: PURCHASE PRODUCT
HOME
PAGE
ADVERRTI
SE
ORDER CANCEL
CHECK HANDLE
DETAILS PAYMENT
DELIVER
PRODUCTS
175
ACTIVITY DIAGRAM:
Activity diagrams are graphical representations of workflows of stepwise activities
and actions with support for choice, iteration and concurrency. In the Unified Modelling
Language, activity diagrams can be used to describe the business and operational step-by-
step workflows of components in a system. An activity diagram shows the overall flow of
control. An activity is shown as an rounded box containing the name of the operation.
BLUE PRINT OF
THE PRODUCT
ADVERTISE
THE PRODUCT
ORDER THE
PRODUCT
ORDER CANCEL
HANDLE THE
PAYMENT
CHECK
DETAILS
TRANSPORT
THE PRODUCT
DELIVER THE
PRODUCT
COMPONENT DIAGRAM:
The component diagram's main purpose is to show the structural relationships
between the components of a system. It is represented by boxed figure. Dependencies are
represented by communication association.
FOREIGN TRADING
SYSTEM
176
DEPLOYMENT DIAGRAM:
A deployment diagram in the unified modelling language serves to model the
physical deployment of artifacts on deployment targets. Deployment diagrams show "the
allocation of artifacts to nodes according to the Deployments defined between them. It is
represented by 3-dimentional box. Dependencies are represented by communication
association.
FOREIGN
ORGANI TRADING VENDE
ZATION R
PRODU
ORDER CT
PACKAGE DIAGRAM :
A package diagram in unified modelling language that depicts the dependencies
between the packages that make up a model. A Package Diagram (PD) shows a grouping
of elements in the OO model, and is a Cradle extension to UML. PDs can be used to
show groups of classes in Class Diagrams (CDs), groups of components or processes in
Component Diagrams (CPDs), or groups of processors in Deployment Diagrams (DPDs).
There are three types of layer.
They are,
a. User interface layer
b. Domain layer
c. Technical services layer
177
User Interface
Domain
Order Payments
orders
Product Delivery
Product Check
Detail Update
Product Factory
Technical Service
MS Access
IMPLEMENTATION:
FORM 1:
FORM 3:
178
FORM 4:
FORM 5:
FORM 6:
179
FORM 7:
FORM 8:
SOURCE CODE:
FORM 1:
180
End If
End Sub
FORM 2:
182
FORM 7:
Form9.Show
End Sub
Private Sub Command2_Click()
MsgBox "Go Back"
Form7.Show
End Sub
FORM 9:
Form1.Show
End Sub
RESULT:
Thus the application for foreign trading system was created successfully and UML
diagrams were drawn using rational rose software.
183
EX.NO:12 CONFERENCE MANAGEMENT SYSTEM
DATE:
AIM:
PROBLEM DEFINITION:
This problem deals with the conference management system. As a student staff
members are required to view the details of conference that is going to be conducted in
various colleges or institution and to attend the conference to gain knowledge from the
conference. Administrator will add the details about the various conferences available for
various department students and staff members.
MODULES:
1. Administrator
2. Reviewer
3. Participant
MODULE DISCRIPTION:
184
1. ADMINISTRATOR:
Administrator is the person who assign reviewer for the submitted paper, assigns
important dates, assign topics etc.
2. REVIEWER:
Reviewer is the person who assigns reviewer for the submitted by the participated
and gives the status.
3. PARTICIPANT:
Participant is the person who submits a paper for the review of authors and if the
papers get selected they attend the conference.
DESIGN PHASE:
USECASE DIAGRAM:
Uml provides use case diagram notation to illustrate the names of use case and
author relationship between them. Use case diagram and case relationship are secondary
in use case work use case text document.
<<include>>
sign up register
Reviewer
submit paper
<<extend>>
participant
status
assign date
<<include>>
Management
paper presentation held conference
certificates
185
CLASS DIAGRAM:
The Uml class diagram is to illustrate class interfaces and their actions. They are
used for static object modelling, we have already introduced and used their uml diagram
while domain modelling.
ACTIVITY DIAGRAM:
Uml activity diagram shows sequential and parallel activities in a process, work
flows, data flows and compiler algorithm.
186
user manager database
start
conference
set date
often
registration
signup for
signup register
login for
receivers
aunthenticatio
n
select paper
comment on
paper
receive send
notification notification rank paper
SEQUENCE DIAGRAM:
Sequence diagrams illustrate a kind of format in which each object interact via
message. It is generalize between two or more specialized diagram.
187
COLLABORATION DIAGRAM:
CEO
author
Student
Databas 3. verifies
e 7. Verifies
9. Updates web_confe
4. updates rence
STATECHART DIAGRAM:
A Uml state machine represents the interaction events and states of an object and
behaviour of an object in reaction to an event. Transaction shown as allows labelled with
their event. It is included with initial pseudo state and finds end state.
188
start
login check
comments
cancellatio
n
registration check log out
massage
publish
cancel paper
submission submission
message
review delivery
comments decision
making
exit
COMPONENT DIAGRAM:
author
publis her
s ys tem
adm in
paper
189
DEPLOYMENT DIAGRAM:
conference
management system
preemptive
paper and its
<process name> devices
<thread name>
publisher
author
PACKAGE DIAGRAM:
190
user interface
login
domain
new entry
status check
comment decistion
technical service
consistency
database
IMPLEMENTATION PHASE:
HOMEPAGE FORM:
191
TOPICS:
SIGNUP FORM:
192
LOGIN FORM:
193
PAPER SUBMISSION FORM:
194
AFTER REVIEWER LOGIN FORM:
195
SOURCE CODING:
FORM 1:
Form9.Show
End Sub
Form4.Show
End Sub
Form2.Show
End Sub
End
End Sub
Form12.Show
End Sub
FORM 2:
LoginSucceeded = False
Me.Hide
196
Form4.Show
End Sub
LoginSucceeded = True
Form3.Show
Me.Hide
Else
txtPassword.SetFocus
End If
End Sub
FORM 3:
Form10.Show
End Sub
Form12.Show
End Sub
197
Private Sub Command3_Click()
frmLogin.Show
End Sub
FORM 4:
frmLogin.Show
End Sub
Form6.Show
End Sub
Form1.Show
End Sub
FORM 5:
Form7.Show
End Sub
Form4.Show
End Sub
FORM 6:
Else
MsgBox "success"
Adodc1.Recordset.Update
Form8.Show
End If
End Sub
Form6.Show
End Sub
FORM 7:
Form1.Show
End Sub
Form9.Show
End Sub
FORM 8:
End If
199
If Text6.Text = Text7.Text Then
Adodc1.Recordset.Update
Form4.Show
End If
End Sub
Form1.Show
End Sub
Adodc1.Recordset.AddNew
End Sub
FORM 9:
Adodc1.Recordset.Update
MsgBox "success"
Form11.Show
End Sub
Adodc1.Recordset.AddNew
End Sub
FORM 10:
Form12.Show
End Sub
RESULT:
Thus the UML diagrams for Conference Management System are drawn and the
implementation is done successfully.
201
EX NO:13 BUSINESS PROCESS OUTSOURCING
DATE: MANAGEMENT SYSTEM
AIM:
To develop a project Business process outsourcing (BPO) management system
using Rational Rose software and to implement the software in VB.
PROBLEM ANALYSIS AND PROJECT PLANNING:
Generally outsourcing can be defined as an organization entering into a contract
with another organization to operate and managed one or more of its business processes.
There are many problems faced by the BPO one among them is meeting their targets and
leaving the concern very often and switch to another company. In this project we deal
with the inbound system of the BPO. In inbound system the agent calls the customer
from his database to sell his product.
PROBLEM STATEMENT:
In this BPO inbound system , the process undergoing is that the agent tries to sell
his product so that the agent gets the details of the customer from the database and
pitches about his product and makes the sales successful. The communication is done
through the telephone. Telephone is the major component used for this customer
satisfaction service. The steps are as follows:
• The agent login to the website and enters the username and password . It checks
for authorization .
• If the username and password is correct , it allows the agent to get the details of
the customer from the database.
• Now the agent makes the call to the customer and pitches about the product.
• If the customer is satisfied , agent sells the product else disconnects the call.
• Agent proceeds with the another call
202
MODULES:
Modules in this Project are,
1. INTRODUCTION
2 . OBJECTIVE
3 . PURPOSE
4. SCOPE
5. GLOSSARY
6. OVERVIEW
7. OVERALL DESCRIPTION
8. REFERENCES
9. FUNCTIONALITY
10. USABILITY
11. PERFORMANCE
12 .SYSTEM ENVIRONMENT
13 .FUNCTIONAL
1. INTRODUCTION:
BPO is typically categorized into back office outsourcing-which includes internal
business functions such as human resources or finance and accounting, and front office
out souring-which includes customer related services such as contact centre services.
BPO that is contracted outside a company’s country is called offshore outsourcing.
2. PURPOSE:
The purpose of this system is to provide information about the customer need from
inside and outside world. With the reduction in communication costs and improved
bandwidths and associated infrastructure, BPO as a segment is witnessing massive
growth. One of the key challenges that BPO companies is that to provide data entry/data
validation services is an efficient and effective way of getting the source documents from
different customers and accurately route the same of different operators for processing.
203
3. SCOPE:
Developing a good BPO management system.BPO is a way in which it helps to
increase companies flexibility. As part of BPO, documents need to be managed
between the outsourcing company and the offshore company. Multiple clients need
to be managed by the BPO company.
4. GLOSSARY:
TERM DESCRIPTION
Customer Person who is seeking information.
Agent People who receives the query.
Database Collection of all information monitored by the BPO system.
Reader anyone visiting the site to read about BPO management system.
Software requirement
specification
A document that completely describes all the functions of a proposed system and
the constrains under which it must operate.
User Customer and reader
7. REFERENCES:
Business process outsourcing the competitive advantage by Rick L. Click, Thomas
N.Duening-2005. Srs document is referred from the standard IEEE format from
fundamentals of software engineering by Rajib Mall(2004)page no:356
8. FUNCTIONALITY:
Many customers of the process to check for its occurrence and other works. we all
have to carry over at same time.
9. USABILITY:
The user interface to make the bpo management to be efficient.
10. PERFORMANCE:
204
It is the capability about which it can perform function for many user efficiently at
the same time without any error occurrence
11. SYSTEM ENVIRONMENT:
The BPO system is embedded in a larger system involving several management
systems. we describe this environment as communication system between customer and
agent through voice chat. The administrator of the system uses FTP for moving files from
one place to another.
12. FUNCTIONAL REQUIREMENTS:
Functional requirements are those refer to the functionality of the system .i.e. what
services it will provide to the user. Non functional (supplementary) requirements pertain
to other information needed to produce the system correctly and detailed separately.
205
logi n
regi ster
employee
non-voi ce
customer
ask-query
manager
explai n
vi ewdetail s
add&detail s
update
CLASS DIAGRAM:
A class diagram in the unified modelling language (UML) is a type of static
structure diagram that describes the structure of a system by showing the system's
classes, their attributes, and the relationships between the classes. It is represented using a
rectangle with three compartments. Top compartment have the class name, middle
compartment the attributes and the bottom compartment with operations.
206
SEQUENCE DIAGRAM:
A sequence diagram in Unified Modelling Language (UML) is a kind of
interaction diagram that shows how processes operate with one another and in what
order. It is a construct of a Message Sequence Chart. There are two dimensions.
1. Vertical dimension-represent time.
2. Horizontal dimension-represent different objects.
cus tom er m anager
em ployee
nonvoicecall
as kquiries
ans wer
viewdetails
viewdetails
update
update
COLLABRATION DIAGRAM:
A collaboration diagram, also called a communication diagram or interaction
diagram. A sophisticated modelling tool can easily convert a collaboration diagram into a
sequence diagram and the vice versa. A collaboration diagram resembles a flowchart that
portrays the roles, functionality and behaviour of individual objects as well as the overall
operation of the system in real time.
1. nonvoicecall
2. askquiries
cus tomer
employe
e
3. ans wer
4. viewdetails
6. update
7. update
5. viewdetails
manager
207
STATE CHART DIAGRAM:
It is also called as State diagram .The purpose of state diagram is to understand the
algorithm in problem statement. A state is represented as a rounded box, which may
contain one or more compartments. Compartments are all optional. Types of
compartment:
*Name compartment- holds name of the state
*Internal transition- holds internal actions or activities.
State chart is shown as the small dot .
Final state is shown as circle surrounding a small dot.
login
regis ter
manager
cus tomer employee
ACTIVITY DIAGRAM:
Activity diagrams are graphical representations of workflows of stepwise activities
and actions with support for choice, iteration and concurrency. In the Unified Modelling
Language, activity diagrams can be used to describe the business and operational step-by-
step workflows of components in a system. An activity diagram shows the overall flow of
control. An activity is shown as an rounded box containing the name of the operation.
208
customer employee manager
man login
regis ter epregis ter
click button
login eplogin
ans wer
as k query
COMPONENT DIAGRAM:
The component diagram's main purpose is to show the structural relationships
between the components of systems. It is represented by boxed figure. Dependencies are
represented by communication association.
BPO management
system
DB
login
manager
register
customer employee
209
DEPLOYMENT DIAGRAM:
A deployment diagram in the unified modelling language serves to model the
physical deployment of artifacts on deployment targets. Deployment diagrams show the
allocation of artifacts to nodes according to the Deployments defined between them. It is
represented by 3-dimentional box. Dependencies are represented by communication
association.
BPO
Ma...
employe
custome e
r
manage
r
PACKAGE DIAGRAM:
A package diagram in unified modelling language that depicts the dependencies
between the packages that make up a model. A Package Diagram (PD) shows a grouping
of elements in the OO model, and is a Cradle extension to UML. PDs can be used to
show groups of classes in Class Diagrams (CDs), groups of components or processes in
Component Diagrams (CPDs), or groups of processors in Deployment Diagrams (DPDs).
There are three types of layer. They are
• User interface layer
• Domain layer
• Technical services layer
210
User Interface
VB Applicant
Domain
Technical Service
Database
IMPLEMENTATION:
FORM 1:
FORM 2:
211
FORM 4:
FORM 5:
FORM 6:
212
FORM 7:
FORM 8:
FORM 9:
213
FORM 10:
FORM 11:
FORM 12:
214
SOURCE CODE:
FORM 1:
PublicClass Form1
PrivateSub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Close()
EndSub
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
LoginForm3.Show()
EndSub
PrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
loginform2.show()
EndSub
PrivateSub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) HandlesMyBase.Load
EndSub EndClass
MANAGER LOGIN FORM:
PublicClass LoginForm3
' My.User.CurrentPrincipal = CustomPrincipal
' where CustomPrincipal is the IPrincipal implementation used to perform authentication.
' Subsequently, My.User will return identity information encapsulated in the
CustomPrincipal object
' such as the username, display name, etc.
PrivateSub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles OK.Click
Form2.Show()
Me.Close()
EndSubs
PrivateSub Cancel_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Cancel.Click
Me.Close()
EndSub
EndClass
215
FORM 2:
PublicClass Form2
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click 267
Form3.Show()
EndSub
PrivateSub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Form4.Show()
EndSub
PrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Form5.Show()
EndSub
PrivateSub Button6_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button6.Click
Form6.Show()
EndSub
PrivateSub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
EndSub
PrivateSub Button7_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
Handles Button7.Click
Me.Close()
EndSub
PrivateSub Form2_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) HandlesMyBase.Load
EndSub
EndClass
ADD EMPLOYEE:
Imports System.Data
Imports System.Data.OleDb
PublicClass Form3
Dim conn As OleDbConnection
216
Dim comm As OleDbCommand
PrivateSub Form3_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) HandlesMyBase.Load
conn = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=D:\BPO\bpo1.accdb;Persist Security Info=True;Jet OLEDB:Database
Password=admin")
conn.Open()
Dim sql AsString
comm = New OleDbCommand(sql, conn)
conn.Close()
EndSub
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
Handles Button1.Click
If TextBox1.Text = ""And TextBox2.Text = ""Then
MsgBox(" enter the name")
ElseIf TextBox2.Text = ""Then
MsgBox(" enter the father's name")
ElseIf TextBox3.Text = ""Then 268
MsgBox(" enter the DOB")
ElseIf TextBox4.Text = ""Then
MsgBox(" enter the address")
ElseIf TextBox5.Text = ""Then
MsgBox(" enter the contact no")
Else
conn.Open()
comm.Connection = conn
comm.CommandText = "insert into table1(name,fname,dob,address,contact) values('"&
TextBox1.Text &"', '"& TextBox2.Text &"','"& TextBox3.Text &"','"& TextBox4.Text
&"','"& TextBox5.Text &"')"
comm.ExecuteNonQuery()
conn.Close()
MsgBox("REGISTER SUCCESSFULLY")
Me.Close()
EndIf
217
EndSub
PrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Me.Close()
EndSub
PrivateSub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
If TextBox1.Text = ""Then
MsgBox("first enter name")
Else
comm = New OleDbCommand("delete from table1 where name =@name", conn)
conn.Open()
comm.Parameters.AddWithValue("@name", TextBox1.Text)
comm.ExecuteNonQuery()
MsgBox("EMPLOYEE DELETED")
conn.Close()
Me.Close()
EndIf
EndSub
EndClass
EMPLOYEE LIST:
PublicClass Form5
PrivateSub Form5_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) HandlesMyBase.Load
'TODO: This line of code loads data into the 'DataSet1.Table1' table. You can move, or
remove it, as needed.
Me.Table1TableAdapter.Fill(Me.DataSet1.Table1)
EndSub
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Close()
EndSub
EndClass 269
ADD CUSTOMER:
Imports System.Data
218
Imports System.Data.OleDb
PublicClass Form4
Dim conn As OleDbConnection
Dim comm As OleDbCommand
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
If TextBox1.Text = ""And TextBox2.Text = ""Then
MsgBox(" enter the name")
ElseIf TextBox2.Text = ""Then
MsgBox(" enter the father's name")
ElseIf TextBox3.Text = ""Then
MsgBox(" enter the DOB")
ElseIf TextBox4.Text = ""Then
MsgBox(" enter the address")
ElseIf TextBox5.Text = ""Then
MsgBox(" enter the contact no")
Else
conn.Open()
comm.Connection = conn
comm.CommandText = "insert into table1(name,fname,dob,address,contact) values('"&
TextBox1.Text &"', '"& TextBox2.Text &"','"& TextBox3.Text &"','"& TextBox4.Text
&"','"& TextBox5.Text &"')"
comm.ExecuteNonQuery()
conn.Close()
MsgBox(" REGISTER SUCCESSFULLY")
Me.Close()
EndIf
EndSub
PrivateSub Form4_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) HandlesMyBase.Load
conn = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=D:\BPO\bpo2.accdb;Persist Security Info=True;Jet OLEDB:Database
Password=admin")
conn.Open()
Dim sql AsString
219
comm = New OleDbCommand(sql, conn)
conn.Close()
EndSub
PrivateSub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
If TextBox1.Text = ""Then
MsgBox("first enter name")
Else
comm = New OleDbCommand("delete from table1 where name =@name", conn)
conn.Open()
comm.Parameters.AddWithValue("@name", TextBox1.Text)
comm.ExecuteNonQuery()
MsgBox("CUSTOMER DELETED") 270
conn.Close()
Me.Close()
EndIf
EndSub
EndClass
CUSTOMER LIST:
PublicClass Form6
PrivateSub Form6_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) HandlesMyBase.Load
'TODO: This line of code loads data into the 'DataSet2.Table1' table. You can move, or
remove it, as needed.
Me.Table1TableAdapter.Fill(Me.DataSet2.Table1)
EndSub
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Close()
EndSub
EndClass
EMPLOYEE LOGIN:
PublicClass LoginForm2
' My.User.CurrentPrincipal = CustomPrincipal
' where CustomPrincipal is the IPrincipal implementation used to perform authentication.
220
' Subsequently, My.User will return identity information encapsulated in the
CustomPrincipal object
' such as the username, display name, etc.
PrivateSub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles OK.Click
Form7.Show()
Me.Close()
EndSub
PrivateSub Cancel_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Cancel.Click
Me.Close()
EndSub
PrivateSub LoginForm2_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) HandlesMyBase.Load
EndSub
EndClass
CUSTOMER LOGIN:
Imports System.Data
Imports System.Data.OleDb
PublicClass Form7
Dim provider AsString 271
Dim dataFile AsString
Dim connString AsString
Public myConnection As OleDbConnection = New OleDbConnection
Public dr As OleDbDataReader
PrivateSub Form7_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) HandlesMyBase.Load
'TODO: This line of code loads data into the 'DataSet3.Table1' table. You can move, or
remove it, as needed.
Me.Table1TableAdapter.Fill(Me.DataSet3.Table1)
'Dim conn As OleDbConnection
provider = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source="
221
dataFile = "D:\BPO\bpo2.accdb;Persist Security Info=True;Jet OLEDB:Database
Password=admin"
'provider = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source ="
'dataFile = "C:\Users\Jimmy\Desktop\Products.accdb" ' Change it to your Access
Database location
connString = provider & dataFile
myConnection.ConnectionString = connString
EndSub
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
myConnection.Open()
'DescriptionText.Clear()
'CostText.Clear()
'PriceText.Clear()
Dim str AsString
str = "SELECT * FROM table1 WHERE (name = '"& ComboBox1.Text &"')"
Dim cmd As OleDbCommand = New OleDbCommand(str, myConnection)
dr = cmd.ExecuteReader
While dr.Read()
TextBox1.Text = dr("contact").ToString
TextBox2.Text = dr("address").ToString
TextBox3.Text = dr("fname").ToString
TextBox4.Text = dr("dob").ToString
'DescriptionText.Text = dr("Description").ToString
'CostText.Text = dr("Cost").ToString
'PriceText.Text = dr("Price").ToString
EndWhile
myConnection.Close()
'Form6.Show()
EndSub
PrivateSub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Me.Close()
EndSub
222
PrivateSub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Form8.Show()
EndSub
EndClass 272
QUERY:
PublicClass Form8
PrivateSub Form8_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) HandlesMyBase.Load
Me.Table1TableAdapter2.Fill(Me.DataSet6.Table1)
EndSub
PrivateSub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
If ComboBox1.Text = "Washing Machine"Then
Form9.Show()
ElseIf ComboBox1.Text = "Refrigerator"Then
Form11.Show()
ElseIf ComboBox1.Text = "TV"Then
Form12.Show()
ElseIf ComboBox1.Text = "Micro Owen"Then
Form13.Show()
EndIf
EndSub
EndClass
RESULT:
Thus the application for BPO management system was created successfully and
UML diagrams were drawn using rational rose software.
223
EXNO:14 LIBRARY MANAGEMENT SYSTEM
DATE:
AIM :
To develop the Library Management System using Rational Rose Software and to
implement the software in visual basic.
PROBLEM STATEMENT:
Library Management system is where the books can be collected every semester
and must be returned at the end of the semester. The system must have some options for
new member to enrol 1 for membership by paying deposit. A provision for getting six or
seven books per semester. Membership can be renewed by using the registered number.
The deposit must be refunded on termination of membership. A database must be
maintained to guide the issues to track the details of the student. Search option must be
provided so that the member can search for the availability of the particular books.
MODULE DESCRIPTION:
MODULE 1: REGISTRATION
The user or the student must register first by using his\her password and the
following user id and then the validity of the password is checked. If the user id and the
password is correct then allow issue or else reject.
Allow the user to search for the books that he\she requires. Then make request for
display. Then display the following book details.
224
MODULE 3: PREVIOUS BOOK HISTORY
Check out how many books are allowed for a person to borrow. If the number of
books allowed less than the number books borrowed then allow the user to borrow. I f it
is in reverse then reject.
If the book is not returned within the due date then calculate the fine
amount to be paid. If the book is returned within the due date then no need to calculate
the fine amount.
MODULE 6: LOGOUT
The user must log out from the book bank after borrowing\returning the book.
DESIGN PHASE:
225
LIBRARY MANAGEMENT SYST EM
Submi t Id Card
Verify Id Card
Issue Books
Suppli er
CLASS DIAGRAM :
A class diagram in the unified modelling language (UML) is a type of static structure
diagram that describes the structure of a system by showing the system's classes, their
attributes, and the relationships between the classes. It is represented using a rectangle
with three compartments.
226
SEQUENCE DIAGRAM:
A sequence diagram in Unified Modelling Language (UML) is a kind of
interaction diagram that shows how processes operate with one another and in what
order. It is a construct of a Message Sequence Chart.
submit id card
verify id card
available book
update
COLLABRATION DIAGRAM:
227
1: submit id card
3: request to issue book
student 8: submit the book
librarian
2: verify id card
6: Issue the book
5: available book
supplier
7: store the details
9: update
librarian
database
s tudent librarian
reques t
book
proof check
valid
book
databas e
available
book is s ue
update
databas e
228
ACTIVITY DIAGRAM :
Activity diagrams are graphical representations of workflows of stepwise activities
and actions with support for choice, iteration and concurrency. In the Unified Modelling
Language, activity diagrams can be used to describe the business and operational step-by-
step workflows of components in a system. An activity diagram shows the overall flow of
control. An activity is shown as an rounded box containing the name of the operation.
reques t book
s ubm it id card
verify id crad
valid id
check available
book
yes
available book
not valid
book is sue
date
update
databas e
COMPONENT DIAGRAM:
229
<<system>>
library management system
form.jsp
available
books.dll issue.dll
<<components>>
library database
DEPLOYMENT DIAGRAM:
A deployment diagram in the unified modelling language serves to model the
physical deployment of artifacts on deployment targets. Deployment diagrams show "the
allocation of artifacts to nodes according to the Deployments defined between them. It is
represented by 3-dimentional box. Dependencies are represented by communication
association.
<<clientworks tation>>
library managem ent s ys tem
s tudent
details
valid
us er
library
databas e
230
PACKAGE DIAGRAM :
A package diagram in unified modelling language that depicts the dependencies
between the packages that make up a model. A Package Diagram (PD) shows a grouping
of elements in the OO model, and is a Cradle extension to UML. PDs can be used to
show groups of classes in Class Diagrams (CDs), groups of components or processes in
Component Diagrams (CPDs), or groups of processors in Deployment Diagrams (DPDs).
There are three types of layer. They are,
a. User interface layer
b. Domain layer
c. Technical services layer
UI
Visual Basic
Domain
Technical Service
DataBase
231
IMPLEMENTATION:
FORM 1:
FORM 2:
FORM 3:
232
FORM 4:
FORM 5:
FORM 6:
233
FORM 7:
FORM 9:
FORM 10:
234
FORM 11:
FORM 12:
FORM 13:
235
FORM 14:
SOURCE CODING:
FORM 1:
Private Sub Command1_Click()
If Text1.Text = "aaaaa" And Text2.Text = "11111" Then
MsgBox ("successfully login")
Else
MsgBox ("not valid")
End If
Form2.Show
End Sub
FORM 2:
Private Sub Command1_Click()
Form3.Show
End Sub
Private Sub Command2_Click()
Form3.Show
236
End Sub
FORM 3:
Private Sub Command1_Click()
Form5.Show
End Sub
Private Sub Command2_Click()
Form4.Show
End Sub
Private Sub Command3_Click()
Form2.Show
End Sub
FORM 4:
Private Sub Command1_Click()
MsgBox ("the new account created successfully")
Form2.Show
End Sub
AddNew:
Private Sub Command2_Click()
Data1.Recordset.AddNew
End Sub
MovePrevious:
Private Sub Command3_Click()
Data1.Recordset.MovePrevious
If Data1.Recordset.EOF() = True Then
Data1.Recordset.MoveFirst
237
End If
End Sub
MoveNext:
Private Sub Command4_Click()
Data1.Recordset.MoveNext
If Data1.Recordset.EOF() = True Then
Data1.Recordset.MoveLast
End If
End Sub
DELETE:
Private Sub Command5_Click()
Data1.Recordset.Delete
Data1.Recordset.MoveNext
If Data1.Recordset.EOF() = True Then
Data1.Recordset.MovePrevious
End If
End Sub
FORM 5:
Private Sub Command1_Click()
MsgBox ("registration successfully")
Form6.Show
End Sub
ADDNEW:
Private Sub Command4_Click()
Data1.Recordset.AddNew
238
End Sub
MOVEPREVIOUS:
Private Sub Command5_Click()
Data1.Recordset.MovePrevious
If Data1.Recordset.EOF() = True Then
Data1.Recordset.MoveFirst
End If
End Sub
MOVENEXT:
Private Sub Command6_Click()
Data1.Recordset.MoveNext
If Data1.Recordset.EOF() = True Then
Data1.Recordset.MoveLast
End If
End Sub
DELETE:
Private Sub Command2_Click()
Data1.Recordset.Delete
Data1.Recordset.MoveNext
If Data1.Recordset.EOF() = True Then
Data1.Recordset.MovePrevious
End If
End Sub
FORM 6:
Private Sub Command1_Click()
239
Form7.Show
End Sub
Private Sub Command2_Click()
Form10.Show
End Sub
Private Sub Command3_Click()
Form11.Show
End Sub
FORM 7:
Private Sub Command1_Click()
Form8.Show
End Sub
FORM 8::
Private Sub Command1_Click()
MsgBox ("select the newspaper and read peacefully")
Form7.Show
End Sub
FORM 9:
Private Sub Command3_Click()
Form10.Show
End Sub
Private Sub Command4_Click()
Form10.Show
End Sub
Private Sub Command5_Click()
240
Form10.Show
End Sub
FORM 10:
Private Sub Command1_Click()
Form11.Show
End Sub
ADDNEW:
Private Sub Command2_Click()
Data1.Recordset.AddNew
End Sub
MOVEPREVIOUS:
Private Sub Command3_Click()
Data1.Recordset.MovePrevious
If Data1.Recordset.EOF() = True Then
Data1.Recordset.MoveFirst
End If
End Sub
MOVENEXT:
Private Sub Command4_Click()
Data1.Recordset.MoveNext
If Data1.Recordset.EOF() = True Then
Data1.Recordset.MoveLast
End If
End Sub
DELETE:
241
Private Sub Command5_Click()
Data1.Recordset.Delete
Data1.Recordset.MoveNext
If Data1.Recordset.EOF() = True Then
Data1.Recordset.MovePrevious
End If
End Sub
FORM 11:
Private Sub Command1_Click()
If Text1.Text = "yes" And Text2.Text = "no" Then
MsgBox (" You are Successfully Searchinge in manually")
Form12.Show
Else
MsgBox ("You are successfully searching in using computer")
End If
End Sub
FORM 12:
Private Sub Command1_Click()
Form13.Show
End Sub
Private Sub Command2_Click()
Form15.Show
End Sub
FORM 13:
Private Sub Command1_Click()
242
Form14.Show
End Sub
FORM 14:
Private Sub Command1_Click()
MsgBox ("return book successfully")
Form16.Show
End Sub
Private Sub Command2_Click()
Form12.Show
End Sub
ADDNEW:
Private Sub Command3_Click()
Data1.Recordset.AddNew
End Sub
MOVEPREVIOUS:
Private Sub Command4_Click()
Data1.Recordset.MovePrevious
If Data1.Recordset.EOF() = True Then
Data1.Recordset.MoveFirst
End If
End Sub
MOVENEXT:
Private Sub Command5_Click()
Data1.Recordset.MoveNext
If Data1.Recordset.EOF() = True Then
243
Data1.Recordset.MoveLast
End If
End Sub
DELETE:
Private Sub Command6_Click()
Data1.Recordset.Delete
Data1.Recordset.MoveNext
If Data1.Recordset.EOF() = True Then
Data1.Recordset.MovePrevious
End If
End Sub
FORM 15:
Private Sub Command1_Click()
Form16.Show
End Sub
RESULT:
Thus the application project for Library Management system was created
successfully and UML diagrams were drawn using rational rose software.
244
EX.NO:15 STUDENT INFORMATION SYSTEM
DATE:
AIM:
To draw the UML diagrams and to implement coding for student information
system.
PROBLEM DEFINITION:
The Student Information system allows the Students to enrol their names, marks,
and others through the process of registration. The Student information system makes the
tasks easier rather than waiting in queue for enrolment.
MODULES:
1. Staff
2. Student
MODULE DESCRIPTION:
In this project we have defined different modules to enable the recruitment system
in successful manner.
STAFF:
It has the full authority over the website. He can view all the registered users and
have the power to delete them. He/ She can edit the webs and update them. He/ She can
view all the company details also.
245
STUDENT:
A student can register himself after registration. He will be directed to his home.
Here, he can update his profile change password and see the examination details and
company details.
COLLEGE:
DESIGN PHASE:
USECASE DIAGRAM:
Uml provides use case diagram notation to illustrate the names of use case and
author relationship between them. Use case diagram and case relationship are secondary
in use case work usecase text document.
logi n
rol lno
<<incl ude>>
<<incl ude>>
name
student detail s
student grade
staff
logout
246
CLASS DIAGRAM:
The Uml class diagram is to illustrate class interfaces and their actions. They are
used for static object modelling, we have already introduced and used their uml diagram
while domain modelling.
univ_adm in
name
id
login
pas s
update_univ_db()
ACTIVITY DIAGRAM:
A Uml activity diagram shows sequential and parallel activities in a process,
workflows, data flows and compiler algorithm.
Log in
if valid No
yes
Enter s tudent
progress
Update db
s tore
247
SEQUENCE DIAGRAM:
A sequence diagram illustrates a kind of format in which each object interact via
message. It is generalize between two or more specialized diagram.
s tudent s taff db
login
login
s ubmit s tu details
enter s tu attendance
enter mark
view datails
view details
print details
modify details
update
view m odification
logout
logout
248
COLLABRATION DIAGRAM:
Collaboration diagram illustrate that object interact on a graph or network format
in which object can be placed where in the diagram. In collaboration diagram the object
can be placed in anywhere on the diagram. The collaboration comes from sequence
diagram.
staff
student
10: if any change say pblm
7: view datails
14: view modification
1: login 15: logout
16: logout
8: view details
13: update
12: modify details
11: print details
db 5: enter mark
4: enter stu attendance
3: submit stu details
2: login
A Uml state machine represents the interaction events and states of an object and
behaviour of an object in reaction to an event. Transaction shown as allows labelled with
their event. It is included with initial pseudo state and fins end state.
249
pers onal
details
s ubject
s taff
allocation
res ult
s tatus
other
activities
project
paper validate
pres entation
conduct
certification
PACKAGE DIAGRAM:
us er interface
domain
technical service
databas e
250
IMPLEMENTATION:
FORM 1:
FORM 2:
FORM 3:
251
FORM 6:
FORM 7:
FORM 9:
252
FORM 11:
FORM 12:
SOURCE CODE:
FORM 1:
Form2.Show
End Sub
Form12.Show
End Sub
253
FORM 2:
Form3.Show
End Sub
Form4.Show
End Sub
Form5.Show
End Sub
Form6.Show
End Sub
Form1.Show
End Sub
FORM 3:
Form1.Show
End Sub
Form2.Show
254
End Sub
FORM 4:
Form2.Show
End Sub
FORM 5:
Form2.Show
End Sub
FORM 6:
Form7.Show
Else
End If
End Sub
FORM 7:
Form8.Show
End Sub
End Sub
Form10.Show
End Sub
Form11.Show
End Sub
End Sub
FORM 8:
Form7.Show
End Sub
FORM 9:
Form7.Show
End Sub
FORM 10:
Form7.Show
End Sub
FORM 11:
256
Private Sub Command1_Click()
Form7.Show
End Sub
FORM 12:
Form1.Show
End Sub
Form1.Show
End Sub
RESULT:
Thus the project for STUDENT INFORMATION SYSTEM has been executed and
codes are generated successfully.
257