0% found this document useful (0 votes)
38 views

OOSE LAB Manual

Object oriented software engineering lab manual

Uploaded by

Ashwanth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

OOSE LAB Manual

Object oriented software engineering lab manual

Uploaded by

Ashwanth
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 222

GOVERNMENT COLLEGE OF ENGINEERING

ERODE – 638 316

RECORD NOTE BOOK

Register Number:

Certified that this is the bonafide record of work done by Selvan/Selvi

of sixth Semester

B.Tech. Information Technology branch during the academic year 2023-

2024 in the CCS356–Object Oriented Software Engineering Laboratory.

Staff In-charge Head of the Department

Submitted for the university practical examination on


at Government College of Engineering,Erode-638316.

Internal Examiner External Examiner


LIST OF EXPERIMENTS

1. Identify a software system that needs to be developed.


2. Document the Software Requirements Specification (SRS) for the identified system.
3. Identify use cases and develop the Use Case model.
4. Identify the conceptual classes and develop a Domain Model and also derive a Class Diagram from that.
5. Using the identified scenarios, find the interaction between objects and represent them using UML
Sequence and Collaboration Diagrams
6. Draw relevant State Chart and Activity Diagrams for the same system.
7. Implement the system as per the detailed design
8. Test the software system for all the scenarios identified as per the use case diagram
9. Improve the reusability and maintainability of the software system by applying appropriate design patterns.
10. Implement the modified system and test it for various scenarios.

SUGGESTED DOMAINS FOR MINI-PROJECT:

1. Passport automation system.


2. Book bank
3. Exam registration
4. Stock maintenance system.
5. Online course reservation system
6. Airline/Railway reservation system
7. Software personnel management system
8. Credit card processing
9. e-book management system
10. Recruitment system
11. Foreign trading system
12. Conference management system
13. BPO management system
14. Library management system
15. Student information system

1
TABLE OF CONTENTS

S.NO. DATE EXPERIMENT TITLE MARKS/10 SIGN.

1 Case Tools

2 Passport automation system

3 Book bank

4 Exam Registration

5 Stock maintenance system

6 Online course reservation system

7 Airline/Railway reservation system

8 Software personnel management system

9 Credit card processing

10 E-book management system

11 Recruitment system

12 Foreign trading system

13 Conference Management System

14 BPO Management System

15 Library management system

16 Student information system

2
Ex. No.: 1
CASE TOOLS
Date:

INTRODUCTION:

CASE tools known as Computer-aided software engineering tools is a


kind of component-based development which allows its users to rapidly
develop information systems. The main goal of case technology is the
automation of the entire information systems development life cycle process
using a set of integrated software tools, such as modeling, methodology and
automatic code generation. Component based manufacturing has several
advantages over custom development. The main advantages are the
availability of high quality, defect free products at low cost and at a faster
time. The prefabricated components are customized as per the requirements
of the customers. The components used are pre-built, ready-tested and add
value and differentiation by rapid customization to the targeted customers.
However the products we get from case tools are only a skeleton of the final
product required and a lot of programming must be done by hand to get a fully
finished, good product.

CHARACTERISTICS OF CASE:

Some of the characteristics of case tools that make it better than


customized development are;
 It is a graphic oriented tool.
 It supports decomposition of process.

Some typical CASE tools are:


 Unified Modeling Language
 Data modeling tools, and
 Source code generation tools

INTRODUCTION TO UML (UNIFIED MODELING LANGUAGE):

The UML is a language for specifying, constructing, visualizing, and


documenting the software system and its components. The UML is a graphical
language with sets of rules and semantics. The rules and semantics of a model
are expressed in English in a form known as OCL (Object Constraint
Language). OCL uses simple logic for specifying the properties
3
of a system. The UML is not intended to be a visual programming language.
However it has a much closer mapping to object-oriented programming
languages, so that the best of both can be obtained. The UML is much simpler
than other methods preceding it. UML is appropriate for modeling systems,
ranging from enterprise information system to distributed web based
application and even to real time embedded system. It is a very expensive
language addressing all views needed to develop and then to display system
even though understand to use. Learning to apply UML effectively starts
forming a conceptual mode of languages which requires learning.

Three major language elements:


 UML basic building blocks
 Rules that dictate how this building blocks put together
 Some common mechanism that apply throughout the language
The primary goals in the design of UML are:
1. Provides users ready to use, expressive visual modeling
language as well so they can develop and exchange
meaningful models.
2. Provide extensibility and specialization mechanisms to
extend the core concepts.
3. Be independent of particular programming languages and
development processes.
4. Provide formal basis for understanding the modeling
language.
5. Encourage the growth of the OO tools market.
6. Support higher-level development concepts.
7. Integrate best practices and methodologies.
Every complex system is best approached through a small set ofnearly
independent views of a model. Every model can be expressed at different
levels of fidelity. The best models are connected to reality. The UML defines
nine graphical diagrams:

1. Class diagram
2. Use-case diagram
3. Behavior diagram
 Interaction diagram
 sequence diagram
 collaboration diagram
 state chart diagram
 activity diagram

4
4. Implementation diagram
 Component
diagram
 Deployment
diagram

1. UML class diagram:

The UML class diagram is also known as object modeling. It is a static


analysis diagram. These diagrams show the static structure of the model. A
class diagram is a connection of static model elements, such as classes and
their relationships, connected as a graph to each other and totheir contents.

2. Use-case diagram:

The functionality of a system can be described in a number of different


use-cases, each of which represents a specific flow of events in a system. It is
a graph of actors, a set of use-cases enclosed in a boundary, communication,
associations between the actors and the use-cases, and generalization among
the use-cases.

3. Behavior diagram:

It is a dynamic model unlike all the others mentioned before. The


objects of an object oriented system are not static and are not easily
understood by static diagrams. The behavior of the class’s instance (an object)
is represented in this diagram. Every use-case of the system has an associated
behavior diagram that indicates the behavior of the object. In conjunction with
the use-case diagram we may provide a script or interaction diagram to show
a time line of events. It consists of sequence and collaboration diagrams.

4. Interaction diagram

It is the combination of sequence and collaboration diagram. It is used


to depict the flow of events in the system over a timeline. The interaction
diagram is a dynamic model which shows how the system behaves during
dynamic execution.

5. State chart diagram:


It consists of state, events and activities. State diagrams are a familiar
technique to describe the behavior of a system. They describe all of the

5
possible states that a particular object can get into and how the object's state
changes as a result of events that reach the object. In most OO techniques,
state diagrams are drawn for a single class to show the lifetime behavior of a
single object.

6. Activity diagram:

It shows organization and their dependence among the set of


components. These diagrams are particularly useful in connection with
workflow and in describing behavior that has a lot of parallel processing. An
activity is a state of doing something: either a real-world process, or the
execution of a software routine.

7. Implementation diagram:

It shows the implementation phase of the systems development, such


as the source code structure and the run-time implementation structure. These
are relatively simple high level diagrams compared to the others seen so far.
They are of two sub-diagrams, the component diagram and the deployment
diagram.

8. Component diagram:

These are organizational parts of a UML model. These are boxes to


which a model can be decomposed. They show the structure of the code itself.
They model the physical components such as source code, user interface in a
design. It is similar to the concept of packages.

9. Deployment diagram:

The deployment diagram shows the structure of the runtime system. It


shows the configuration of runtime processing elements and the software
components that live in them. They are usually used in conjunction with
deployment diagrams to show how physical modules of code are distributed
on the system.

NOTATION ELEMENTS:

These are explanatory parts of UML model. They are boxes which may
apply to describe and remark about any element in the model. They

6
provide the information for understanding the necessary details of the
diagrams.

Relations in the UML:

These are four kinds of relationships used in an UML diagram, they


are:
 Dependency
 Association
 Generalization
 Realization

Dependency:

It is a semantic relationship between two things in which a change one


thing affects the semantics of other things. Graphically a dependency is
represented by a non-continuous line.

Association:

It is a structural relationship that describes asset of links. A link is being


connected among objects. Graphically association is represented as a solid
line possibly including label.

Generalization:

It is a specialized relationship in which the specialized elements are


substitutable for object of the generalized element. Graphically it is a solid
line with hollow arrow head parent.

Realization:

It is a semantic relation between classifiers. Graphically it is


represented as a cross between generalization and dependency relationship.

Where UML can be used:

UML is not limited to modeling software. In fact it is expressive to


model non-software such as to show in structure and behavior of health case
system and to design the hardware of the system.

7
Conceptual model be UML:

UML you need to form the conceptual model of UML. This requires
three major elements:
 UML basic building blocks.
 Rules that dictate how this building blocks are put
together.
 Some common mechanism that apply throughout the
language.

Once you have grasped these ideas, you may be able to read. UML
create some basic ones. As you gain more experience in applying conceptual
model using more advanced features of this language.

Building blocks of the UML:

The vocabulary of UML encompasses these kinds of building blocks.

Use CASE definition:

Description:

A use case is a set of scenarios tied together by a common user goal.


A use case is a behavioral diagram that shows a set of use case actions and
their relationships.

Purpose:

The purpose of use case is login and exchange messages between


sender and receiver (Email client).

Main flow:

First, the sender gives his id and enters his login. Now, he enters the
message to the receiver id.

Alternate flow:

If the username and id by the sender or receiver is not valid, the


administrator will not allow entering and “Invalid password” message is
displayed.

8
Pre-condition:

A person has to register himself to obtain a login ID.

Post-condition:

The user is not allowed to enter if the password or user name is not
valid.

Class diagram:

Description:

 A class diagram describes the type of objects in system and


various kinds of relationships that exists among them.
 Class diagrams and collaboration diagrams are alternate
representations of object models.

During analysis, we use class diagram to show roles and responsibilities


of entities that provide email client system behaviors design. We use to
capture the structure of classes that form the email client system architecture.

A class diagram is represented as:

<<Class name>>
<<Attribute 1>>
<<Attribute n>>
<<Operation ()>>

Relationship used:

A change in one element affects the other

Generalization:

It is a kind of relationship

State chart:

9
Description:

 The state chart diagram made the dynamic behavior of individual


classes.
 State chart shows the sequences of states that an object goes through
events and state transitions.
 A state chart contains one state ‘start’ and multiple ‘end’ states.

The important objectives are:

Decision:

It represents a specific location state chart diagram where the work


flow may branch based upon guard conditions.

Synchronization:

It gives a simultaneous workflow in a state chart diagram. They


visually define forks and joints representing parallel workflow.

Forks and joins:

 A fork construct is used to model a single flow of control.


 Every work must be followed by a corresponding join.
 Joints have two or more flow that unit into a single flow.

State:

A state is a condition or situation during a life of an object in which it


satisfies condition or waits for some events.
Transition:

It is a relationship between two activities and between states and


activities.

Start state:

A start state shows the beginning of a workflow or beginning of a


state machine on a state chart diagram.

End state:

10
It is a final or terminal state.

Activity diagram

Description:

Activity diagram provides a way to model the workflow of a


development process. We can also model this code specific information such
as class operation using activity diagram. Activity diagrams can model
different types of diagrams. There are various tools involved in the activity
diagram.

Activity:

An activity represents the performance of a task on duty. It may also


represent the execution of a statement in a procedure.

Decision:

A decision represents a condition on situation during the life of an


object, which it satisfies some condition or waits for an event.

Start state:

It represents the condition explicitly the beginning of a workflow on


an activity.

Object flow:

An object on an activity diagram represents the relationship between


activity and object that creates or uses it.

Synchronization:

It enables us to see a simultaneous workflow in an activity.

End state:
An end state represents a final or terminal state on an activity diagram
or state chart diagram.

11
Sequence diagram:

Description:

A sequence diagram is a graphical view of scenario that shows object


interaction in a time based sequence what happens first what happens next.
Sequence diagrams are closely related to collaboration diagram.
The main difference between sequence and collaboration diagram is
that sequence diagram show time based interaction while collaboration
diagram shows objects associated with each other.

The sequence diagram for the e-mail client system consists of the
following objectives:

Object:

An object has state, behavior and identity. An object is not based is


referred to as an instance.
The various objects in e-mail client system are:
 User
 Website
 Login
 Groups

Message icon:

A message icon represents the communication between objects


indicating that an action will follow. The message icon is the horizontal solid
arrow connecting lifelines together.

Collaboration diagram:

Description:

Collaboration diagram and sequence diagrams are alternate


representations of an interaction. A collaboration diagram is an interaction
diagram that shows the order of messages that implement an operation or a
transaction. Collaboration diagram is an interaction diagram that shows the
order of messages that implement an operation or a transaction.

12
Collaboration diagram shows object s, their links and their messages. They
can also contain simple class instances and class utility instances.

During, analysis indicates the semantics of the primary and secondary


interactions. Design, shows the semantics of mechanisms in the logicaldesign
of system.
Toggling between the sequence and collaboration diagrams

When we work in either a sequence or collaboration diagram, it is


possible to view the corresponding diagram by pressing F5 key.

CONCLUSION:
Thus the study for case tools was done.

13
Ex no:2
PASSPORT AUTOMATION SYSTEM
Date:

AIM:
To create an automated system to perform the Passport Process.

(I) PROBLEM STATEMENT:

Passport Automation System is used in the effective dispatch of


passport to all of the applicants. This system adopts a comprehensive
approach to minimize the manual work and schedule resources, time in a
cogent manner. The core of the system is to get the online registration form
(with details such as name, address etc.,) filled by the applicant whose
testament is verified for its genuineness by the Passport Automation System
with respect to the already existing information in the database.

(II) SOFTWARE REQUIREMENT SPECIFICATION:

2.1 SOFTWARE INTERFACE

(III)
• Front End Client –
• The applicant and Administrator onlineinterface is built using HTML
and CSS. The Administrators’ local interface is built using VBscript.

• Back End
• MySQL.

2.2 HARDWARE INTERFACE

The server is directly connected to the client systems. The clientsystems


have access to the database in the server.

14
( III ) USECASE DIAGRAM :

dispatch passport

Fig.3. USECASE DIAGRAM FOR PASSPORT AUTOMATION


SYSTEM

(IV) ACTIVITY DIAGRAM:

Fig.4.1. ACTIVITY DIAGRAM FOR REGISTER

15
Fig.4.2. ACTIVITY DIAGRAM FOR ADMINISTRATION

Fig.4.3. ACTIVITY DIAGRAM FOR CHECKING STATUS

16
(V) CLASS DIAGRAM:

The class diagram, also referred to as object modeling is the main static
analysis diagram. The main task of object modeling is to graphically show
what each object will do in the problem domain. The problem domain
describes the structure and the relationships among objects.
The Passport Automation system class diagram consists of four
classesPassport Automation System
1. New registration
2. Gender
3. Application Status
4. Admin authentication
5. Admin Panel

Fig.5. CLASS DIAGRAM FOR PASSPORT AUTOMATION SYSTEM

17
(VI) INTERACTION DIAGRAM:

A sequence diagram represents the sequence and interactions of a


given USE-CASE or scenario. Sequence diagrams can capture most of the
information about the system. Most object to object interactions and
operations are considered events and events include signals, inputs, decisions,
interrupts, transitions and actions to or from users or external devices.
An event also is considered to be any action by an object that sends
information. The event line represents a message sent from one object to
another, in which the “form” object is requesting an operation be performed
by the “to” object. The “to” object performs the operation using a method that
the class contains.
It is also represented by the order in which things occur and how the
objects in the system send message to one another.
The sequence diagram for each USE-CASE that exists when a user
administrator, check status and new registration about passport automation
system are given.

18
administrator system admin panel application
database

Fig.6.1.SEQUENCE DIAGRAM FOR ADMINISTRATOR

1: 1.username\password 2: authetication suceed


admin
panel
administ system
rator

5: enter applicant id to process 4: details of application dispatched

7: dispatch eligible passports

6: give details

3: details of application yet to be released

databas applicati
e on

Fig.6.2.COLLABORATION DIAGRAM FOR ADMINISTRATOR

The diagrams show the process done by the administrator to the


Passport Automation system. The applicant has to enter his details. The
19
details entered are verified by the administrator and the applicant is approved
if the details match then the passport is dispatch, otherwise an appropriate
error message is displayed.

applicant
applicant system

database

1: enter applicant id

2: fetch details for the applicant

3: display the status

Fig.6.3.SEQUENCE DIAGRAM FOR CHECKING STATUS

1: enter applicant id
3: display the status

Fig.6.4.COLLABORATION DIAGRAM FOR CHECKING STATUS

20
The diagrams show the applicant enters his id and the system fetch the
details from the database and display the status.

applicant database
system

Fig.6.5.SEQUENCE DIAGRAM FOR NEW REGISTRATION

1: request for registeration


3: fill in details
4: submit
applicant
system

5: give applicatino id
2: registeration form

6: store full deatils

databas
e

Fig.6.6.COLLABORATION DIAGRAM FOR NEW REGISTRATION

21
The diagrams show the applicant request the system for registration and
the system provide the register form and applicant fill the form and submit
and the system give the applicant id. The database stores the full details.
(VII) PARTIAL LAYERD LOGICAL ARCHITECTURE DIAGRAM

UI

Swing Text

Passport auto PassAuto


system Console

Domain

Registration Admin panel

Register Cancel Process Balance

Authentication

Login

Technical Services

Persistence Log4J
SOAP

DBFacade

22
(VIII) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM
Deployment diagrams are used to visualize the topology of the physical
components of a system where the software components are deployed.

<<client
<<database>>
workstation>>
:MySQL
:GenericPC

SQL HTT

<<server>> :T
omcat6

DEPLOYMENT DIAGRAM

COMPONENT DIAGRAM

Component diagrams are used to visualize the organization and relationship


among components in system

23
CODING:
home.frm

Private Sub Form_Load()


usr.Text = ""
pwd.Text = ""
End Sub

Private Sub Image4_Click()


Dim a As New system
a.verify
End Sub
Private Sub Image6_Click()
home.Hide
apply.show
End Sub

Private Sub Image8_Click()


home.Hide
info.show
End Sub

apply.frm

Private Sub Image3_Click()


apply.Hide
home.show
End Sub

Private Sub Label1_Click()


apply.Hide
ao1.show
End Sub

Private Sub Label2_Click()


apply.Hide
ao2.show
24
End Sub

ao1.frm/ao2.frm

Private Sub Command1_Click()


Adodc1.Recordset.MoveLast
Dim a As Integer
a = Adodc1.Recordset.RecordCount
With Adodc1.Recordset
.AddNew

!passportoffice = Combo1.Text
!firstname = Text1.Text
!gender = Combo3.Text
!placeofbirth = Text4.Text
!qualification = Text6.Text
!identificationmark = Text16.Text
!presentaddress = Text5.Text
!phoneno = Val(Text7.Text + Text10.Text)
!emailid = Text12.Text
!maritalstatus = Combo4.Text
!fathersname = Text13.Text
!ddchequeno = Val(Text20.Text)
!ddchequedate = Text18.Text
!district = Text19.Text
!lastname = Text2.Text
!dateofbirth = Val(Text3.Text)
!districtorcountrys = Text8.Text
!profession = Text9.Text
!Height = Val(Text17.Text)
!permanentaddress = Text22.Text
!mobileno = Val(Text11.Text)
!spousesname = Text14.Text
!mothersname = Text15.Text
!bankname = Combo5.Text
!passno = a + 1
.Update
End With
25
MsgBox (" Submit Success")
ao2.Hide
statreg.show
End Sub

Private Sub Command2_Click()


Text1.Text = " "
Text4.Text = " "
Text6.Text = " "
Text16.Text = " "
Text5.Text = " "
Text7.Text = " "
Text10.Text = " "
Text12.Text = " "
Text13.Text = " "
Text20.Text = " "
Text18.Text = " "
Text19.Text = " "
Text2.Text = " "
Text3.Text = " "
Text8.Text = " "
Text9.Text = " "
Text17.Text = " "
Text22.Text = " "
Text11.Text = " "
Text14.Text = " "
Text15.Text = " "
End Sub

Private Sub Image3_Click()


ao1.Hide
home.show
End Sub

statreg.frm/stattat.frm

Private Sub Image5_Click()


26
home.show
End Sub

staff.frm

Private Sub Image4_Click()


staff.Hide
home.show
End Sub

Private Sub Label1_Click()


staffpg.Hide
searchname.show
End Sub

Private Sub Label2_Click()


staff.Hide
searchno.show
End Sub

searchno.frm

Private Sub Image4_Click()


Dim i As Integer
Dim c As Integer
Dim r As Integer
Dim chk As Integer
chk = 1
Adodc1.Recordset.MoveFirst
c = Adodc1.Recordset.RecordCount
For i = 0 To c
If Text1.Text = Adodc1.Recordset.Fields(2) Then
chk = 0

Text7.Text = Adodc1.Recordset.Fields(1)
Text2.Text = Adodc1.Recordset.Fields(2)
Text3.Text = Adodc1.Recordset.Fields(3)
27
Text4.Text = Adodc1.Recordset.Fields(5)
Text6.Text = Adodc1.Recordset.Fields(8)
Text14.Text = Adodc1.Recordset.Fields(9)
Text9.Text = Adodc1.Recordset.Fields(10)
Text10.Text = Adodc1.Recordset.Fields(11)
Text11.Text = Adodc1.Recordset.Fields(15)
Text12.Text = Adodc1.Recordset.Fields(16)
Text13.Text = Adodc1.Recordset.Fields(18)
Text5.Text = Adodc1.Recordset.Fields(20)
Text15.Text = Adodc1.Recordset.Fields(21)
Text17.Text = Adodc1.Recordset.Fields(22)
Text18.Text = Adodc1.Recordset.Fields(23)
Exit Sub

Else
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
MsgBox (" Not Found ")
Exit Sub
End If
End If
Next i
End Sub

Private Sub Image5_Click()


home.show
searchname.Hide
End Sub

Private Sub Image6_Click()


searchname.Hide
staff.show
End Sub

searchno.frm

28
Private Sub Image4_Click()
Dim i As Integer
Dim c As Integer
Dim r As Integer
Dim chk As Integer
chk = 1
Adodc1.Recordset.MoveFirst
c = Adodc1.Recordset.RecordCount
For i = 0 To c
If Text1.Text = Adodc1.Recordset.Fields(1) Then
chk = 0

Text7.Text = Adodc1.Recordset.Fields(1)
Text2.Text = Adodc1.Recordset.Fields(2)
Text3.Text = Adodc1.Recordset.Fields(3)
Text4.Text = Adodc1.Recordset.Fields(5)
Text6.Text = Adodc1.Recordset.Fields(8)

Text14.Text = Adodc1.Recordset.Fields(9)

Text9.Text = Adodc1.Recordset.Fields(10)
Text10.Text = Adodc1.Recordset.Fields(11)
Text11.Text = Adodc1.Recordset.Fields(15)
Text12.Text = Adodc1.Recordset.Fields(16)
Text13.Text = Adodc1.Recordset.Fields(18)
Text5.Text = Adodc1.Recordset.Fields(20)

Text15.Text = Adodc1.Recordset.Fields(21)
Text17.Text = Adodc1.Recordset.Fields(22)
Text18.Text = Adodc1.Recordset.Fields(23)
Exit Sub

Else
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
MsgBox (" Not Found ")
Exit Sub
End If
End If
Next i
29
End Sub

Private Sub Image5_Click()


home.show
searchno.Hide
End Sub

Private Sub Image6_Click()


searchno.Hide
staff.show
End Sub

staff.cls

Option Explicit

'##ModelId=4D5CDA1C03B9
Private username As Variant

'##ModelId=4D5CDA2501D4
Private pwd As Variant

'##ModelId=4D6F4A820186
Private mlClassDebugID As Long

'##ModelId=4D5CDA9501F4
Public NewProperty As system

'##ModelId=4D5CDA3001B5
Public Sub search()
On Error GoTo ErrorHandler

'## your code goes here...

Exit Sub
ErrorHandler:
Call RaiseError(MyUnhandledError, "search Sub")
End Sub
30
'##ModelId=4D5CDC070186
Public Sub login()
On Error GoTo ErrorHandler

'## your code goes here...

Dim chk As Boolean

chk = True

If usr.Text = "" Then


MsgBox " Enter Username"
chk = False
End If

If pwd.Text = "" Then


MsgBox " Enter Password"
chk = False
End If

If chk Then
If usr.Text = "sachin" Then

If pwd.Text = "master" Then


home.Hide
staff.show
Exit Sub

End If
End If

If usr.Text = "a1" Then


If pwd.Text = "b2" Then
home.Hide
staff.show
Exit Sub

End If
End If
31
If usr.Text = "sehwag" Then
If pwd.Text = "viru" Then
home.Hide
staff.show
Exit Sub
End If
End If

If usr.Text = "dhoni" Then


If pwd.Text = "mahi" Then
home.Hide
staff.show
Exit Sub

End If
End If

If usr.Text = "raina" Then


If pwd.Text = "suresh" Then
home.Hide
staff.show
Exit Sub
End If
End If

If usr.Text = "yuvraj" Then


If pwd.Text = "yuvi" Then
home.Hide
staff.show
Exit Sub
End If
End If

If chk Then
MsgBox " Invalid Username Password "
End If
End If

Exit Sub
32
ErrorHandler:
Call RaiseError(MyUnhandledError, "login Sub")
End Sub

'##ModelId=4D6F4A820177
Public Property Get ClassDebugID() As Long
On Error GoTo ErrorHandler
ClassDebugID = mlClassDebugID
Exit Property
ErrorHandler:
Call RaiseError(MyUnhandledError, "ClassDebugID Property")
End Property

system.cls

Option Explicit

'##ModelId=4D5CDC7D02CE
Private passport_no As Variant

'##ModelId=4D5CDC9B00CB
Private name As Variant

'##ModelId=4D5CDC9D0119
Private age As Variant

'##ModelId=4D6F4A820203
Private mlClassDebugID As Long

'##ModelId=4D5CDBB403A9
Public Sub applyr()
On Error GoTo ErrorHandler

'## your code goes here...

ErrorHandler:
Call RaiseError(MyUnhandledError, "applyr Sub")

End Sub
33
'##ModelId=4D5CDBBC0222
Public Sub show()
On Error GoTo ErrorHandler

'## your code goes here...

Exit Sub
ErrorHandler:
Call RaiseError(MyUnhandledError, "show Sub")
End Sub

'##ModelId=4D5CDC460271
Public Sub verify()
'## your code goes here...

Dim chk As Boolean


chk = True
If home.usr.Text = "" Then
MsgBox " Enter Username"
chk = False
End If

If home.pwd.Text = "" Then


MsgBox " Enter Password"
chk = False
End If
If chk Then
If home.usr.Text = "sachin" Then
If home.pwd.Text = "master" Then
home.Hide
staffpg.show

Exit Sub
End If
End If
If chk Then
MsgBox " Invalid Username Password "
End If
End If
End Sub

34
'##ModelId=4D6F4A8201E4
Public Property Get ClassDebugID() As Long

On Error GoTo ErrorHandler


ClassDebugID = mlClassDebugID
Exit Property
ErrorHandler:
Call RaiseError(MyUnhandledError, "ClassDebugID Property")
End Property

'##ModelId=4D6F53490109
Public Sub applyt()

user.cls

Option Explicit

'##ModelId=4D5CD9800280
Private name As Variant

'##ModelId=4D5CD98B005D
Private age As Variant

'##ModelId=4D6F4A820000
Private mlClassDebugID As Long

'##ModelId=4D5CDA7B0232
Public NewProperty As system

'##ModelId=4D5CDA9200BB
Public NewProperty2 As system

'##ModelId=4D5CD998038A

Public Sub Enterinfo()


On Error GoTo ErrorHandler

'## your code goes here...


Exit Sub
ErrorHandler:
35
Call RaiseError(MyUnhandledError, "Enterinfo Sub")
End Sub
'##ModelId=4D6F4A8103A9
Public Property Get ClassDebugID() As Long
On Error GoTo ErrorHandler
ClassDebugID = mlClassDebugID

Exit Property
ErrorHandler:
Call RaiseError(MyUnhandledError, "ClassDebugID Property")
End Property

TO IMPLEMENT APPLICATION OR DOMAIN LAYER

CODING:
FORM1:
Private Sub Command1_Click()
Form2.ShowMe.Hide
End Sub
FORM3:
Dim db As Database
Dim rs As Recordset
Private Sub Command1_Click()
Dim a As New participant1
a.sign_in
Form5.ShowMe.Hide
End Sub
Private Sub Command2_Click()
Form4.ShowMe.Hide

End Sub
Private Sub Form_Load()
36
Set db = OpenDatabase("E:\ooad lab\my stuff\partidetails.mdb")
Set rs = db.OpenRecordset("participant")
End Sub
FORM4:
Dim db As Database
Dim rs As Recordset
Private Sub Command1_Click()

rs.MoveFirst
While Not rs.EOF
If rs.Fields("name").Value = Text1.Text And rs.Fields("contact number").Value =
Text2.Text And rs.Fields("reg_id").Value = Text3.Text Then
MsgBox "One step closer......."
Form5.ShowMe.Hide
End If
rs.MoveNext
Wend
If Text1.Text = "" And Text2.Text = "" And Text3.Text = "" Then
MsgBox "Enter some details"
Form4.Hide
Form2.Show
End If
End Sub
Private Sub Form_Load()
Set db = OpenDatabase("E:\ooad lab\my stuff\partidetails.mdb")
Set rs = db.OpenRecordset("participant")
End Sub

37
FORM5:
Dim db As Database
Dim rs As Recordset
Private Sub Command1_Click()
If Combo2.Text = "0" Then
MsgBox "Sorry mate"
End If
If Combo2.Text = "1" Then
MsgBox "U r One hella Robot!!! Welcome home "
End If
End Sub
Private Sub Command2_Click()
rs.MoveLast
rs.AddNew
rs(0) = Text1.Text
rs(1) = Combo1.Text
rs(2) = Text2.Text
rs(3) = Combo2.Text
rs.Update
Text1.Text = ""
Text2.Text = ""
Combo1.Text = ""
Combo2.Text = ""
MsgBox "Thanx a ton for coming!!! U can find ur date an slot herewith. ROCK ON!!!!"
Form6.ShowMe.Hide
End Sub
Private Sub Form_Load()
Set db = OpenDatabase("E:\ooad lab\my stuff\partidetails.mdb")

38
Set rs = db.OpenRecordset("thesis_details")
End Sub

RESULT:
Thus the mini project for passport automation system has been
successfully executed and codes are generated.
39
Ex no:3
BOOK BANK SYSTEM
Date:

AIM:
To create a system to perform book bank operation

(I) PROBLEM STATEMENT:

A Book Bank lends books and magazines to member, who is registered


in the system. Also it handles the purchase of new titles for the Book Bank.
Popular titles are brought into multiple copies. Old books and magazines are
removed when they are out or date or poor in condition. A member can reserve
a book or magazine that is not currently available in the book bank, so that
when it is returned or purchased by the book bank, that person is notified. The
book bank can easily create, replace and delete information about the tiles,
members, loans and reservations from the system.

(II) SOFTWARE REQUIREMENTS SPECIFICATION:

2.1SOFTWARE INTERFACE

 Front End Client - The Student and Librarian online interface


is built using HTML and CSS. The Librarians local interface is
built using VBscript.
 Back End - MySQL

2.2HARDWARE INTERFACE

The server is directly connected to the client systems. The client


systems have access to the database in the server.

40
(III)USE-CASE DIAGRAM:

Fig 3. USE-CASE DIAGRAM FOR BOOK BANK SYSTEM

41
(IV) ACTIVITY DIAGRAM:

Fig.4. ACTIVITY DIAGRAM

42
(V) CLASS DIAGRAM:

The class diagram, also referred to as object modeling is the main static
analysis diagram. The main task of object modeling is to graphically show
what each object will do in the problem domain. The problem domain
describes the structure and the relationships among objects.

Fig.5. CLASS DIAGRAM FOR BOOK BANK SYSTEM

(VI) SEQUENCE DIAGRAM:

A sequence diagram represents the sequence and interactions of a


given USE-CASE or scenario. Sequence diagrams can capture most of the
information about the system. Most object to object interactions and
operations are considered events and events include signals, inputs, decisions,
interrupts, transitions and actions to or from users or external devices.

An event also is considered to be any action by an object that sends


information. The event line represents a message sent from one object to
another, in which the “form” object is requesting an operation be performed

43
by the “to” object. The “to” object performs the operation using a method
that the class contains.

It is also represented by the order in which things occur and how the
objects in the system send message to one another.

Fig. 6.1. SEQUENCE DIAGRAM FOR DEPOSIT PROCESS

The diagrams show the pin no is entered and check the pin .Get no
and validate password check the condition based on condition book issue and
return are done. Pay the online and renewed.

44
Fig. 6.2. COLLABORATION DIAGRAM FOR DEPOSIT PROCESS

45
(VII) PARTIAL LAYERD LOGICAL ARCHITECTURE DIAGRAM:

UI

Swing Text

BookBank BkBank
system Console

Domain

Student Book Bank

St Details Cancel Issue Return

Validity Book Details

Check Validity Display

Technical Services

Persistence Log4J
SOAP

DBFacade

46
(VIII) DIAGRAMS

Deployment diagrams are used to visualize the topology of the physical


components of a system where the software components are deployed.

<<database>> <<client
workstation>>:
:MySQL
GenericPC

SQL HTTP
Fig .8.1.DEVELOPMENT
DIAGRAM
<<server>> :To
mcat6

COMPONENT DIAGRAM

Component diagrams are used to visualize the organization and


relationships

Fig.8.2.COMPONENT DIAGRAM

47
CODE :

Codings For Student Form:

Dim rs As New ADODB.Recordset


Dim cn As New ADODB.Connection
Private Sub cmdaddnew_Click()
rs.AddNew
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
MsgBox "Record deleted"
End Sub

Private Sub cmddelete_Click()


rs.Delete
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
End Sub

Private Sub cmdfirst_Click()


rs.MoveFirst
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
End Sub

48
Private Sub cmdlast_Click()
rs.MoveLast
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
End Sub

Private Sub cmdprevious_Click()


rs.MovePrevious
If rs.BOF = True Then
MsgBox "You are already in first record"
rs.MoveFirst
End If
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
End Sub

Codings for Book form:

Dim rs As New ADODB.Recordset


Dim cn As New ADODB.Connection

Private Sub cmdaddnew_Click()


rs.AddNew
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
MsgBox "Record deleted"
End Sub

Private Sub cmddelete_Click()


49
rs.Delete
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
End Sub

Private Sub cmdfirst_Click()


rs.MoveFirst
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
End Sub
Private Sub cmdlast_Click()
rs.MoveLast
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
End Sub

Private Sub cmdprevious_Click()


rs.MovePrevious
If rs.BOF = True Then
MsgBox "You are already in first record"
rs.MoveFirst
End If
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
End Sub

Codings for Manager form:

Dim rs As New ADODB.Recordset


Dim cn As New ADODB.Connection
50
Private Sub cmdaddnew_Click()
rs.AddNew
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
MsgBox "Record deleted"
End Sub

Private Sub cmddelete_Click()


rs.Delete
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
End Sub

Private Sub cmdfirst_Click()


rs.MoveFirst
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
End Sub

Private Sub cmdlast_Click()


rs.MoveLast
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
End Sub

Private Sub cmdprevious_Click()


rs.MovePrevious
If rs.BOF = True Then
MsgBox "You are already in first record"
51
rs.MoveFirst
End If
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
End Sub

RESULTS :
Thus the mini project for Book Bank System has been successfully executedand
codes are generated .

52
EX.NO : 4
EXAM REGISTRATION SYSTEM
DATE :

AIM :
To create a system to perform the Exam Registration system

(I) PROBLEM STATEMENT:

Exam Registration system.is used in the effective dispatch of


registration form to all of the students. This system adopts a comprehensive
approach to minimize the manual work and schedule resources, time in a
cogent manner. The core of the system is to get the online registration form
(with details such as name, reg.no etc.,) filled by the student whose testament
is verified for its genuineness by the Exam Registration System with respect
to the already existing information in the database.

(II) SOFTWARE REQUIREMENT SPECIFICATION:

2.1 SOFTWARE INTERFACE


• Front End Client
• The student and Controller online interface is built using CSS
and HTML. The Exam Controller's local interface is built usingJava.
• Back End
• SQL database.

2.2 HARDWARE INTERFACE


The server is directly connected to the client systems. The clientsystems
have access to the database in the server.

(III) USECASE DIAGRAM:

The Exam Registration use cases in our system are:


1. Login
2. View exam details
3. View fees details
4. Pay fee
53
5. Display details
6. Logout

USECASE DIAGRAM :

Fig. 3.USECASE DIAGRAM FOR EXAM REGISTRATION SYSTEM

(IV) ACTIVITY DIAGRAM:

54
Fig. 4.USECASE DIAGRAM FOR EXAM REGISTRATION SYSTEM

55
(V) CLASS DIAGRAM:

The class diagram, also referred to as object modeling is the main static
analysis diagram. The main task of object modeling is to graphically show
what each object will do in the problem domain. The problem domain
describes the structure and the relationships among objects.

Fig.5. CLASS DIAGRAM FOR EXAM REGISTRATION SYSTEM

(VI) INTERACTION DIAGRAM:

A sequence diagram represents the sequence and interactions of a


given USE-CASE or scenario. Sequence diagrams can capture most of the
information about the system. Most object to object interactions and
operations are considered events and events include signals, inputs, decisions,
interrupts, transitions and actions to or from users or external devices.

56
An event also is considered to be any action by an object that sends
information. The event line represents a message sent from one object to
another

Database :
ExamController

Fig. 6.1. SEQUENCE DIAGRAM FOR REGISTRATION SYSTEM


5: conformation

3: pay
: ExamController

: student

1: login

2: confirmation 4: register

7: logout
6: view exam details

Database

Fig. 6.2. COLLABORATION DIAGRAM FOR REGISTRATION


SYSTEM

57
(VII) PARTIAL LAYERD LOGICAL ARCHITECTURE DIAGRAM:
UI

Swing Text

ExamReg ExamReg
System Console

Domain

Student ExamController

Register ViewFeeDetail Confirmation Display Fee

Authentication

Logout
Login

Technical Services

Persistence Log4J
SOAP

DBFacade

58
(VIII) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM
Deployment diagrams are used to visualize the topology of the physical
components of a system where the software components are deployed.

<<client
<<database>> workstation>>:
:MySQL GenericPC
SQL HTTP

<<server>> :To
mcat6

Fig.7.1.DEPLOYMENT DIAGRAM

COMPONENT DIAGRAM

Component diagrams are used to visualize the organization and


relationships among components in a system.

Fig.7.2.COMPONENT DIAGRAM

59
CODE:
WELCOME FORM:
Private Sub Command1_Click(Index As Integer)
Me.Hide
Unload Me
Form2.Show
End Sub
Private Sub Command2_Click()
Me.Hide
Unload Me
Form3.Show
End Sub

Private Sub Command3_Click()


Me.Hide
Unload Me
Form4.Show
End Sub

Private Sub Command4_Click()


Me.Hide
Unload Me
Form5.Show
End Sub

Private Sub Form_Load()


60
End Sub

STUDENT SUBJECT REGISTRATION FORM:

Dim db As New ADODB.Connection


Dim a As Integer
Dim rs As New ADODB.Recordset
Private Sub Command1_Click()
rs.Open "select * from StudentDetails", db, adOpenDynamic, adLockOptimistic
rs.AddNew
rs(0) = a + 1
rs(1) = Text1.Text
rs(2) = Text2.Text
rs(3) = Val(Text3.Text)
rs(4) = Combo1.Text
rs.Update
rs.Close
db.Close
MsgBox "Registered!!!!!! "
MsgBox "Your ID is" & a + 1
Unload Form2
Form1.Show
End Sub

Private Sub Command2_Click()


Unload Me
Load Form1
Form1.Show

61
db.Close
End Sub

Private Sub Form_Load()


db.Open "dsn=coursereg"
rs.Open "select name from Course", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo1.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
rs.Open "select max(ID) from StudentDetails", db, adOpenDynamic,
adLockOptimistic
a = rs(0)
rs.Close
Text4.Text = a + 1
End Sub

Dim db As New ADODB.Connection


Dim rs As New ADODB.Recordset
Private Sub Combo1_Click()
rs.Open "select * from StudentDetails where ID=" & Combo1.Text, db,
adOpenDynamic, adLockOptimistic
Text1.Text = rs(1)
Text2.Text = rs(2)
Text3.Text = rs(3)
Combo2.Text = rs(4)

62
rs.Close
rs.Open "select name from Course", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo2.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub

Private Sub Command1_Click()


db.Close
Unload Me
Load Form1
Form1.Show
End Sub

Private Sub Command2_Click()


db.Close
Unload Me
Load Form1
Form1.Show
End Sub

Private Sub Form_Load()


db.Open "dsn=coursereg"
rs.Open "select ID from StudentDetails", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo1.AddItem rs(0)

63
rs.MoveNext
Loop
rs.Close
End Sub

Dim db As New ADODB.Connection


Dim rs As New ADODB.Recordset
Private Sub Combo1_Click()
rs.Open "select * from StudentDetails where ID=" & Combo1.Text, db,
adOpenDynamic, adLockOptimistic
Text1.Text = rs(1)
Text2.Text = rs(2)
Text3.Text = rs(3)
Combo2.Text = rs(4)
rs.Close
rs.Open "select name from Course", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo2.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub

Private Sub Command1_Click()


rs.Open "select * from StudentDetails", db, adOpenDynamic, adLockOptimistic
rs(1) = Text1.Text
rs(2) = Text2.Text
rs(3) = Text3.Text

64
rs(4) = Combo2.Text
rs.Update
rs.Close
'db.Close
MsgBox "Registered"
Unload Form2
Load Form1
Form1.Show
End Sub

Private Sub Command2_Click()


db.Close
Unload Me
Load Form1
Form1.Show
End Sub

Private Sub Form_Load()


db.Open "dsn=coursereg"
rs.Open "select ID from StudentDetails", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo1.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub

CANCELLATION DETAILS:

65
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Private Sub Combo1_Click()
rs.Open "select * from StudentDetails where ID=" & Combo1.Text, db,
adOpenDynamic, adLockOptimistic
Text1.Text = rs(1)
Text2.Text = rs(2)
Text3.Text = rs(3)
Combo2.Text = rs(4)
rs.Close
rs.Open "select name from Course", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo2.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub

Private Sub Command1_Click()


rs.Open "select * from StudentDetails", db, adOpenDynamic, adLockOptimistic
rs(1) = Text1.Text
rs(2) = Text2.Text
rs(3) = Text3.Text
rs(4) = Combo2.Text
rs.Update
rs.Close
'db.Close
MsgBox "Registered"

66
Unload Form2
Load Form1
Form1.Show
End Sub
Private Sub Command2_Click()
db.Close
Unload Me
Load Form1
Form1.Show
End Sub

Private Sub Form_Load()


db.Open "dsn=coursereg"
rs.Open "select ID from StudentDetails", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo1.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub

RESULT:
Thus the mini project for Exam Registration system has been
successfully executed and codes are generated.

67
Ex no: 5
STOCK MAINTENANCE
Date:

AIM:
To create a system to perform the Stock maintenance

(I) PROBLEM STATEMENT


The stock maintenance system must take care of sales information of
the company and must analyze the potential of the trade. It maintains the
number of items that are added or removed.The sales person initiates this Use
case. The sales person is allowed to update information and view the database.

(II) SOFTWARE REQUIREMENT SPECIFICATION

PURPOSE
The entire process of Stock maintenance is done in a manual manner
Considering the fact that the number of customers for purchase is increasing
every year, a maintenance system is essential to meet the demand. So this
system uses several programming and database techniques to elucidate the
work involved in this process.

SCOPE
• The System provides an interface to the customer where they can fill
in orders for the item needed.
• The sales person is concerned with the issue of items and can use
this system.

68
• Provide a communication platform between the customer and the
sales person.

TOOLS TO BE USED
• Eclipse IDE (Integrated Development Environment)
• StarUml (for developing UML Patterns)
(III) USE CASE DIAGRAM
The functionality of a system can be described in a number of different
use-cases, each of which represents a specific flow of events in a system. It is
a graph of actors, a set of use-cases enclosed in a boundary, communication,
associations between the actors and the use-cases, and generalizationamong
the use-cases

Bill Customer

Fig.3. USE CASE DIAGRAM

69
(IV) ACTIVITY DIAGRAM

It shows organization and their dependence among the set of


components. These diagrams are particularly useful in connection with
workflow and in describing behavior that has a lot of parallel processing. An
activity is a state of doing something: either a real-world process, or the
execution of a software routine.

Fig.4. ACTIVITY DIAGRAM

70
(V) CLASS DIAGRAM

Description:
 A class diagram describes the type of objects in system and
various kinds of relationships that exists among them.
 Class diagrams and collaboration diagrams are alternate
representations of object models.

Fig.5. CLASS DIAGRAM

71
(VI) UML INTERACTION DIAGRAMS

It is the combination of sequence and collaboration diagram. It is used


to depict the flow of events in the system over a timeline. The interaction
diagram is a dynamic model which shows how the system behaves during
dynamic execution.

An Order An Order An Order Line A Stock Item

A Reorder Item

A Delivery Item

Fig.6.1 SEQUENCE DIAGRAM

72
COLLABORATION DIAGRAM

Collaboration diagram and sequence diagrams are alternate


representations of an interaction. A collaboration diagram is an interaction
diagram that shows the order of messages that implement an operation or a
transaction.

ORDER ENTRY
WINDOW

1: prepare()

AN ORDER

2: *[for all order lines]prepare()


3: hasstock=check
needs Reorder=need to Reorder

4: [hasstock]remove()
ORDER LINE STOCK ITEM

6: [hasstock]:new 5: [needs Reorder]:new

DELIVERY ITEM REORDER ITEM

Fig.6.2 COLLABORATION DIAGRAM

73
(VII) PARTIAL LAYERD LOGICAL ARCHITECTURE DIAGRAM

UI

Swing Text

StMain System StMaint


Console

Domain

Customer Order

Register Invoice Stock

Shipment
Product

Technical Services

Persistence SOAP Log4J

DBFacade

74
(VIII) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM

Deployment diagrams are used to visualize the topology of the physical


components of a system where the software components are deployed.

Fig.8.1.DEPLOYMENT DIAGRAM

LAN
<<database>> <<client
workstation>>:
:MySQL
GenericPC

Component Diagram

Component diagrams are used to visualize the organization and relationships


among components in a system.

Fig.8.2.COMPONENT DIAGRAM

75
CODE :
FORM1

Dim db As Database
Dim rs As Recordset

Private Sub Command1_Click()


Form3.Show
End Sub

Private Sub Command2_Click()


Form4.Show
End Sub

Private Sub Command3_Click()


Form5.Show
End Sub

Private Sub Command4_Click()


End
End Sub

Private Sub Form_Load()


Set db = OpenDatabase("D:\prj789\invent\INVENTORY.MDB")
Set rs = db.OpenRecordset("SYSTEM")
End Sub

FORM2

Dim db As Database
Dim rs As Recordset
Dim i As Integer

Private Sub Command1_Click()


Form1.Show
End Sub

Private Sub Command2_Click()


rs.MoveFirst
For i = 1 To rs.RecordCount
If rs(0) = Text1.Text Then
rs.Edit
76
If Text7.Text = "" Then
MsgBox "enter the no of items ordered"
Else
rs(6) = Text7.Text
rs(7) = rs(5) * rs(6)
rs(4) = rs(4) + Val(Text7.Text)
Text8.Text = rs(7)
Text5.Text = rs(4)
Text4.Text = rs(3)
rs.Update
GoTo l1
End If
End If
rs.MoveNext
Next i
l1: End Sub

Private Sub Command3_Click()


Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
End Sub

Private Sub Command4_Click()


rs.AddNew
rs(0) = Text1.Text
rs(1) = Text2.Text
rs(2) = Text3.Text
rs(3) = Text4.Text
rs(4) = Text5.Text
rs(5) = Text6.Text
rs(6) = Text7.Text
77
rs(7) = Text8.Text
rs.Update
End Sub

Private Sub Form_Load()


Set db = OpenDatabase("D:\prj789\invent\INVENTORY.MDB")
Set rs = db.OpenRecordset("SYSTEM")
End Sub

Private Sub List1_Click()


Text1.Text = List1.Text
rs.MoveFirst
For i = 1 To rs.RecordCount
If rs(0) = Text1.Text Then
Text2.Text = rs(1)
Text3.Text = rs(2)
Text4.Text = rs(3)
Text5.Text = rs(4)
Text6.Text = rs(5)
Text7.Text = ""
Text8.Text = ""
End If
rs.MoveNext
Next i
End Sub

FORM3

Dim db As Database
Dim rs As Recordset
Dim i As Integer

Private Sub Command1_Click()


rs.MoveFirst
For i = 1 To rs.RecordCount
If rs(0) = Text1.Text Then
rs.Edit
If Text4.Text = "" Then
MsgBox "Enter the no of items needed"
78
Else
rs(6) = Text4.Text
If rs(6) <= rs(4) Then
rs(7) = rs(5) * rs(6)
rs(4) = rs(4) - Val(Text4.Text)
Text2.Text = rs(4)
Text5.Text = rs(7)
Else

MsgBox " ITEM NOT SUFFICIENT"


End If
rs.Update
GoTo l1
End If
End If
rs.MoveNext
Next i
l1: End Sub

Private Sub Command2_Click()


Form1.Show
End Sub

Private Sub Command3_Click()


Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
End Sub

Private Sub Form_Load()


Set db = OpenDatabase("D:\prj789\invent\INVENTORY.MDB")
Set rs = db.OpenRecordset("SYSTEM")
End Sub

Private Sub List2_Click()


Text1.Text = List2.Text
rs.MoveFirst
For i = 1 To rs.RecordCount
79
If rs(0) = Text1.Text Then
Text2.Text = rs(4)
Text3.Text = rs(5)
Text4.Text = ""
Text5.Text = ""
End If
rs.MoveNext
Next i
End Sub

FORM4

Dim db As Database
Dim rs As Recordset
Dim r, i As Integer

Private Sub Command1_Click()


Form1.Show
End Sub

Private Sub Form_Load()


Set db = OpenDatabase("D:\prj789\invent\INVENTORY.MDB")
Set rs = db.OpenRecordset("SYSTEM")

MSFlexGrid1.FixedRows = 0
MSFlexGrid1.FixedCols = 0

r=0
MSFlexGrid1.ColWidth(0) = 2000
MSFlexGrid1.ColWidth(1) = 2000
MSFlexGrid1.ColWidth(2) = 2000
MSFlexGrid1.ColWidth(3) = 1700
MSFlexGrid1.ColWidth(4) = 1750
MSFlexGrid1.ColWidth(5) = 1650

'MSFlexGrid1.ForeColor = "GREEN"
MSFlexGrid1.TextMatrix(0, 0) = "COMPANY NAME"
MSFlexGrid1.TextMatrix(0, 1) = "COMPANY ADDRESS"
MSFlexGrid1.TextMatrix(0, 2) = "CONTACT NUMBER"
80
MSFlexGrid1.TextMatrix(0, 3) = "DATE OF ORDER"
MSFlexGrid1.TextMatrix(0, 4) = "ITEMS AVAILABLE"
MSFlexGrid1.TextMatrix(0, 5) = "PRICE/ITEM"
rs.MoveFirst
r=1
Do Until rs.EOF

MSFlexGrid1.FixedRows = r
MSFlexGrid1.FixedCols = 0
MSFlexGrid1.Text = rs(0)
MSFlexGrid1.FixedRows = r
MSFlexGrid1.FixedCols = 1
MSFlexGrid1.Text = rs(1)
MSFlexGrid1.FixedRows = r

MSFlexGrid1.FixedCols = 2
MSFlexGrid1.Text = rs(2)
MSFlexGrid1.FixedRows = r
MSFlexGrid1.FixedCols = 3
MSFlexGrid1.Text = rs(3)
MSFlexGrid1.FixedRows = r
MSFlexGrid1.FixedCols = 4
MSFlexGrid1.Text = rs(4)
MSFlexGrid1.FixedRows = r
MSFlexGrid1.FixedCols = 5
MSFlexGrid1.Text = rs(5)
MSFlexGrid1.FixedRows = r
MSFlexGrid1.FixedCols = 6
'MSFlexGrid1.Text = rs(6)
'MSFlexGrid1.FixedRows = r
'MSFlexGrid1.FixedCols = 7
'MSFlexGrid1.Text = rs(7)
r=r+1
rs.MoveNext
Loop
End Sub

81
RESULT:
Thus the mini project for stock maintenance system has been
successfully executed and codes are generated.

82
EX NO: 6 ONLINE COURSE RESERVATION SYSTEM

Date:

AIM
To design an object oriented model for course reservation system.

(I) PROBLEM STATEMENT

a. Whenever the student comes to join the course he/she should be


provided with the list of course available in the college.

b. The system should maintain a list of professor who is teaching


the course. At the end of the course the student must be provided
with the certificate for the completion of the course.

(II) SYSTEM REQUIEMENT SPECIFICATION

OBJECTIVES
a. The main purpose of creating the document about the software
is to know about the list of the requirement in the software
project part of the project to be developed.

b. It specifies the requirement to develop a processing software


part that completes the set of requirement.
SCOPE

a. In this specification, we define about the system requirements


that are about from the functionality of the system.

b. It tells the users about the reliability defined in usecase


specification

FUNCTIONALITY
Many members of the process line to check for its occurrences and
transaction, we are have to carry over at sometimes

USABILITY
The user interface to make the transaction should be effectively
83
PERFORMANCE
It is the capability about which it can performed function for many user at
sometimes efficiently (ie) without any ever occurrences

RELIABILITY
The system should be able to the user through the day to day transaction

(III) USERCASE DIAGRAM

a. Use case is a sequence of transaction in a system whose task is


to yield result of measurable value to individual author of the
system

b. Use case is a set of scenarios together by a common user goal

c. A scenario is a sequence of step describing as interaction


between a user and a system

CLASS DIAGRAM:

A class diagram describes the type of objectors in the system the various
kinds of static relationship that exist among them.

84
SEQUENCE DIAGRAM

A sequence diagram is one that includes the object of the projects and tells
the lifetimes and also various action performed between objects.

85
COLLOBORATIION DIAGRAM

It is same as the sequence diagram that involved the project with the only
difference that we give the project with the only difference that we give
sequence number to each process.

86
87
ACTIVIY DIAGRAM

It includes all the activities of particular project and various steps using join
and forks

COMPONENT DIAGRAM

The component diagram is represented by figure dependency and it is a graph


of design of figure dependency. The component diagram's main purpose is to
show the structural relationships between the components of a systems. It is
represented by boxed figure. Dependencies are represented by communication
association

88
DEPLOYMENT DIAGRAM

It is a graph of nodes connected by communication association. It is


represented by a three dimensional box. A deployment diagram in the unified
modeling 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. The basic element of a deployment diagram is a node of two types

PACKAGE DIAGRAM

A package diagram is represented as a folder shown as a large rectangle with


a top attached to its upper left corner. A package may contain both sub
ordinate package and ordinary model elements. All uml models and

89
diagrams are organized into package. A package diagram in unified modeling
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

90
CODE:
CODE FOR WELCOME FORM:
Private Sub Command1_Click(Index As Integer)
Me.Hide
Unload Me
Form2.Show
End Sub
Private Sub Command2_Click()
Me.Hide
Unload Me
Form3.Show
End Sub

Private Sub Command3_Click()


Me.Hide
Unload Me
Form4.Show
End Sub

Private Sub Command4_Click()


Me.Hide
Unload Me
Form5.Show
End Sub

CODE FOR REGISTRATION FORM:


Dim db As New ADODB.Connection
Dim a As Integer
Dim rs As New ADODB.Recordset

Private Sub Command1_Click()


rs.Open "select * from StudentDetails", db, adOpenDynamic, adLockOptimistic
rs.AddNew
rs(0) = a + 1
rs(1) = Text1.Text
rs(2) = Text2.Text
rs(3) = Val(Text3.Text)
rs(4) = Combo1.Text
rs.Update
rs.Close
91
db.Close
MsgBox "Registered!!!!!! "
MsgBox "Your ID is" & a + 1
Unload Form2
Form1.Show
End Sub

Private Sub Command2_Click()


Unload Me
Load Form1
Form1.Show
db.Close
End Sub

Private Sub Form_Load()


db.Open "dsn=coursereg"
rs.Open "select name from Course", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo1.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
rs.Open "select max(ID) from StudentDetails", db, adOpenDynamic,
adLockOptimistic
a = rs(0)
rs.Close
Text4.Text = a + 1
End Sub

CODE FOR ENQURIY FORM:


Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset

Private Sub Combo1_Click()


rs.Open "select * from StudentDetails where ID=" & Combo1.Text, db,
adOpenDynamic, adLockOptimistic
Text1.Text = rs(1)
Text2.Text = rs(2)
Text3.Text = rs(3)
Combo2.Text = rs(4)
rs.Close
rs.Open "select name from Course", db, adOpenDynamic, adLockOptimistic
92
Do While rs.EOF = False
Combo2.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub

Private Sub Command1_Click()


db.Close
Unload Me
Load Form1
Form1.Show
End Sub

Private Sub Command2_Click()


db.Close
Unload Me
Load Form1
Form1.Show
End Sub

Private Sub Form_Load()


db.Open "dsn=coursereg"
rs.Open "select ID from StudentDetails", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo1.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub

CODE FOR MODIFICATION FORM:


Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset

Private Sub Combo1_Click()


rs.Open "select * from StudentDetails where ID=" & Combo1.Text, db,
adOpenDynamic, adLockOptimistic
Text1.Text = rs(1)
Text2.Text = rs(2)
Text3.Text = rs(3)
93
Combo2.Text = rs(4)
rs.Close
rs.Open "select name from Course", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo2.AddItem rs(0)
rs.MoveNext
Loop
rs.Close

End Sub

Private Sub Command1_Click()


rs.Open "select * from StudentDetails", db, adOpenDynamic, adLockOptimistic
rs(1) = Text1.Text
rs(2) = Text2.Text
rs(3) = Text3.Text
rs(4) = Combo2.Text
rs.Update
rs.Close
'db.Close
MsgBox "Registered"
Unload Form2
Load Form1
Form1.Show
End Sub

Private Sub Command2_Click()


db.Close
Unload Me
Load Form1
Form1.Show
End Sub

Private Sub Form_Load()


db.Open "dsn=coursereg"
rs.Open "select ID from StudentDetails", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo1.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub
94
CODE FOR CANCELLATION DETAIL:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset

Private Sub Combo1_Click()


rs.Open "select * from StudentDetails where ID=" & Combo1.Text, db,
adOpenDynamic, adLockOptimistic
Text1.Text = rs(1)
Text2.Text = rs(2)

Text3.Text = rs(3)
Combo2.Text = rs(4)
rs.Close
rs.Open "select name from Course", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo2.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub

Private Sub Command1_Click()


rs.Open "select * from StudentDetails", db, adOpenDynamic, adLockOptimistic
rs(1) = Text1.Text
rs(2) = Text2.Text
rs(3) = Text3.Text
rs(4) = Combo2.Text
rs.Update
rs.Close
'db.Close
MsgBox "Registered"
Unload Form2
Load Form1
Form1.Show
End Sub

Private Sub Command2_Click()


db.Close
Unload Me
Load Form1
95
Form1.Show
End Sub
Private Sub Form_Load()
db.Open "dsn=coursereg"
rs.Open "select ID from StudentDetails", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo1.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub

RESULT
Thus the mini project for online course reservation system has been
successfully executed and codes are generated.

96
EX NO: 7 AIRLINE/RAILWAY RESERVATION SYSTEM

Date:

AIM
To develop the Airline/Railway reservation System using Rational
Rose Software.

(I) PROBLEM ANALYSIS AND PROJECT PLANNING

In the Airline/Railway reservation 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.

(II) OVERALL DESCRIPTION


Functionality
The database should be act as an main role of the e-ticketing system it can be
booking the ticket in easy way.

Usability
The User interface makes the Credit Card Processing System to be efficient.

Performance
It is of the capacities about which it can perform function for many users
at the same times efficiently that are without any error occurrence.
Reliability
The system should be able to process the user for their corresponding
request.

(III) USE CASE DIAGRAM


The passenger can view the status of the reserved tickets. So the passenger
can confirm his/her travel.

97
Fig. USE-CASE DIAGRAM FOR AIRLINE RESERVATION
(IV) CLASS DIAGRAM

The online ticket reservation system makes use of the following classes:
1. ticketReservation
2. trainInfo
3. passengerInfo
4. seatAvailStatus

98
SEQUENCE DIAGRAM

A sequence diagram in Unified Modeling 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.

99
COLLABRATION DIAGRAM

A collaboration diagram, also called a communication diagram or interaction


diagram,. A sophisticated modeling 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 behavior of
individual objects as well as the overall operation of the system in real time.

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

100
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.

ACTIVITY DIAGRAM
Activity diagrams are graphical representations of workflows of stepwise
activities and actions with support for choice, iteration and concurrency. In
the Unified Modeling 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.

101
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.

CODE:

FORM1
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Private Sub Command1_Click()
Dim chk As Boolean
chk = True
If Text1.Text = "" Then
MsgBox " Enter Username"
chk = False
End If
If Text2.Text = "" Then
MsgBox " Enter Password"
chk = False
End If
If chk Then
If Text1.Text = "aravind2008" Then
If Text2.Text = "aravind" Then
Form1.Hide
Form3.Show
Exit Sub
End If
End If
102
If Text1.Text = "felicks" Then
If Text2.Text = "felicks" Then

Form1.Hide
Form3.Show
Exit Sub
End If
End If
If Text1.Text = "arul" Then
If Text2.Text = "arul" Then
Form1.Hide
Form3.Show
Exit Sub
End If
End If
End If
End Sub

Private Sub Command2_Click()


Form2.Show
Form1.Hide
End Sub

FORM2

Dim db As New ADODB.Connection


Dim rs As New ADODB.Recordset

Private Sub Command1_Click()


db.Execute "insert into userdetails values(" + Text8.Text + ",'" + Text1.Text + "','" +
Text2.Text + "'," + Text3.Text + ",'" + Text4.Text + "','" + Text5.Text + "','" +
Text6.Text + "','" + Text7.Text + "')"
MsgBox ("data inserted successfully"), vbExclamation
clear
End Sub

Private Sub Command2_Click()


Form1.Show
Form2.Hide
End Sub
103
Private Sub clear()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""

Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
End Sub

Private Sub Command3_Click()


clear
End Sub

Private Sub Form_Load()


db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\ooad mini project\my
proj\eTicketing.mdb;Persist Security Info=False"
db.CursorLocation = adUseClient
rs.Open "select * from userdetails ", db, adOpenKeyset, adLockBatchOptimistic
End Sub

FORM 3
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset

Private Sub Command2_Click()


MsgBox ("Thank You! your ticket is printing"), vbExclamation
End Sub

Private Sub Command3_Click()


clear
End Sub

Private Sub Command4_Click()


Form3.Hide
Form1.Show
End Sub
Private Sub Form_Load()
db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\ooad mini project\my
104
proj\eTicketing.mdb;Persist Security Info=False"
db.CursorLocation = adUseClient
rs.Open "select * from reservation ", db, adOpenKeyset, adLockBatchOptimistic
End Sub

Private Sub clear()


Text1.Text = ""
Text2.Text = ""

Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
End Sub

RESULT
Thus the mini project for Airline/Railway reservation System has been
successfully executed and codes are generated.
105
Ex no: 8 SOFTWARE PERSONNEL MANAGEMENT SYSTEM

Date:

AIM:
To implement a software for software personnel management system.

(I) PROBLEM STATEMENT:

Human Resource management system project involves new and/or


system upgrades of software of send to capture information relating to the
hiring termination payment and management of employee. He uses system to
plan and analyze all components and performance of metrics drivenhuman
resource functions, including recruitment, attendance, compensation, benefits
and education. Human resources management systems should align for
maximum operating efficiency with financial accounting operations customer
relationship management,security and business lines as organization.

( II )SOFTWARE REQUIREMENT SPECIFICATION:

2.1SOFTWARE INTERFACE
• Front End Client - The applicant and Administrator online
interface is built using VBscript
CSS and HTML. The HR's local interface is built using Java.
• Server - Glassfish application server(SQL Corporation).
• Back End - MySQL database.

2.2HARDWARE INTERFACE
The server is directly connected to the client systems. The clientsystems
have access to the database in the server.

106
( III )USECASE DIAGRAM:

The HR of an organization involves recruitment training, monitoring and


motivation of an employee. The HR also involves gives salary as observed
in the payroll sheet. The employee undergoes training, receives the salary ,
gives the expected performance and manages time in order to complete a
given task within the required period.

Fig.3. USE CASE DIAGRAM

107
(IV) ACTIVITY DIAGRAM:

The activity diagram notation is an action, partition, fork join and object
node. Most of the notation is self explanatory, two subtle points. Once an
action finished, there is an automatic outgoing transaction. The diagram can
show both control flow and data flow.

Fig.4. ACTIVITY DIAGRAM

108
(V) CLASS DIAGRAM:

The class diagram, also referred to as object modeling is the main static
analysis diagram. The main task of object modeling is to graphically show
what each object will do in the problem domain. The problem domain
describes the structure and the relationships among objects.

Fig.5.CLASS DIAGRAM

109
(VI) INTERACTION DIAGRAM:

A sequence diagram represents the sequence and interactions of a


given USE-CASE or scenario. Sequence diagrams can capture most of the
information about the system. Most object to object interactions and
operations are considered events and events include signals, inputs, decisions,
interrupts, transitions and actions to or from users or external devices.

Fig.6.1.SEQUENCE DIAGRAM

110
Fig.6.2.COLLABORATION DIAGRAM

(VII) State Transition Diagram


States of object are represented as rectangle with round corner, the
transaction between the different states. A transition is a relationship
between two state that indicates that when an event occur the object moves
from the prior state to the subsequent.

Fig.7.STATE TRANSITION DIAGRAM

111
(VIII) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM

HR recruits employee for a company employee recruited by HR goes


under training before actually working. Training period is given to the
employee with the training details. The salary details for the employee are
provided.

Fig.8.1.DEPLOYMENT DIAGRAM

112
COMPONENT DIAGRAM

The HR recruits, motivate and monitor the employee, HR also update


the salary details and training details for reference. The employee are those
who are recruited by HR and work for the company. The training details
provide employees with training details which is updated by HR

Fig.8.2.COMPONENT DIAGRAM

113
CODE:
ENTRY FORM:
Private Sub Command1_Click()
Form3.Show
End Sub

Private Sub Command2_Click()


Form4.Show
End Sub

Private Sub Command3_Click()


End
End Sub

PAY SLIP FORM:

Private Sub Command1_Click()


Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Text4.Text = " "
Text5.Text = " "
Text6.Text = " "
Text7.Text = " "
Text8.Text = " "
Text9.Text = " "
Adodc1.Refresh
Adodc1.Recordset.AddNew
Text1.SetFocus
End Sub

Private Sub Command2_Click()


Text6 = (Val(Text5.Text) * 0.1224)
114
Text7 = (Val(Text5.Text) * 0.15)
Text8 = (Val(Text5.Text) * 0.25)
Text10 = (Val(Text5.Text) + Val(Text6) + Val(Text7) + Val(Text8))
Text9 = Val(Text10.Text) – 1500

MsgBox ("Payslip generated")


End Sub

Private Sub Command3_Click()


Adodc1.Recordset.Update
MsgBox ("Records updated")
End Sub

Private Sub Command4_Click()


Form3.Hide
Form2.Show
End Sub

Private Sub Form_Load()


Adodc1.Visible = False
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Text4.Text = " "
Text5.Text = " "
Text6.Text = " "
Text7.Text = " "
Text8.Text = " "
Text9.Text = " "
End Sub

DATABASE FORM:

Dim flag As Boolean


Dim n As String

115
Private Sub Command1_Click()
n = InputBox("Enter the Eid:")
Adodc1.Refresh
DataGrid1.Visible = True
Do Until Adodc1.Recordset.EOF
If (Adodc1.Recordset.Fields("Eid")) = Val(Trim(n)) Then
flag = True
Exit Do
Else
flag = False
End If
Adodc1.Recordset.MoveNext
Loop
If flag = False Then
MsgBox ("Record not found")
End If
End Sub

Private Sub Command2_Click()


Form4.Hide
Form2.Show
End Sub

RESULT:

Thus the mini project for software personnel management system has
been successfully executed and codes are generated.
116
Ex. No:9
CREDIT CARD PROCESSING
Date:

AIM:
To create a system to perform the credit card processing

(I) PROBLEM STATEMENT:

Credit card processing through offline involves the merchant collecting


order information (including credit card numbers), storing this in a database
on your site, and entering it using their on-site merchant credit card processing
system. Takes time to manually enter credit card information for each order.
This solution creates following cons:

( II )SOFTWARE REQUIREMENT SPECIFICATION:

PRODUCT PERSPECTIVE

This solution involves signing up for a free Business Account. Once


this is done and the e-commerce site is properly configured, you can accept
payments from Visa, MasterCard, Amex, and Discover cards payments.

SOFTWARE INTERFACE
• Front End Client - The applicant and Administrator online
interface is built using
CSS and HTML. The Administrators's local interface is built using
VBscript.
• Web Server - Glassfish application server(SQL Corporation).
• Back End - SQL database.

HARDWARE INTERFACE
117
The server is directly connected to the client systems. The client
systems have access to the database in the server.

( III )USECASE DIAGRAM:

USE-CASE NAME: PAYMENT APPROVAL

The transaction details are recorded by the credit card processor and
results are securely relayed to the merchant. Merchant’s site receives
transaction result and does appropriate actions (e.g. saves the order & shows
message).

Fig.3. USECASE DIAGRAM FOR PASSPORT AUTOMATION


SYSTEM
(IV) CLASS DIAGRAM:

118
The class diagram, also referred to as object modeling is the main static
analysis diagram. The main task of object modeling is to graphically show
what each object will do in the problem domain. The problem domain
describes the structure and the relationships among objects.
The Credit Card Processing system class diagram consists of three
classes.
They are
Cashier
User
Authorization Service

Fig.4.CLASS DIAGRAM

119
(V) INTERACTION DIAGRAM:

Fig.5.1.SEQUENCE DIAGRAM

Fig.5.2.COLLABORATION DIAGRAM

120
(VI) PARTIAL LAYERD LOGICAL ARCHITECTURE DIAGRAM

UI

Swing

CCP system

Domain

User Merchant

Purchase Account Info Request Receipt

AutherizationSerivic
e

Reply

Technical Services

Persistence
DBFacade Log4J
SOAP

121
(VII) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM
Deployment diagrams are used to visualize the topology of the
physical components of a system where the software components are
deployed.

<<client
<<database> workstation
> >>:Generic
: SQL
SQ HT

<<server>>

Fig.7.1.DEPLOYMENT DIAGRAM

COMPONENT DIAGRAM
Component diagrams are used to visualize the organization and relationships
among components in a

Fig.7.2.COMPONENT DIAGRAM

122
CODE:

FORM1

Private Sub Form_Load()

Timer1.Interval = 100

Label3.Caption = ""

End Sub

Private Sub Label1_Click()

Me.Hide

Unload Me

Form2.Show

End Sub

Private Sub Label2_Click()

Me.Hide

Unload Me

Form4.Show

End Sub

Private Sub Label5_Click()

Me.Hide

Unload Me

Form5.Show

End Sub

Private Sub Label6_Click()

123
End

End Sub

Private Sub Timer1_Timer()

Label3.Caption = Time

Label4.Caption = Date

End Sub

FORM2

Dim db As New ADODB.Connection

Dim rs As New ADODB.Recordset

Private Sub Form_Load()

db.Open "Provider=MSDASQL.1;Persist Security Info=False;Data


Source=credit_card"

rs.Open "select * from credit_card", db, adOpenDynamic, adLockOptimistic

rs.Close

Text1.Text = ""

Text2.Text = ""

End Sub

Private Sub Label3_Click()

Text3.Text = Text1.Text

Text4.Text = Text2.Text

If (Text1.Text = "") Or (Text2.Text = "") Then

MsgBox "LOGIN ERROR:("

124
MsgBox "Please enter all the details!!"

Else

rs.Open "select * from credit_card where c_no=" & Text3.Text & " and pin_no="
& Text4.Text & "", db, adOpenKeyset, adLockOptimistic

If rs.BOF = False Then

If (rs(0).Value = Text3.Text) And (rs(1).Value = Text4.Text) Then

db.Close

Form3.Show

Form2.Hide

Else

rs.Close

MsgBox "Login Error:("

Text1.Text = ""

Text2.Text = ""

Form2.Hide

Unload Me

Form1.Show

db.Close

End If

Else

MsgBox "Login Error:("

Text1.Text = ""

Text2.Text = ""

Me.Hide

125
Unload Me

Form1.Show

db.Close

End If

End If

End Sub

Private Sub Label4_Click()

Me.Hide

db.Close

Unload Me

Form1.Show

End Sub

FORM3

Dim db As New ADODB.Connection

Dim rs As New ADODB.Recordset

Private Sub Form_Load()

db.Open "dsn=credit_card"

Text7.Text = Form2.Text3.Text

Text8.Text = Form2.Text4.Text

rs.Open "select * from credit_card where c_no=" & Text7.Text & " and pin_no="
& Text8.Text & "", db, adOpenKeyset, adLockOptimistic

Text1.Text = rs(0)

Text2.Text = rs(1)

126
Text3.Text = rs(2)

Text4.Text = rs(3)

Text5.Text = rs(4)

Text6.Text = rs(5)

db.Close

End Sub

Private Sub form_exit()

rs.Close

db.Close

End Sub

Private Sub Label7_Click()

Unload Form2

Unload Form3

Form1.Show

Form2.Text1.Text = ""

Form2.Text2.Text = ""

End Sub

Private Sub Label8_Click()

Unload Me

Load Form6

Form6.Show

End Sub

Private Sub Label9_Click()

Unload Form2
127
Unload Form3

MsgBox "Logged out Successfully!!"

Form1.Show

Form2.Text1.Text = ""

Form2.Text2.Text = ""

End Sub

FORM4

Dim db As New ADODB.Connection

Dim rs As New ADODB.Recordset

Dim a As Integer

Private Sub Form_Load()

db.Open "dsn=credit_card"

rs.Open "select max(c_no) from credit_card", db, adOpenDynamic,


adLockOptimistic

a = rs(0)

rs.Close

Text1.Text = a + 1

End Sub

Private Sub Label7_Click()

If (Text1.Text = "") Or (Text2.Text = "") Or (Text3.Text = "") Or (Text4.Text =


"") Or (Text5.Text = "") Or (Text6.Text = "") Then

MsgBox "Please enter all the Details!!"


128
db.Close

Unload Form4

Form4.Show

Else

rs.Open "select * from credit_card", db, adOpenDynamic, adLockOptimistic

rs.AddNew

rs(0) = Text1.Text

rs(1) = Text2.Text

rs(2) = Text3.Text

rs(3) = Text4.Text

rs(4) = Text5.Text

rs(5) = Text6.Text

rs.Update

rs.Close

db.Close

MsgBox "Account Created Successfully !!"

Unload Form4

Form4.Hide

Form1.Show

End If

End Sub

Private Sub Label8_Click()


129
db.Close

Unload Me

Load Form1

Form1.Show

End Sub

FORM5

Dim db As New ADODB.Connection

Dim rs As New ADODB.Recordset

Private Sub Label2_Click()

If (Combo1.Text = "") Then

MsgBox "Please enter Credit Card Number!!"

Else

db.Execute ("delete from credit_card where c_no=" & Combo1.Text)

db.Close

MsgBox "Account deleted successfully!!"

Unload Me

Load Form1

Form1.Show

End If

End Sub

Private Sub Label3_Click()

db.Close
130
Unload Me

Load Form1

Form1.Show

End Sub

Private Sub Form_Load()

db.Open "dsn=credit_card"

rs.Open "select c_no from credit_card", db, adOpenDynamic, adLockOptimistic

Do While rs.EOF = False

Combo1.AddItem rs(0)

rs.MoveNext

Loop

rs.Close

End Sub

FORM6

Dim db As New ADODB.Connection

Dim a As Integer

Dim b As Integer

Dim c As Integer

Dim rs As New ADODB.Recordset

Private Sub Form_Load()

db.Open "dsn=credit_card"

Text1.Text = ""
131
Text2.Text = ""

Form3.Text7.Text = Form2.Text3.Text

Form3.Text8.Text = Form2.Text4.Text

rs.Open "select * from credit_card where c_no=" & Form3.Text7.Text & " and
pin_no=" & Form3.Text8.Text & "", db, adOpenKeyset, adLockOptimistic

Text1.Text = rs(5)

End Sub

Private Sub Label3_Click()

If (Text2.Text = "") Then

MsgBox "Enter your Current Purchase!!"

Else

b = Text1.Text

c = Text2.Text

If (b >= c) Then

b=b-c

Text1.Text = b

db.Execute " Update credit_card set curr_bal='" & Text1.Text & "' where c_no="
& Form3.Text1.Text & " ", NumOfRec, adExecuteNoRecords

Me.Hide

MsgBox "Transaction Updated Successfully!!"

MsgBox "Your Current Balance : " & Text1.Text

Text1.Text = ""

Text2.Text = ""

Unload Form2
132
Unload Form3

Unload Form6

Form1.Show

Form2.Text1.Text = ""

Form2.Text2.Text = ""

db.Close

Else

Text2.Text = ""

MsgBox "Low Balance:("

End If

End If

End Sub

Private Sub form_exit()

rs.Close

db.Close

End Sub

Private Sub Label4_Click()

Unload Form2

Unload Form3

Unload Form6

Form1.Show

Form2.Text1.Text = ""

Form2.Text2.Text = ""
133
db.Close

End Sub

RESULT:

Thus the mini project for credit card processing system has been
successfully executed and codes are generated.

134
Ex. No:10
OOK MANAGEMENT SYSTEM
Date:

AIM:

To create a system to perform E- book Management System.

(I) PROBLEM STATEMENT:

An E- Book lends books and magazines to member, who is registered in


the system. Also it handles the purchase of new titles for the Book Bank.
Popular titles are brought into multiple copies. Old books and magazines are
removed when they are out or date or poor in condition. A member can reserve
a book or magazine that is not currently available in the book bank, so that
when it is returned or purchased by the book bank, that person is notified. The
book bank can easily create, replace and delete information about the tiles,
members, loans and reservations from the system.

(II) SOFTWARE RESOURCE SPECIFICATION:

OVERALL DESCRIPTION

Itwill describe major role of the system components and inter-


connections.

PRODUCT PERSPECTIVE

The ORS acts as an interface between the user and the 'e-book
manager'. This system tries to make the interface as simple as possible and at
the same time not risking the security of data stored in. This minimizes the
time duration in which the user receives the books or magazines.

SOFTWARE INTERFACE

Front End Client - The Student and Librarian online interface is built
using CSS and HTML. The Librarians local interface is built using VBscript.

Web Server - Glassfish application server (Oracle Corporation).

Back End - MySQL database

135
HARDWARE INTERFACE

The server is directly connected to the client systems. The client


systems have access to the database in the server.

(III)USE-CASE DIAGRAM:

Fig.3.USE-CASE DIAGRAM FOR E-BOOK SYSTEM

136
(III) ACTIVITY DIAGRAM:

137
(IV) CLASS DIAGRAM

The class diagram, also referred to as object modeling is the main static
analysis diagram. The main task of object modeling is to graphically show
what each object will do in the problem domain. The problem domain
describes the structure and the relationships among objects.

Fig.5.CLASS DIAGRAM FOR E-BOOK SYSTEM

138
(V) INTERACTION DIAGRAM:

A sequence diagram represents the sequence and interactions of a


given USE-CASE or scenario. Sequence diagrams can capture most of the
information about the system. Most object to object interactions and
operations are considered events and events include signals, inputs, decisions,
interrupts, transitions and actions to or from users or external devices.

An event also is considered to be any action by an object that sends


information. The event line represents a message sent from one object to
another, in which the “form” object is requesting an operation be performed
by the “to” object. The “to” object performs the operation using a method that
the class contains.

It is also represented by the order in which things occur and how the
objects in the system send message to one another.

The sequence diagram and collaboration diagram are given below.

Fig.6.1.SEQUENCE DIAGRAM

139
Fig.6.2.COLLABORATION DIAGRAM

(VI) PARTIAL LAYERD LOGICAL ARCHITECTURE DIAGRAM

UI

Swing

E-Book system

Domain

Client Order

bill Credit History Process Balance

Technical Services

Persistence
SOAP Log4J

DBFacade

140
(VII) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM
Deployment diagrams are used to visualize the topology of the physical
components of a system where the software components are deployed.

<<client
<<database>>
workstation>>:
:MySQL
GenericPC

SQL HTTP

<<server>> :To
mcat6

Fig.8.1.DEPLOYMENT DIAGRAM

COMPONENT DIAGRAM
Component diagrams are used to visualize the organization and relationships
among components in a system.

Fig.8.2.COMPONENT DIAGRAM

141
CODE:
HOME PAGE
Private Sub Label2_Click()
Me.Hide
Unload Me
Form2.Show
End Sub

Private Sub Label3_Click()


Me.Hide
Unload Me
Form3.Show
End Sub

Private Sub Label4_Click()


Me.Hide
Unload Me
Form4.Show
End Sub

Private Sub Label5_Click()


Me.Hide
Unload Me
Form5.Show
End Sub

Private Sub Label6_Click()


Unload Me
End
End Sub

ADD BOOK TO CART FORM:

Dim db As New ADODB.Connection


Dim a As Integer
Dim rs As New ADODB.Recordset

Private Sub Label7_Click()


If (Text1.Text = "") Or (Text2.Text = "") Or (Text3.Text = "") Or (Text4.Text
= "") Or (Combo1.Text = "") Then
142
MsgBox "Please enter all the details!!"
Else
rs.Open "select * from ebooks", db, adOpenDynamic, adLockOptimistic
rs.AddNew

rs(0) = a + 1
rs(1) = Text2.Text
rs(2) = Text3.Text
rs(3) = Text4.Text
rs(4) = Combo1.Text
rs.Update
rs.Close
db.Close
MsgBox "Book added to Cart!!"
Unload Form2
Form1.Show
End If
End Sub

Private Sub Label8_Click()


Unload Me
Load Form1
Form1.Show
db.Close
End Sub

Private Sub Form_Load()


db.Open "Provider=MSDASQL.1;Persist Security Info=False;Data
Source=e_book"
rs.Open "select books from listofbooks", db, adOpenDynamic,
adLockOptimistic
Do While rs.EOF = False
Combo1.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
rs.Open "select max(id) from ebooks", db, adOpenDynamic, adLockOptimistic
a = rs(0)
rs.Close
Text1.Text = a + 1
End Sub
143
VIEW CART FORM:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset

Private Sub Combo1_Click()

rs.Open "select * from ebooks where id=" & Combo1.Text, db,


adOpenDynamic, adLockOptimistic
Text1.Text = rs(1)
Text2.Text = rs(2)
Text3.Text = rs(3)
Text4.Text = rs(4)
rs.Close
End Sub

Private Sub Label7_Click()


Combo1.Text = ""
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
End Sub

Private Sub Label8_Click()


db.Close
Unload Me
Load Form1
Form1.Show
End Sub

Private Sub Form_Load()


db.Open "dsn=e_book"
rs.Open "select id from ebooks", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo1.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub

144
UPDATE CART:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim NumOfRec As Integer

Private Sub Combo1_Click()


rs.Open "select * from ebooks where id=" & Combo1.Text, db,
adOpenDynamic, adLockOptimistic
Text1.Text = rs(1)
Text2.Text = rs(2)

Text3.Text = rs(3)
Combo2.Text = rs(4)
rs.Close
rs.Open "select books from listofbooks", db, adOpenDynamic,
adLockOptimistic
Do While rs.EOF = False
Combo2.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub

Private Sub Label6_Click()


If (Text1.Text = "") Or (Text2.Text = "") Or (Text3.Text = "") Or
(Combo1.Text = "") Or (Combo2.Text = "") Then
MsgBox "Please enter all the details!!"
Else
db.Execute " Update ebooks set s_name='" & Text1.Text & "',Address='" &
Text2.Text & "',ph_no='" & Text3.Text & "',books='" & Combo2.Text & "'
where id=" & Combo1.Text & " ", NumOfRec, adExecuteNoRecords
MsgBox "Cart Content Updated Successfully!!"
Unload Me
Load Form1
Form1.Show
End If
End Sub

Private Sub Label7_Click()


db.Close
Unload Me
Load Form1
145
Form1.Show
End Sub

Private Sub Form_Load()


db.Open "dsn=e_book"
rs.Open "select id from ebooks", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo1.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub

DELETE FORM:
Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset

Private Sub Label2_Click()


If (Combo1.Text = "") Then
MsgBox "Please choose the ID!!"
Else
db.Execute ("delete from ebooks where id=" & Combo1.Text)
db.Close
MsgBox "Book deleted from Cart!!"
Unload Me
Load Form1
Form1.Show
End If
End Sub

Private Sub Label3_Click()


db.Close
Unload Me
Load Form1
Form1.Show
End Sub

Private Sub Form_Load()


db.Open "dsn=e_book"
rs.Open "select id from ebooks", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
146
Combo1.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub

RESULT:
Thus the mini project for E-Book System has been successfully
executed and codes are generated.

147
Ex.No: 11
RECRUITMENT SYSTEM
Date:

AIM:
To create an automated system to perform the Recruitment System
Process.

(I) PROBLEM STATEMENT:


The recruitment system allows the job seekers to enroll their names
through the process of registration. The employee also can get the list of
available candidates and shortlist for their company requirement. Once the
applicant enrolls he receives an id, which helps him in further
Correspondence. A fees amount is received from the job seekers for
enrollment. This system makes the task of the job seeker easier rather than
waiting in queue for enrollment. This also reduces the time consumption for
both for the job seeker and employee.

(II) SOFTWARE REQUIREMENT SPECIFICATION:

PRODUCT PERSPECTIVE
The PAS acts as an interface between the 'applicant' and the
'administrator'. This system tries to make the interface as simple as possible
and at the same time not risking the security of data stored in. This minimizes
the time duration in which the user receives the recruitment.
SOFTWARE INTERFACE
• Front End Client - The applicant and Administrator online interface
is built using CSS and HTML. The Administrators's local interface is
built using VBscript.
• Web Server - Glassfish application server (SQL Corporation).
148
• Back End - MySQL database.
HARDWARE INTERFACE
The server is directly connected to the client systems. The client
systems have access to the database in the server.
( III )USECASE DIAGRAM:

The Recruitment Automation system use cases are:

Fig.3. UML USE CASE DIAGRAM

149
(IV) ACTIVITY DIAGRAM:

Fig.4. ACTIVITY DIAGRAM

(V) UML CLASS DIAGRAM:


The UML class diagram is to illustrate class interfaces and their actions.
They are used for static object modeling, we have already introduced and
used their UML diagram while domain modeling.

150
Fig.5. UML CLASS DIAGRAM

(VI) UML SEQUENCE DIAGRAM:

A sequence diagram illustrates a kind of format in which each object interacts


via message. It is generalize between two or more specializeddiagram.

151
Fig. 6.1SEQEUENCE DIAGRAM FOR Register:

Fig.6.2. SEQUENCE DIAGRAM FOR STATUS

152
Fig.6.3. SEQUENCE DIAGRAM FOR Admin

(VII) UML COLLABRATION DIAGRAM:


Communication diagram illustrate that object interact on a graph or network
format in which object can be placed where on the diagram. In collaboration
diagram the object can be placed in anywhere on the diagram. The
collaboration comes from sequence diagram.

153
Fig.7.1COLLABRATION DIAGRAM For Register

Fig.7.2. COLLABORATION DIAGRAM FOR Status

154
Fig.7.3.COLLABORATION DIAGRAM FOR Admin
(VIII) PARTIAL LAYERD LOGICAL ARCHITECTURE DIAGRAM:
UI

Swing Text

Recruitment Recruitment
system Form

Domain

Candidate Admin panel

Submit Cancel send delete

Status

Get status

155
Technical Services

Persistence Log4J
SOAP
DBFacade

156
(IX) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM
Deployment diagrams are used to visualize the topology of the physical
components of a system where the software components are deployed.

<<databas <<client
e>>
workstati
:MySQL on>>:Gen
SQ H

<<server>
> :Tomca
Fig.9.1.DEPLOYMENT DIAGRAM t6

Component Diagram
Component diagrams are used to visualize the organization and
relationships among components in a system.

Fig.9.2.COMPONENT DIAGRAM

157
CODING:
Login
Option Explicit
'##ModelId=4D7DB2AA0399
Private Username As Variant
'##ModelId=4D7DB2AE03B9
Private Password As Variant
'##ModelId=4D7DB2C7007D
Public Sub Get()
End Sub

'##ModelId=4D7DB31100EA
Public Sub Re_entry()
End Sub
Organisation_code
Option Explicit
'##ModelId=4D7DB3500261
Private Name As Variant
'##ModelId=4D7DB35D01C5
Private Info As Variant
'##ModelId=4D7DB36B02AF
Private Updates As Variant
'##ModelId=4D7DB3CF00CB
Private Advertisements As Variant
'##ModelId=4D7DB81A00AB

158
Public NewProperty As Collection
'##ModelId=4D7DB42301E4
Public Sub Readinfo()
End Sub
'##ModelId=4D7DB4360128
Public Sub Resume_entry()
End Sub
Form 1:
Private Sub Image52_Click()
Dim chk As Boolean
chk = True
If Text3.Text = "" Then
MsgBox " Enter Username"
chk = False
End If
If Text4.Text = "" Then
MsgBox " Enter Password"
chk = False
End If
If chk Then
If Text3.Text = "aaaa" Then
If Text4.Text = "bbbb" Then
Form1.Hide
Form2.Show
Exit Sub
End If
End If
If Text1.Text = "cccc" Then
159
If Text2.Text = "dddd" Then
Form1.Hide
Form2.Show
Exit Sub
End If
End If
If Text1.Text = "eeee" Then
If Text2.Text = "ffff" Then
Form1.Hide
Form2.Show
Exit Sub
End If
End If
If Text1.Text = "gggg" Then
If Text2.Text = "hhhh" Then
Form1.Hide
Form2.Show
Exit Sub
End If
End If
If chk Then
MsgBox " Invalid Username Password "
End If
End If
End Sub

Form 2:
Private Sub Image1_Click()
160
Form2.Hide
Form3.Show
End Sub

Private Sub Image14_Click()


Form2.Hide
Form4.Show
End Sub

Private Sub Image15_Click()


Form2.Hide
Form5.Show
End Sub
Form 3:
Private Sub Image4_Click()
Form3.Hide
Form6.Show
End Sub
Private Sub Image5_Click()
Form3.Hide
Form1.Show
End Sub

Private Sub Image6_Click()


Form3.Hide
Form2.Show
End Sub
Form 4:
161
Private Sub Image4_Click()
Form4.Hide
Form6.Show
End Sub
Private Sub Image5_Click()
Form4.Hide
Form1.Show
End Sub

Private Sub Image6_Click()


Form4.Hide
Form2.Show
End Sub
Form 5:
Private Sub Image3_Click()
Form5.Hide
Form6.Show
End Sub

Private Sub Image4_Click()


Form5.Hide
Form1.Show
End Sub

Private Sub Image5_Click()


Form5.Hide
Form2.Show
End Sub
162
Form 6:
Private Sub Check1_Click()
Text5.Visible = True
End Sub

Private Sub Check2_Click()


Text6.Visible = True
End Sub

Private Sub Combo1_Change()


Text8.Text = Combo1.Text
End Sub

Private Sub Command2_Click()


Data1.Recordset.AddNew
End Sub

Private Sub Command3_Click()


If (Text1.Text = "") Then
MsgBox ("enter the name")
ElseIf (Text2.Text = "") Then
MsgBox ("enter the father's name")
ElseIf (Text3.Text = "") Then
MsgBox ("enter the address")
ElseIf (Text4.Text = "") Then
MsgBox ("enter the D.O.B")
ElseIf (Text5.Text = "" And Text6.Text = "") Then
MsgBox ("enter the contact no")
163
ElseIf (Text7.Text = "") Then
MsgBox ("enter the email id ")
ElseIf (Text8.Text = "") Then
MsgBox ("select your country")
ElseIf (Text9.Text = "") Then
MsgBox ("select your gender")
ElseIf (Text10.Text = "") Then
MsgBox ("select your total experience")
ElseIf (Text11.Text = "") Then
MsgBox ("select your current salary")
ElseIf (Text12.Text = "") Then
MsgBox ("enter your key skills")
ElseIf (Text16.Text = "") Then
MsgBox ("enter your achievements")
ElseIf (Text17.Text = "") Then
MsgBox ("enter your qualification")
ElseIf (Text18.Text = "") Then
MsgBox ("fill the languages known ")
Else
Data1.Recordset.Update
Me.Hide
Form2.Show
End If
End Sub

Private Sub List1_Click()


Text8.Text = List1.Text
End Sub
164
Private Sub List2_Click()
Text10.Text = List2.Text
End Sub
Private Sub Option1_Click()
Text11.Text = "<10,000"
End Sub

Private Sub Option2_Click()


Text11.Text = "10,000-25,000"
End Sub

Private Sub Option3_Click()


Text9.Text = "male"
End Sub

Private Sub Option4_Click()


Text9.Text = "female"
End Sub

Private Sub Option5_Click()


Text11.Text = ">25,000"
End Sub

Private Sub Option6_Click()


Text11.Text = "none"
End Sub

165
RESULT:
Thus the mini project for recruitment system has been successfully
executed and codes are generated.

166
Ex.No :12 FOREIGN TRADING SYSTEM

Date :

AIM
To design a project Foreign Trading System using Rational Rose
Software and to implement the software in Visual Basic

(I) PROBLEM STATEMENT

The steps involved in Foreign Trading System are:

The forex system begins its process by getting the username and password
from the trader. After the authorization permitted by the administrator, the
trader is allowed to perform the sourcing to know about the commodity
details.After the required commodities are chosen, the trader places the
order.The administrator checks for the availability for the required
commodities and updates it in the database. After the commodities are ready
for the trade, the trader pays the amount to the administrator.The administrator
in turn provides the bill by receiving the amount and updates it in the
database.The trader logouts after the confirmation message has been received.

(II)SOFTWARE REQUIREMENT SPECIFICATION

ADMINISTRATOR One who coordinates the entire trading


process.
DATABASE All the transaction details are stored
here.
READER Person who is viewing the website.
USER The traders and the viewers are the
users.
SOFTWARE REQUIREMENT This software specification documents
SPECIFICATION full set of features and function for
foreign trading system.

FUNCTIONALITY
Transfer purchasing power between countries. Obtain credit for international
trade transactions. Minimize exposure to the risks of exchange rate changes.

167
FUNCTIONALITY REQUIREMENTS
Functional requirements refers to the functionality of the system. The services
that are provided to the trader who trades.

UML DIAGRAMS
The exporter submits the relevant documents to his buyer (banker) for getting the payment for
the goods exported.

(III)USE CASE DIAGRAM

CLASS DIAGRAM
A class diagram is a type of static structure diagram that describes the
structure of a system. The classes in the class diagram represent both the main
objects and or interactions in the application.The class diagram is represented
using rectangular boxes each of which contains three parts:

168
SEQUENCE DIAGRAM

A sequence diagram in unified modeling language 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. Sequence diagrams are
sometimes called event diagrams, event scenarios, and timing diagrams.This
diagram shows a parallel vertical lines called lifelines. There are two
dimensions in this diagram

1. Vertical dimension-represents time.

2. Horizontal dimension-represent different object

169
TraderTraderAdministratorAdministratorDatabaseDatabaseLoginSourcingPl
ace orderUpdateorderPay update account details bill logout

COLLABORATION DIAGRAM
A collaboration diagram belongs to a group of UML diagrams called
Interaction Diagrams. collaboration diagrams, like sequence diagrams, show
how the objects interact over the course of time. collaboration diagrams show
the sequence by numbering the messages on the diagram.

170
DOCUMENTATION OF COLLABORATION DIAGRAM
The collaboration diagram shows how the trader performs the sourcing and
places order for which the administrator provides the bill and updates it in the
database.

STATE CHART DIAGRAM


The state chart is used to model dynamic nature of a system. They define
different states of an object during its lifetime. And these states are changed
by events. So these diagrams are useful for reactive systems i.e.., a system that
responds to external or internal events. It describes the flow of control from
one state to other state. The initial state is represented using the small dot. The
final state is represented using a circle surrounded by a small dot

DOCUMENTATION OF STATE CHART DIAGRAM


The state diagram represents the following states.

• The trader logins the register in the first state and performs sourcing in the
second state.

• The trader places the order in the third state.

• The trader receives the bill in the fourth state and pay the required amount
in fifth state.
• The trader logouts from the system in the sixth state

ACTIVITY DIAGRAM
This diagram represents the graphical representation of workflows of stepwise
activities and actions with support for choice, iteration and concurrency. It
shows the overall flow of control.

DOCUMENTATION OF ACTIVITY DIAGRAM


This activity diagram represents the flow of stepwise activities performed in
foreign trading system.

• The first action represents the trader logins to the system.

• The second action is the place where the trader places the order.

• The decision state is the state where the trader decides to place the order.

• If the trader places the order, fill the form for the required commodities.

171
• The next activity is that the administrator provides the bill for those
commodities.

• The trader pays for the bill and logout from the system.

COMPONENT DIAGRAM
A component diagram depicts how the components are wired together to form
larger components and or software systems. Components are wired together
by using an assembly connector to connect the required interface of one
component with the provided interface of another component.

DOCUMENTATION OF COMPONENT DIAGRAM


The main component in the component diagram is foreign trading system. The
trader who come to do the trading process and administrator who manages all
the other processes is the sub components.

DEPLOYMENT DIAGRAM
A deployment diagram models the physical deployment of artifacts on nodes.
The nodes appear as boxes, and the artifacts allocated to each node appear as
rectangles within the boxes. Nodes may have sub nodes, which appear as
nested boxes.

172
DOCUMENTATION OF DEPLOYMENT DIAGRAM
The processor in this diagram is the foreign trading system. The devices are
the trader and administrator who perform the main activities in the system.

PACKAGE DIAGRAM
A package diagram in the unified modeling language depicts the dependencies
between the packages that make up a model. It provides a way to group the
elements. There are three types of layers in package diagram. They are

• User interface layer

• Domain layer

• Technical services layer

User interface layer


The user interface layer may call upon its directly subordinate application
logic layer, and also upon elements of a lower technical service layer, for
logging and so forth.
Domain layer
Software objects representing domain concepts (for example, a software class
administrator) that fulfill application requirements, such as tracingorder and
providing the bill.
Technical services layer

173
General purpose objects and subsystems that provide supporting technical
services, such as interfacing with a database or error logging.These services
are usually application-independent.

DOCUMENTATION OF PACKAGE DIAGRAM


The three layers in the foreign trading system are

• User interface layer – consists of web and login. This layer describes how
the trader logins to the website and trades for the commodities.

• Domain layer – shows the activities that are performed inside the trading
system. The activities are place order, pay for the bill and logouts.

• Technical service layer – The sourcing and updating the details are
performed in this layer.

CODING

CODE FOR WELCOME FORM:

Private Sub Command1_Click()


Form2.Show
Unload Me
End Sub

Private Sub Command2_Click()


Form3.Show
Unload Me
End Sub

Private Sub Command3_Click()


Form4.Show
Unload Me
End Sub

Private Sub Command7_Click()


End
End Sub

174
CODE FOR LOGIN FORM:

Dim db As New ADODB.Connection


Dim rs As New ADODB.Recordset

Private Sub Command1_Click()


rs.Open "Select * from fts where name='" & Text1.Text & "' and pass='" &
Text1.Text & "'", db, adOpenStatic
If rs.BOF Then
MsgBox "No such User name and password"
Else
Form8.Show
Unload Me
End If
End Sub

Private Sub Command2_Click()


Form1.Show
Unload Me
End Sub

Private Sub Form_Load()


db.Open "dsn=fts"
End Sub

CODE FOR REGISTER FORM:

Private Sub Command1_Click()


Adodc1.Recordset.Update
MsgBox ("Records Registered")
End Sub

Private Sub Command2_Click()


Form1.Show
Unload Me
End Sub

Private Sub Form_Load()


Adodc1.Refresh
175
Adodc1.Recordset.AddNew
End Sub

CODE FOR DETAILS:

Private Sub Command1_Click()


Form1.Show
Unload Me
End Sub

CODE FOR EXPORT:

Dim db As New ADODB.Connection


Dim rs As New ADODB.Recordset

Private Sub Command1_Click()


Adodc1.Recordset.Update
Form8.Show
Unload Me
End Sub

Private Sub Form_Load()


Adodc1.Recordset.AddNew
db.Open "dsn=fts"
rs.Open "select name from fts", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo1.AddItem rs(0)
rs.MoveNext
Loop
rs.Close
End Sub

CODE FOR IMPORT FORM:


Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
Private Sub Command1_Click()
Adodc1.Recordset.Update
Form8.Show
Unload Me
176
End Sub

Private Sub Form_Load()


Adodc1.Recordset.AddNew
db.Open "dsn=fts"
rs.Open "select name from fts", db, adOpenDynamic, adLockOptimistic
Do While rs.EOF = False
Combo1.AddItem rs(0)

rs.MoveNext
Loop
rs.Close
End Sub

CODE FOR ADMIN PANEL


Private Sub Command1_Click()
Form5.Show
Unload Me
End Sub

Private Sub Command2_Click()


Form6.Show
Unload Me
End Sub

Private Sub Command3_Click()


Form7.Show
Unload Me
End Sub

RESULT
Thus the mini project for foreign trading system has been successfully
executed and codes are generated.

177
Ex. No: 13 CONFERENCE MANAGEMENT SYSTEM

Date:

AIM
To develop a project on Conference management system using
Rational Rose Software.

( I )PROBLEM STATEMENT
The process of the candidates is to login the conference system and submit the
paper through online. Then the reviewer reviews the paper and sends the
acknowledgement to the candidate either paper selected or rejected. This
process of on conference management system are described sequentially
through following steps,

• The candidate login to the conference management system.

• The paper title is submitted.

• The paper is been reviewed by the reviewer.

• The reviewer sends acknowledgement to the candidate.

• Based on the selection, the best candidate is selected.

• Finally the candidate registers all details.

(II )SOFTWARE REQUIREMENT SPECIFICATION

CANDIDATE The candidate can login and submit the paper


to the reviewer. After getting
acknowledgement the candidate will submit
the revised and camera ready paper then
registration process
will be carried out.
REVIEWER Reviewer will reviews the paper and sending
acknowledgement to the candidate
DATABASE Database is used to verify login and storethe
details of selected candidates.

178
SOFTWARE This software specification documents fullset of
REQUIREMENT features and function for conference
SPECIFICATION managementsystem.

PURPOSE
The purpose of the conference management system is that the system can
easily review the process. The main process in this document is the
submission of paper by the candidate, reviewing process by the reviewer and
sending of acknowledgement to the candidates whose paper is selected.

SCOPE
The scope of this conference management process is to select the best
candidate from the list of candidates based on their performance in the
process.

FUNCTIONALITY
The main functionality of conference system is to select the candidate for the
presentation in conference.

USABILITY
The user interface to make the process should be effective that is the system
will help the candidates to register easily. The system should be user friendly.

PERFORMANCE
It describes the capability of the system to perform the conference process of
the candidate without any error and performing it efficiently.

RELIABILITY
The conference system should be able to serve the applicant with correct
information and day-to-day update of information.

FUNCTIONAL REQUIREMENTS
Functional requirements are those that refer to the functionality of the system
that is the services that are provided to the candidate who register for the
conference.

UML DIAGRAMS

179
The following UML diagrams describe the process involved in the
conference management system.

USE CASE DIAGRAM

A use case is a methodology used in system analysis to identify, clarify, and


organize system requirements. The use case is made up of a set of possible
sequences of interactions between systems and users in a particular
environment and related to a particular goal. It is represented using ellipse.
Actor is any external entity that makes use of the system being modeled. It is
represented using stick figure.

DOCUMENTATION OF USE CASE DIAGRAM


The actors in this use case diagram are candidate, reviewer and database.
The use cases are the activities performed by actors.
The actors in this use case diagram are

• Candidate - Logins the conference system and submits the paper then do
the registration process.

• Reviewer – Review the paper , select best candidate and send


acknowledgement to them.

• Databases - verify the login and register details and selected candidate
details are stored in it.

The use cases in this use case diagram are

• Login - Candidate enter their username and password to login to the


conference system.

Paper sumbission– Candidate submits the paper.

• Review the paper– The paper is been reviewed by the reviewer and the
paper is selected.

• Paper confirmation details – The reviewer can send the confirmation


details to the candidate.

180
• Revised and camera ready paper – After the paper is selected and the
camera ready paper should be submitted to the reviewer by candidate.

• Registration – After submitting the revised paper the candidate wants to


register.

CLASS DIAGRAM

A class diagram in the unified modeling 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.

DOCUMENTATION OF CLASS DIAGRAM


This class diagram has three classes candidate, reviewer and database.

• Candidate – Its attributes are name ,collegename , department , paper title.


The operations performed in the candidate class are login, submit the paper,
submit revised and camera ready paper and registration.

181
• Reviewer – Its attributes are name, department, reviewer ID The operations
performed are review the paper and send the paper confirmation details.

• Database –The operations performed are storing candidate details and


verifying login .

SEQUENCE DIAGRAM

A sequence diagram in Unified Modeling 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.

182
SEQUENCE DIAGRAM FOR SUBMITTING PAPER

DOCUMENTATION OF SEQUENCE DIAGRAM


LOGIN
This sequence diagram describes the sequence of steps to show

• The candidate login in to the conference system and register for job.

• The verification done in the database .

PAPER SUBMISSION
This sequence diagram shows steps to show

• The candidate sumbit the paper.

• The reviewer reviews the paper and sends acknowlegement to the


candidate.

• The candidate submits revised and camera ready paper.

• This candidate will registers their detials.

COLLABRATION DIAGRAM
183
A collaboration diagram, also called a communication diagram or interaction
diagram,. A sophisticated modeling 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 behavior of
individual objects as well as the overall operation of the system in real time.

DOCUMENTATION OF COLLABRATION DIAGRAM

LOGIN
This collaboration diagram is to show how the applicant login in the
conference system. Here the sequence is numbered according to the flow of
execution.

PAPER SUBMISSION
This collaboration diagram is to show the submitting paper process of the
candidate for the conference. The flow of execution of this selection process
is represented using the numbers.

STATE CHART DIAGRAM

184
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.

DOCUMENTATION OF STATE CHART DIAGRAM


This state diagram describes the behaviour of the system.

• First state is login where the candidate login to the conference system.

• The next state is submitting the paper .

• Then review the paper if it is selected the process will continue..

• The candidate should submit revised and camera ready paper.


ACTIVITY DIAGRAM

Activity diagrams are graphical representations of workflows of stepwise


activities and actions with support for choice, iteration and concurrency. In
the Unified Modeling 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.

DOCUMENTATION OF ACTIVITY DIAGRAM

This activity diagram flow of stepwise activities performed in recruitment


system.

• First the candidate login to the database.

• Then the candidate should submit the paper.

• If it is selected the acknowledgement will send to the candidate.

• After submitting revised paper the registration proces will be done.

COMPONENT DIAGRAM

185
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.

DOCUMENTATION OF COMPONENT DIAGRAM


The main component in this component diagram is conference management
system. And submit the paper, review the paper and registration.

DEPLOYMENT DIAGRAM

A deployment diagram in the unified modeling 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-dimensional box. Dependencies
are represented by communication association.

186
DOCUMENTATION OF DEPLOYMENT DIAGRAM
The processor in this deployment diagram is the conference management
system which is the main part and the devices are the candidate, appear for do
conference , reviewer will reviews paper , database will store all details which
are the some of the main activities performed in the system.

PACKAGE DIAGRAM

A package diagram in unified modeling 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).

DOCUMENTATION OF PACKAGE DIAGRAM


The three layers in the online recruitment system are

• The User interface layer - consists of the web and login. This layer
describes how the candidate login.

• The Domain layer – shows the activities that are performed in the
conference management system. The activities are paper submission , review
paper , registration.

• The Technical service layer - the verification details and the selected
candidate details will stored into the database.

187
CODE :
FORM1:
Private Sub Command1_Click()
Form2.Show
Me.Hide
End Sub

FORM 2:
Private Sub Command1_Click()
Form3.Show
Me.Hide
End Sub

Private Sub Command2_Click()


Form7.Show
Me.Hide
End Sub
FORM3:
Dim db As Database
Dim rs As Recordset

Private Sub Command1_Click()


Dim a As New participant1
a.sign_in
Form5.Show
Me.Hide
End Sub

Private Sub Command2_Click()


Form4.Show
Me.Hide
End Sub

Private Sub Form_Load()


Set db = OpenDatabase("E:\ooad lab\my stuff\partidetails.mdb")
Set rs = db.OpenRecordset("participant")
End Sub

188
FORM4:
Dim db As Database
Dim rs As Recordset

Private Sub Command1_Click()


rs.MoveFirst
While Not rs.EOF
If rs.Fields("name").Value = Text1.Text And rs.Fields("contact number").Value
= Text2.Text And rs.Fields("reg_id").Value = Text3.Text Then
MsgBox "One step closer......."
Form5.Show
Me.Hide
End If
rs.MoveNext
Wend
If Text1.Text = "" And Text2.Text = "" And Text3.Text = "" Then
MsgBox "Enter some details"
Form4.Hide
Form2.Show
End If

End Sub

Private Sub Form_Load()


Set db = OpenDatabase("E:\ooad lab\my stuff\partidetails.mdb")
Set rs = db.OpenRecordset("participant")
End Sub

FORM5:
Dim db As Database
Dim rs As Recordset

Private Sub Command1_Click()


If Combo2.Text = "0" Then
MsgBox "Sorry mate"
End If
If Combo2.Text = "1" Then
MsgBox "U r One hella Robot!!! Welcome home "
End If
189
End Sub

Private Sub Command2_Click()


rs.MoveLast
rs.AddNew
rs(0) = Text1.Text
rs(1) = Combo1.Text

rs(2) = Text2.Text
rs(3) = Combo2.Text
rs.Update
Text1.Text = ""
Text2.Text = ""
Combo1.Text = ""
Combo2.Text = ""
MsgBox "Thanx a ton for coming!!! U can find ur date an slot herewith. ROCK
ON!!!!"
Form6.Show
Me.Hide
End Sub
Private Sub Form_Load()
Set db = OpenDatabase("E:\ooad lab\my stuff\partidetails.mdb")
Set rs = db.OpenRecordset("thesis_details")
End Sub

FORM6:
Dim db As Database
Dim rs As Recordset

Private Sub Command1_Click()


Form8.Show
Me.Hide
End Sub

Private Sub Form_Load()


Set db = OpenDatabase("E:\ooad lab\my stuff\partidetails.mdb")
Set rs = db.OpenRecordset("thesis_details")
If rs.Fields("refernces").Value = "jackson" Then
MsgBox "Be there on 23rd march, 6 pm sharp, v'll b waitin forya!! "
ElseIf rs.Fields("refernces").Value = "samuels" Then
190
MsgBox "Be there on 23rd march, 7 pm sharp, v'll b waitin forya!! "
ElseIf rs.Fields("refernces").Value = "swift" Then
MsgBox "Be there on 23rd march, 8 pm sharp, v'll b waitin forya!! "
ElseIf rs.Fields("refernces").Value = "beiber" Then
MsgBox "Be there on 23rd march, 5 pm sharp, v'll b waitin forya!!"
End If
End Sub

FORM7:
Dim db As Database
Dim rs As Recordset

Private Sub Command1_Click()


rs.MoveLast
rs.AddNew
rs(0) = Text1.Text
rs(1) = Text2.Text
rs(2) = Text3.Text
rs.Update
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Form8.Show
Me.Hide
End Sub

Private Sub Form_Load()


Set db = OpenDatabase("E:\ooad lab\my stuff\partidetails.mdb")
Set rs = db.OpenRecordset("participant")
End Sub

CLASS PARTICIPANT1:
Option Base 0
Option Explicit
'##ModelId=4D7D9DA302CE
191
Private name As Variant

'##ModelId=4D7D9DA603A9
Private contact_no As Variant

'##ModelId=4D7DA0210128
Private regid As Variant

'##ModelId=4D7D9FE0031C
Private thesis_title As Variant

'##ModelId=4D7D9FE60167
Private thesis_stream As Variant

'##ModelId=4D7D9FF50242
Private references As Variant

'##ModelId=4D7D9E3C030D
Public Sub sign_in()
End Sub

'##ModelId=4D7D9E4202BF
Public Sub sign_up()
rs.MoveLast
rs.AddNew
rs(0) = Form3.tname.Text
rs(1) = Form3.tnum.Text
rs(2) = Form3.tid.Text
rs.Update
MsgBox "Welcome on board!!"
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End Sub

'##ModelId=4D7D9E4600AB
Public Sub enter_thesis_details()
End Sub

'##ModelId=4D7D9EB8036B
192
Public Sub attach_thesis()
End Sub

'##ModelId=4D7D9EC9035B
Public Sub logout() End Sub

RESULT :
Thus the mini project for Conference management system has
beensuccessfully executed and codes are generate.

193
EX.NO : 14
BPO Management System
DATE :

AIM :
To implement a software for BPO management system

(I) PROBLEM STATEMENT:


With the reduction in communication costs and improved bandwidths
and associated infrastructure, BPO as a segment is witnessing a massive
growth. One of the key challenges that BPO companies that 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 to
different operators for processing

(II) SOFTWARE REQUIREMENT SPECIFICATION:

PRODUCT PERSPECTIVE
The BPOS acts as an interface between the 'client' and the
'administrator'. This system tries to make the interface as simple as possible
and at the same time not risking the security of data stored in. This
minimizes the time duration in which the user receives the documents.
SOFTWARE INTERFACE
• Front End Client - The applicant and Administrator online interface
is built using CSS and HTML. The Administrators's local interface is
built using VBscript.
• Web Server - Glassfish application server (SQL Corporation).
• Back End - MySQL database.
HARDWARE INTERFACE
The BPO system’s server is directly connected to the client systems

194
via ftp. The client systems have access to the database in the server.

( III )USECASE DIAGRAM:


The BPO management system use cases are:

Fig.3. UML USE CASE DIAGRAM


195
(IV) UML CLASS DIAGRAM:
The UML class diagram is to illustrate class interfaces and their
actions. They are used for static object modeling, we have already introduced
and used their UML diagram while domain modeling.

Fig.5. UML CLASS DIAGRAM

(V) UML SEQUENCE DIAGRAM:


A sequence diagram illustrates a kind of format in which each
object interacts via message. It is generalize between two or more
specializeddiagram.

Communication diagram illustrate that object interact on a graph or


network format in which object can be placed where on the diagram.
In collaboration diagram the object can be placed in anywhere on the
diagram. The collaboration comes from sequence diagram.
196
Fig. 5.1SEQEUENCE DIAGRAM

197
Fig.5.2COLLABRATION DIAGRAM

198
(VI)PARTIAL LAYERD LOGICAL ARCHITECTURE DIAGRAM:

UI

Swing Text

BPOS Recruitment
Form

Domain

BPOS Admin

QC Data Entry Download OCR

Client

Upload Feedback

Technical Services

Persistence Log4J
SOAP

DBFacade

199
(VIII) DEPLOYMENT DIAGRAM AND COMPONENT DIAGRAM
Deployment diagrams are used to visualize the topology of the physical
components of a system where the software components are deployed.

<<database>>
<<client
:SQL
workstation>>:
GenericPC

SQL FTP

<<server>>

Fig.9.1.DEPLOYMENT DIAGRAM
Component Diagram
Component diagrams are used to visualize the organization and
relationships among components in a system.

200
CODE :
LOGIN FORM

Private Sub Command1_Click()


If (Text1.Text = "global") Then
If (Text2.Text = "global") Then
Form1.Hide
Form2.Show
Else
MsgBox "Incorrect Login", vbOKOnly
End If
End If
End Sub

Private Sub Command2_Click()


Text1.Text = ""
Text2.Text = ""
End Sub

Private Sub Command3_Click()


End
End Sub
MAIN FORM

Private Sub Command1_Click()


Form2.Hide
Form3.Show
End Sub

Private Sub Command2_Click()


Form2.Hide
Form4.Show
End Sub

Private Sub Command3_Click()


Form2.Hide
Form5.Show
End Sub

Private Sub Command4_Click()


Form2.Hide
201
Form6.Show
End Sub

Private Sub Command5_Click()


End
End Sub

ORDER FORM
Private Sub Command1_Click()
Adodc1.Recordset.AddNew
MsgBox " orderd", vbkonly
End Sub

Private Sub Command2_Click()


Adodc1.Recordset.Delete
End Sub

Private Sub Command3_Click()


Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
End Sub

Private Sub Command4_Click()


Form3.Hide
Form2.Show
End Sub

Private Sub Command5_Click()


End
End Sub

Private Sub Command6_Click()


DataReport1.Show
End Sub

202
RESULT :
Thus the mini project for BPO management system has been
successfully executed and codes are generated.

203
Ex.No:15 LIBRARY MANAGEMENT SYSTEM
Date:

AIM
To design an object oriented model for Library Management System using
Rational Rose software and to implement it using VBscript.

PROBLEM STATEMENT
The library management system is a software system that issues books and
magazines to registered students only. The student has to login after getting
registered to the system. The borrower of the book can perform various
functions such as searching for desired book, get the issued book and return
the book.
CLASS DIAGRAM
A class diagram in the unified modeling language is a type of static structure
diagram that describes the structure of a system by showing the system’s
classes, their attributes, operations and the relationships among objects. The
library management system makes use of the following classes user,

204
librarian, system and DBA.

USE CASE DIAGRAM


Use case is a list of actions or events. Steps typically defining the interactions
between a role and a system to achieve a goal. The use case diagram consists
of various functionality performed by actors like user, librarian, system and
DBA.

login

<<actor>>
projection of

user

issue book

return book

DBA

205
DEPLOYMENT DIAGRAM

Deployment diagram is a structure diagram which shows


architecture of the system as deployment of software artifacts to
deployment target. It is the graph of nodes connected by
communication association. It is represented by three dimensional
box. The device node is library management system and execution
environment nodes are user, librarian, system and DBA.

COMPONENT DIAGRAM

Component diagram shows the dependencies and


interactions between software components. Component diagram
carries the most important living actors of the system i.e, user,
librarian and DBA.

206
library management
system

STATECHART DIAGRAM

State chart diagram is also called as state machine diagram.


The state chart diagram contains the states in the rectangular boxes
and the states are indicated by the dot enclosed. The state chart
diagram describes the behavior of the system. The state chart
diagram involves eight stages such as login, enter details,
requesting for book, display book details, search book, issuebook,
return book and logout.

login enter requesting


details for book

return book search


book

COLLABORATION DIAGRAM
Like sequence diagram collaboration diagrams are also called as interaction
diagram. Collaboration diagram convey the same informations as sequence
diagram but focus on the object roles instead of the times that messages are
sent. Here the actions between various classes are represented by number
format for the case of identification.

207
SEQUENCE DIAGRAM
A sequence diagram represent the sequence and interactions of a given use
case or scenario. Sequence diagram capture most of the information about the
system. It is also represent in order by which they occur and have the object
in the system send message to one another. Here the sequence starts with
interaction between user and the system followed by database. Once the book
have been selected the next half of sequence starts between librarian and user
followed by database.

208
ACTIVITY DIAGRAM
Activity diagram are graphical representation of workflows of stepwise
activities and actions with support for choice, iteration and concurrency. Here
in the activity diagram the user login to the system and perform some main
activity which is the main key element to the system.

209
CODE :

Dim library
Set library = CreateObject("Scripting.Dictionary")

Sub AddBook(title, author, year)


If Not library.Exists(title) Then
Dim bookDetails
Set bookDetails = CreateObject("Scripting.Dictionary")
bookDetails.Add "Title", title
bookDetails.Add "Author", author
bookDetails.Add "Year", year
library.Add title, bookDetails
MsgBox "Book added successfully."
Else
MsgBox "Book already exists in the library."
End If
End Sub

Sub SearchBook(title)
If library.Exists(title) Then
Dim bookDetails
Set bookDetails = library(title)
MsgBox "Title: " & bookDetails("Title") & vbCrLf & _
"Author: " & bookDetails("Author") & vbCrLf & _
"Year: " & bookDetails("Year")
Else
MsgBox "Book not found in the library."
End If
End Sub

Sub DisplayLibrary()
Dim bookTitle
Dim bookList
bookList = "Library Inventory:" & vbCrLf & vbCrLf
For Each bookTitle In library.Keys
Dim bookDetails
210
Set bookDetails = library(bookTitle)

bookList = bookList & "Title: " & bookDetails("Title") & vbCrLf & _
"Author: " & bookDetails("Author") & vbCrLf & _
"Year: " & bookDetails("Year") & vbCrLf & vbCrLf
Next
MsgBox bookList
End Sub

' Example usage:


AddBook "The Great Gatsby", "F. Scott Fitzgerald", 1925
AddBook "To Kill a Mockingbird", "Harper Lee", 1960
AddBook "1984", "George Orwell", 1949

RESULT

Thus the various UML diagrams for library management system was drawn
and the code was generated successfully.

211
Ex.No:16 STUDENT INFORMATION SYSTEM
Date:

AIM
To design an object oriented model for Student information system using
Rational Rose software.

PROBLEM STATEMENT

The student must register by entering the name and password to login the
form. The admin select the particular student to view the details about that
student and maintaining the student details. This process of student
information system is described sequentially through following steps. The
student registers the system. The admin login to the student information
system. He/she search for the list of students. Then select the particular
student. Then view the details of that student. After displaying the student
details then logout.
CLASS DIAGRAM
The class diagram is the graphical representation of all classes used in the
system. The class diagram is drawn as rectangular box with three components
or compartments like class name, attributes and operations. The student
information system makes use of the following classes like student, staff,
system, DBA and server.

212
COLLABORATION DIAGRAM
A Collaboration diagram represents the collaboration in which is a set of
objects related to achieve a desired outcome. In collaboration, the sequence
is indicated by numbering the message several numbering schemes are
available. Login, request access, allow access, display, view details, logout,
login, request access, allow access, display, enter profile, enter mark, provide
data, logout, store data, update data.

213
SEQUENCE DIAGRAM

A Sequence diagram represent the sequence and interaction


of a given usecase or scenario. Sequence diagram capture most of
the information about the system. Here the sequence starts between
the student and the system. The second half of interaction takes
place between staff and system then by police and followed

214
by database. The student first login to the system and then view
the details of the details. Staff login to the system enter mark and
enter the details of the student. DBA store and update the details
of the student.

COMPONENT DIAGRAM

Component diagram carries the major living actors of the


system. The component diagram main purpose is to show the

215
structural relationship between components of the system.The main
component of the system is student information system and the
other components of the system are student, staff and DBA.
student information

USE CASE DIAGRAM


Use case diagram is a graph of actors, a set of use cases, association between
the actors and the use cases and generalization among the cases. Use case
diagram is a list of actions or events. Use case diagram was drawn to represent
the static design view of the system. Steps typically defined the interactions
between a role and a system to achieve a goal. The use case diagram consists
of various functionality performed by the actors like student, staff, system,
DBA and server. The use case diagram consists of various functionality like
login, display, enter profile, enter mark, view details, update details, allow
access, request access, store details, logout.

216
DEPLOYMENT DIAGRAM

Deployment diagram shows the configuration of runtime


processing elements and the software components processes and
objects that live in them. Component diagram are used in
conjunction with deployment diagram to show how physical
modules code are distributed on various hardware platform. The
processor node in the system is student information system and
the execution environment nodes or device nodes are student,staff
and DBA.

217
STATE CHART DIAGRAM
A State chart diagram is also called as state machine diagram. The state chart
contains the states in the rectangular boxes and the states are indicated by the
dot enclosed. The state chart diagram describes the behavior of the system.
The state chart involves six stages such as login, enter mark, enter profile,
view details, provide details, update details, store details and logout.

marks

view details

details details

ACTIVITY DIAGRAM

Activity diagram are graphical representation of stepwise

218
activities and actions with support for choice, interaction and
concurrency. Here in the activity diagram the student login to the
system and view the details of the student. The staff login to the
system for entering the student details and update the details in the
database. The final interaction is the DBA store the details of the
student.

219
CODE :

Dim studentName
Dim studentID
Dim studentGrade

' Function to add a new student


Sub AddStudent()
' Prompt user for student information
studentName = InputBox("Enter student name:")
studentID = InputBox("Enter student ID:")
studentGrade = InputBox("Enter student grade:")

' Display the entered information


MsgBox "Student Added:" & vbCrLf & _
"Name: " & studentName & vbCrLf & _
"ID: " & studentID & vbCrLf & _
"Grade: " & studentGrade
End Sub

' Function to search for a student


Sub SearchStudent()
' Prompt user for student ID to search
Dim searchID
searchID = InputBox("Enter student ID to search:")

' Check if the student ID matches any stored student


If searchID = studentID Then
' Display the student information
MsgBox "Student Found:" & vbCrLf & _
"Name: " & studentName & vbCrLf & _
"ID: " & studentID & vbCrLf & _
"Grade: " & studentGrade
Else
' Inform user that student was not found
MsgBox "Student not found."
End If
220
End Sub

' Function to display menu and handle user choice


Sub MainMenu()
Dim choice
Do
' Display menu options
choice = InputBox("Student Information System" & vbCrLf & _
"1. Add Student" & vbCrLf & _
"2. Search Student" & vbCrLf & _
"3. Exit" & vbCrLf & _
"Enter your choice:")

' Handle user choice


Select Case choice
Case "1"
' Add Student
AddStudent
Case "2"
' Search Student
SearchStudent
Case "3"
' Exit
Exit Do
Case Else
' Invalid choice
MsgBox "Invalid choice. Please enter a valid option."
End Select
Loop
End Sub

RESULT
Thus the various UML diagrams for student informationsystem
were drawn and code was generated successfully.

221

You might also like