Professional Documents
Culture Documents
Ooad Lab
Ooad Lab
NO DATE:
:1
4. Database Form:
The details about the conferences going to conduct by various institutions. Administrator can add the details about the conference for the students and also for the staff members.
SOFTWARE REQURIEMENTS:
1. Microsoft Visual Basic 6.0 2. Rational Rose 3. Microsoft Access.
HARDWARE REQURIMENTS:
1. 128MB RAM 2. Pentium III Processor
STRUCTURE OF DATABASE:
Create a table conf using Microsoft access with the following attributes:
S.NO
1. 2. 3. 4. 5.
FIELD
dname conferdet collname date time
TYPE
varchar varchar varchar Text Text
SIZE
20 40 20 10 05
lo g i n
(f ro m u s e c a s e )
user
(f ro m a c t o r)
a d m in
( f ro m a c t o r )
e n q u r iy
(f ro m u s e c a s e )
vie w d e t a il s
(f ro m u s e c a s e )
a d d d e t a i ls
(f ro m u s e c a s e )
ACTIVITY DIAGRAM:
enter the id
select department
exit
CLASS DIAGRAM:
administrator admin_pass : variant validate_pass() add details() view detals()
SEQUENCE DIAGRAM:
USER
DEPARTMENT
ADMINISTRAT OR
DATABASE
Enter the username and password Verify password Ok display the selection of department
verify
ok
ok
COLLABRATION DIAGRAM:
1: Enter the username and password 10: view the details 4: display the selection of department 9: ok 6: verify the department
COMPONENT DIAGRAM:
Admin
Database
Display
Student
DEPLOYMENT DIAGRAM:
databas e
admin
user
display
CODE:
VIEW DETAILS:FORM
Dim rs As New ADODB.Recordset Public Sub connection() Set conn = Nothing varcon = "conf" End Sub Private Sub Command1_Click() rs.MovePrevious If (Not EOF And Not BOF) Then Text1.Text = rs(1) End If 7
End Sub Private Sub Command3_Click() Unload Me End Sub Private Sub Form_Load() Text2.Text = Form1.Combo1.Text a = "text2.text" conn.Open ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\My Documents\abc.mdb;Persist Security Info=False") rs.Open "select * from conf where dname='" & Text2.Text & " '", conn, adOpenDynamic, adLockOptimistic 'rs.Open "select * from conf where dname="& Text2.Text& " ";, conn, adOpenDynamic, adLockOptimistic Text1.Text = rs(1) Text3.Text = rs(2) Text4.Text = rs(3) Text5.Text = rs(4) End Sub Private Sub Form_Unload(Cancel As Integer) Unload Form1 Unload Form3 Unload Form2 End Sub
LOGIN FORM:
Dim conn As New ADODB.connection Dim rs1 As New ADODB.Recordset Public Sub connection() Set conn = Nothing varcon = "conf" 8
End Sub Private Sub Command1_Click() If rs1(1) = Text2.Text And rs1(2) = "admin" Then Form4.Show Else Form1.Show End If End Sub Private Sub Form_Load() conn.Open ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\My Documents\abc.mdb;Persist Security Info=False") rs1.Open "select * from login where uname='admin'", conn, adOpenDynamic, adLockOptimistic End Sub
Private Sub Command2_Click() Form1.Show Unload Me End Sub Private Sub Form_Load() conn.Open ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\My Documents\abc.mdb;Persist Security Info=False") rs1.Open "select * from login where uname='admin'", conn, adOpenDynamic, adLockOptimistic End Sub
LOGIN FORM:
10
LOGIN:ADMIN
11
12
13
14
15
LOGIN:USER
16
17
DATABASE VIEW:
18
19
LOGIN DATABASE:
20
EX.NO DATE
:2 :
OVERALL DESCRIPTION
The Exam Registration System is an integrated system that has four modules as part of it.the four modules are
21
SOFTWARE REQUIRMENTS
1. Microsoft Visual Basic 6.0 2. Rational Rose 3. Microsoft Access
HARDWARE REQUIRMENTS
1.128MB RAM 2. Pentium III Processor
USE CASE:
22
s tu d e n t
(f ro m a c t o r)
re g is t e r fo r e x a m
(f ro m u se c a s e )
d a ta b s e
(f ro m a c t o r)
s e le c t t h e e x a m
(f ro m u se c a se )
c a n c e l t h e e x a m re g is t r a t io n e n te r d a ta s
(f ro m u s e c a se ) (f ro m u se c a se )
m a in t a in s t u d e n t in fo m o d ify d a t a b s e
(f ro m u s e c a se ) (f ro m u se c a s e )
ACTIVITY DIAGRAM:
23
e n t e r in t o s y s te m
cancel re g i s r t a t io n
s e le c t t h e s u b je c t
a p p ly t h e e x a m
m o d ify d a t a b s e
CLASS DIAGRAM:
24
s tudent nam e id addres s phone num ber s ubjec t nam e s elec t the s ubjec t () apply () c anc el() m odify ()
ex am databas e id nam e addres s phone num ber s ubjec t update() m odify () s elec t() dis play id()
databas e if nam e phone no s ubjec t dis play regis tartion() dis play s ubjec t() update()
SEQUENCE DIAGRAM:
25
exam registration
databse
generation of registration id
note id
modify databse
COLLABRATION DIAGRAM:
26
student
1: enter the datas 2: select the subject 3: apply for the exam
exam registration
4:
databse
COMPONENT DIAGRAM
student
exam registration
Databse
DEPLOYMENT DIAGRAM:
27
student
exam registration
Databse
CODE:
28
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() End Sub
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 db.Close End Sub Private Sub Form_Load() db.Open "dsn=coursereg" rs.Open "select name from Course", db, adOpenDynamic, adLockOptimistic 30
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) 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 31
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 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) 32
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
33
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:
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 34
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
35
REGISTRATION FORM:
36
REGISTRED SUCCESSFULLY:
37
GENERATION OF ID:
38
ENQURIY FORM:
39
CANCELLATION FORM:
40
DATABSE VIEW:
41
COURSE
STUDENT DETAILS:
EX.NO : 3 DATE :
42
OVERALL DESCRIPTION
The three modules are
1. Entry form
The employee details, edit details and exit command buttons are present. We can choose the required command button.
3.Database form
Updated database would be present. We can search for the required Pay details using SEARCH command button
SOFTWARE REQURIEMENTS:
43
HARDWARE REQURIMENTS:
3. 128MB RAM 4. Pentium III Processor
STRUCTURE OF DATABASE:
Create a table conf using Microsoft access with the following attributes:
S.NO
1. 2. 3. 4. 5. 6. 7. 8.
FIELD
Employe ID Employee name Department Experience Basic pay HRA PF GPAY
TYPE
number varchar varchar number number number number number
SIZE
10 30 10 2 5 5 4 8
DESIGN
44
USECASE DIAGRAM
CLASS DIAGRAM
45
SEQUENCE DIAGRAM
46
COLLABRATION DIAGRAM
SEQUENCE DIAGRAM
47
COLLABRATION DIAGRAM
ACTIVITY DIAGRAM
48
CODE:
49
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: rivate 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) 50
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
51
DATABASE FORM: Dim flag As Boolean Dim n As String 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
6. SCREEN SHOTS
52
53
DATABASE DISPLAY
54
EX.NO : 4
55
OVERALL DESCRIPTION
The three modules are 1. Login User can login using the username and password and they can start attend the test for the specified vacancy 2. Recruitment test This system will generate random question to test the skills of the Candidate and check whether the candidate is suitable for the position offered by the company. 3. Result This will show whether the candidate is selected or not selected for the position by displaying the message.
SOFTWARE REQURIEMENTS
7. Microsoft Visual Basic 6.0 8. Rational Rose 9. Microsoft Access.
HARDWARE REQURIMENTS
5. 128MB RAM 6. Pentium III Processor
DESIGN
56
lo g in
(f ro m u se c a se m o d e l )
c a n d id a t e
(f ro m u se c a se m o d e l )
d a ta b a s e vie w t h e q u e s t io n s
(f ro m u se c a se m o d e l ) (f ro m u se c a se m o d e l )
a tte n d t he te s t
(f ro m u se c a se m o d e l )
d is p la y re s u lt
(f ro m u se c a se m o d e l )
ACTIVITY DIAGRAM
57
login
invalid user
CLASS DIAGRAM
58
c a n d id a t e lo g in p a s s w o rd nam e2 a tt e n d () re s u lt ()
d a ta b s e q u e s t io n s c o re id d is p la y () c a lc u la t e () re s u lt d is p la y ()
re c ru it m e n t t e s t q u e s t io n d is p la y q u e s t io n () s u b m it t h e a n s w e r() d is p la y m s g ()
SEQUENCE DIAGRAM
59
c andidate
Database
60
COLLABRATION DIAGRAM
1: enter by login and password 6: answer all the questions candidat e 5: display questions 9: display message 2: verify login 3: request for questions for the test 7: verify the answer 4: send questiondisplay result 8: for test recritment system
Databas e
COMPONENET DAIGRAM
candidat e
recruitment system
database
61
DEPLOYMENT DIAGRAM
DATAB SE
RECRUI TME...
CANDID ATE
62
CODE:
Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Dim com As New ADODB.Command Dim dsn As String Dim tname As String Private Sub Command1_Click() 'tname = "CREATE TABLE " & Text1.Text & "(qno integer,ans char(20))" 'con.Execute tname Form2.Show End Sub Private Sub Form_Load() Set con = Nothing dsn = "quiz" con = dsn con.Open End Sub Private Sub Text2_KeyPress(KeyAscii As Integer) tname = tname & Chr(KeyAscii) If tname = "notitia" Then Form3.Show End If End Sub
63
QUESTION SET : Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Dim user As New ADODB.Recordset Dim com As New ADODB.Command Dim dsn As String Dim ans As String Dim ansno As Integer Dim i As Integer Dim score As Integer
Private Sub Command1_Click() If Option1.Value = True Then If ans = Option1.Caption Then score = score + 1 End If End If If Option2.Value = True Then If ans = Option2.Caption Then score = score + 1 End If End If If Option3.Value = True Then If ans = Option3.Caption Then score = score + 1 End If End If If Option4.Value = True Then If ans = Option4.Caption Then 64
score = score + 1 End If End If ' rs.Close clearall i=i+1 If i <> 6 Then rs.Open "select * from ques where qno=" & Str(i) & "", con, adOpenDynamic, adLockOptimistic Label1 = rs.Fields(1) Option1.Caption = rs.Fields(2) Option2.Caption = rs.Fields(3) Option3.Caption = rs.Fields(4) Option4.Caption = rs.Fields(5) ans = rs.Fields(6) ansno = rs.Fields(0) rs.Close End If If i = 6 Then MsgBox "You have Completed the quiz!!!" user.Fields(1) = Str(score) user.Update user.Close Command1.Enabled = False Form1.Text1.Text = "" Form1.Text2.Text = "" MsgBox "score=" & score If score >= 3 Then 65
MsgBox "Congrats!!! selected." Else MsgBox "Better luck nxt time!! you've ben rejected." End If Unload Me End If End Sub Private Sub Form_Load() Set con = Nothing dsn = "quiz" con = dsn con.Open score = 0 i=1 rs.Open "select * from ques where qno=" & Str(i) & "", con, adOpenDynamic, adLockOptimistic Label1 = rs.Fields(1) Option1.Caption = rs.Fields(2) Option2.Caption = rs.Fields(3) Option3.Caption = rs.Fields(4) Option4.Caption = rs.Fields(5) ans = rs.Fields(6) ansno = rs.Fields(0) user.Open "select * from score", con, adOpenDynamic, adLockPessimistic user.AddNew user.Fields(0) = Form1.Text1.Text user.Fields(1) = "" rs.Close
66
End Sub Private Sub clearall() Label1.Caption = "" Option1.Value = False Option1.Caption = "" Option2.Value = False Option2.Caption = "" Option3.Value = False Option3.Caption = "" Option4.Value = False Option4.Caption = "" End Sub Private Sub Label2_Click() End Sub
67
68
SCORE:
69
EX.NO : 5 DATE :
70
USE-CASE DIAGRAM:
SELECT TOPIC
SYSTEM
EXIT
DESCRIPTION: Use case diagrams describe what a system does from the stand point of an external observer. The emphasis is an; What a system does rather than how it does Use case diagram are helpful in 3 cases: Use case often generates new requirement as the system is analyzed and the system is analyzed and the design takes shape. Communication with clients. 71
ACTIVITY DIAGRAM:
START
SELCET E-BOOK
SELECT SUB-TOPIC (1 TO n)
STOP
DESCRIPTION: Activity diagram focus on the flow of activity involved in the single process. Activity diagram shows how the activities depend on the another. It is essentially a FANCY diagram. Activity diagram is closely related with State chart.
72
SEQUENCE DIAGRAM:
USER
SYSTEM
SELECT TOPIC
DISPLAY INFORMATION
EXIT
DESCRIPTION: Sequence diagram is an interaction diagram which is dynamic Sequence diagram gives information such as: How operations are carried out. What messages are sent? When sequence diagrams are organized according to time.
73
The objects involved in the operation are listed from left to right according to when they take part in the message sequence.
COLLABORATION DIAGRAM:
DESCRIPTION: Collaboration diagram are interaction diagram which are dynamic. Collaboration diagram focuses on object role instead of times that message are sent. Each message in the collaboration diagram has a sequence number.
74
DEPLOYMENT DIAGRAM:
CPU
KEY BOARD
PRINTER
MOUSE
DESCRIPTION: Deployment diagram is also called as component diagram. The component is code module. Component diagram are physical analog of class diagram. It shows the physical configuration of hardware and software.
75
CODING: MAIN PAGE: <html> <head> <title>E-BOOK</title><br> </head> <body bgcolor="yellow"> <p> <font face="Monotype Corsiva" size="5" color="red"> <center><h1>E-BOOK ON OBJECT ORIENTED SYSTEM DEVELOPMENT</h1></center> </p> <p> This book has a unique features:<br> *Use of unified modeling language.<br> *Inclusion of the Popkin system architect CASE tools.<br> *Use of a use-case-driven approach.<br> *System life cycle using object-oriented techniques.<br> </p> <center><a href="page1.html"><br>GO TO INDEX PAGE</a><br></center> </body> </html> PAGE 1: <html> <head> <title>INDEX PAGE</title> </head> 76
<body bgcolor="orange"> <p> <font face="Monotype Corsiva" size="5" color="green"> <center><p><u><font color="red"><br><br>TABLE OF CONTENTS</font></u></p></center> <br><a href="page2.html">1.OBJECT ORIENTED METHODOLOGIES</a><br><br> <a href="page3.html">2.SOFTWARE QUALITY ASSURANCE</a><br> </p> <center><a href="main.html"><br><br><br>BACK TO MAIN PAGE</a></center> </body> </html> PAGE 2: <html> <head> <title>OBJECT ORIENTED METHODOLOGIES</title> </head> <body bgcolor="pink"> <p> <font face="Monotype Corsiva" size="5" > <center><h1>OBJECT ORIENTED METHODOLOGIES</h1></center> </p> <p> <br> <br> <a href="page4.html">1.INTRODUCTION</a><br><br> <a href="page5.html">2.BOOCH METHODOLOGY</a><br><br> <a href="page6.html">3.JACOBSON ET AL.METHODOLOGIES</a><br><br> </font> </p> <center><a href="page1.html"><br><br>BACK TO INDEX PAGE</a></center> 77
</body> </html> PAGE 3: <html> <head> <title>SOFTWARE QUALITY ASSURANCE</title> </head> <body bgcolor="pink"> <p> <br> <font face="Monotype Corsiva" size="5" ><br> <center><h1>SOFTWARE QUALITY ASSURANCE</h1></center> <a href="page7.html">1.INTRODUCTION</a><br><br> <a href="page8.html">2.TEST CASE</a><br><br> <a href="page9.html">3.TEST PLAN</a><br> </font> </p> <center><a href="page2.html"><br><br>BACK TO INDEX PAGE</a></center> </body> </html> PAGE 4: <html> <head> <title>INTRODUCTION</title> </head> <body bgcolor="cyan"> <p> <font face="courier new" size="4" color="red"> 78
<p> In the 1980's many methodologists were wondering how analysis and design methods and processes would into an object oriented world. object oriented method have suddenly become popular. The trend in object oriented methodologies sometimes called second generation object oriented methods.<br> </p> <p> To get a feel for object oriented methodologies let us look at some of the methods developed in the 1980's.<br> </p> <p> *1986.BOOCH[6] developed the object oriented design concept the BOOCH method.<br> *1989.Beck and Cunningham produced class-responsibility-collaboration cards.<br> </p> </p> <CENTER><a href="page2.html">BACK TO INDEX PAGE</a></center> </body> </html> PAGE 5: <html> <head> <title>BOOCH METHODOLOGY</title> </head> <body bgcolor="cyan"> <p> <font face="courier new" size="4" color="red"> <p>The Booch methodology consists of: <br></p> 1.Class diagrams<br> 2.Object diagrams<br> 3.State-transition diagrams<br> 79
4.Module diagrams<br> 5.process diagrams<br> 6.Interaction diagrams<br> </p> <p> The BOOCH methodology describes:<br> <center> Macro developement process<br></center> <center> micro developement process<br></center> </p> </p> <CENTER><a href="page2.html"><br>BACK TO INDEX PAGE</a></center> </body> </html>
PAGE 6: <html> <head> <title>JACOBSON ET AL.METHODOLOGY</title> </head> <body bgcolor="cyan"> <p> <font face="courier new" size="4" color="red"> <p> The use-case model of jacobson is an interaction between user and system.<br> The use-case model captures the goal of the user and the responsibility of the system to its user.<br> </p> <p> 1.Non formal text with no clear flow of events<br> 80
2.Formal style using pseudo code<br> </p> <p> The use cases could be viewed as abstract. An abstract use case is not complete and has no actors that initiates it but it is used by another use case. The inheritance could be used in several levels. Abstract use cases also are the one that have uses or extends relationships. </p> </p> <CENTER><a href="page2.html">BACK TO INDEX PAGE</a></center> </body> </html> PAGE 7: <html> <head> <title>SOFTWARE QUALITY ASSURANCE</title> </head> <body bgcolor="cyan"> <p> <font face="courier new" size="4" color="red"> <p> OBJECTIVES:<BR> *Testing strategies.<br> *The impact of an object orientation on testing.<br> *How to develop test cases.<br> *How to develop test plans.<br><br> To develop and deliver robust system we need a high level of confidence that[2]<br><br> *Each component will behave correctly.<br> *Corrective behavior is correct.<br> *No incorrect collective behavior in produced.<br> <br> </p> 81
</p> <CENTER><a href="page3.html">BACK TO INDEX PAGE</a></center> </body> </html> PAGE 8: <html> <head> <title>SOFTWARE QUALITY ASSURANCE</title> </head> <body bgcolor="cyan"> <p> <font face="courier new" size="4" color="red"> <p> Myers describes the objective of testing as follows<br> *Testing is the process of executing a program with the intent of finding errors<br> *A good test case is the one that as high probability of detecting an as-yet undiscovered errors.<br> *A sucessfull testcase is the one that detects an as-yet undiscovered errors.<br> <br> </p> </p> <CENTER><a href="page3.html">BACK TO INDEX PAGE</a></center> </body> </html> PAGE 9: <html> <head> <title>SOFTWARE QUALITY ASSURANCE</title> </head> <body bgcolor="cyan"> <p> 82
<font face="courier new" size="4" color="red"> <p> The following steps are needed to create a test plan :<br> OBJECTIVES OF TEST <BR> DEVELOPMENT OF TEST CASE<BR> TEST ANALYSIS<BR><BR> Testing are classified in to two types.<br><br> *ALPHA TESTING <BR> *BETA TESTING<BR> </p> </p> <CENTER><a href="page3.html"><BR><BR>BACK TO INDEX PAGE</a></center> </body> </html>
83
84
Page 2
85
Page 3
86
Page 4
87
EX.NO : 6 DATE :
88
P urc has e
S a les
P RO DUCE R
P ric e/ite m
D E A LE R
P ric e/Item
S HO P K E E P E R
Ite m s ordered
Total pric e
Tota l pric e
89
ACTIVITY DIAGRAM:
In e to v n ry S yste m S le fro e ct m th M n e eu
P rch se u a
S le a s
S ck to
E xit
N o Ite s o f m o e d rd re
T ta P o l rice
90
SEQUENCE DIAGRAM:
PRODUCER 1.PURCHASE
DEALER
SHOPKEEPER
91
COLLABORATION DIAGRAM:
5 : 3 . P R IC E / ITE M 9 : 5 .TO TA L P R IC E PRO DUC ER 1 : 1 .P U R C H A S E 3 : 2 .C O M P A N Y N A M E 7 : 4 .N O O F ITE M S O R D E R E D 4 : 2 .C O M P A N Y N A M E 8 : 4 .N O O F ITE M S O R D E R E D 1 0 : 5 .C H E C K IN G W ITH A V A IL A B IL ITY 2 : 1 .S A L E S 6 : 3 . P R IC E / ITE M 1 1 : 6 .ITE M S IN S U F F IC IE N T/T O T A L P R IC E DE A LE R
92
COMPONENT DIAGRAM:
MANUFA CTURER DEALER SHOPKE EPER
DATABASE
CLASS DIAGRAM:
93
MANUFACTURER Manufacturer Name Company Name Date of Manufactured Address Contact Number Price Purchase() Sales()
DEELER Dealer Name Date of Items Receiv ed Address Contact Number Price No of Items Ordered No of Items Sold Purchase() Sales() Show stock Details() SHOPKEEPER ShopKeeper Name Address Contact Number Price No of Items Ordered Purchase() Sales()
DEPLOYMENT DIAGRAM:
Process or
Printer
M ouse
Keyboar d
CODING: 94
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 If Text7.Text = "" Then 95
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 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 96
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" Else rs(6) = Text4.Text If rs(6) <= rs(4) Then rs(7) = rs(5) * rs(6) rs(4) = rs(4) - Val(Text4.Text) 97
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 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
98
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" 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 99
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
100
101
102
103
Ex. No Date
104
PROBLEM STATEMENT:
The course registration system will allow students to register for courses and view report cards from personal computers attached to the campus LAN as well as over the Internet. Professors will be able to access the system to sign up to teach courses as well as record grades. The legacy system performance is rather poor, so the new system must ensure that access course information from the legacy database but will not update it. The registrars office will continue to maintain course information through another system. At the beginning of each semester, students may request a course catalogue containing a list of course offerings for the semester. Information about each course, such as professor, department, and prerequisites, will be included to help students make informed decisions. The new system will allow students to select four courses offering for the coming semester. In addition, each student will indicate two alternatives choices in case the student cannot be assigned to a primary selection. Course offerings will have a maximum of ten students and a minimum of three students. A course offering with fewer than three students will be canceled. For each semester, there is period of time that the students can change their schedule. Students must be able to access the system during this time to add or drop courses. Once the registration process is completed for a student, the registration system sends information to the billing system so the student can be billed for the semester. If a course fills up during the actual registration process, the student must be notified of the change before submitting the schedule for processing. At the end of the semester, the student will be able to access the system to view an electronic report card. Since student grades are sensitive information, the system must employ extra security measures to prevent unauthorized access.
SOFTWARE REQURIEMENTS
10. Microsoft Visual Basic 6.0 11. Rational Rose 12. Microsoft Access.
HARDWARE REQURIMENTS
7. 128MB RAM 8. Pentium III Processor
105
student
course catalog
login
registrar
Login Module
loginform
SEQUENCE DIAGRAM:
billing system
106
COLLABORATION DIAGRAM:
: student1
CLASS DIAGRAM:
login form login user() enter username and password() validate username and password()
107
ACTIVITY DIAGRAM:
: actor
: adding form1
e n te : updating form1 r
t h e p ro p e r : deleting form1 lo g in id
c o rre s po n d in g in fo .
s h o w t h e lo g in
update prof id()
confirm deletion()
108
6: update submission form() 3: add prof id() : system controller1 : updating form1 7: update prof id() 13: delete prof id() 4: prof id created () 8: prof record updated() 11: confirm deletion() 10: delete submission form() : prof profile
12: delete()
COLLABORATION DIAGRAM:
: actor
109
: adding form1
CLASS DIAGRAM:
adding form
add a profes sor to add prof. info.() update a professor
deleting form
delete to delete prof.info.() a professor
enter the controller system profeesor [ id is found [ id is not found ] update submission ]form()
updating form
update the details to update info.()
prof. profile add prof id() update prof id() delete prof id()
ACTIVITY DIAGRAM:
110
register : reg
SEQUENCE DIAGRAM:
update student info()
111
COLLABORATION DIAGRAM:
1: fn specification() 5: update student info()
register : reg
2: register student()
studentDatabase add s tudent() register student() update s tud info() delete stud info()
CLASS DIAGRAM:
register s tudents Added() newS tudentIdCreated() noUpdated() noDeletion() updationNotValid() updationCom pleted() deletionCom pleted() register()
112
ACTIVITY DIAGRAM:
indicate the function to be performed
add a student
update a student
delete a student
enter student id
id of student is given
registration controller
delete the student dont delete
is registration open()
create schedule()
SEQUENCE DIAGRAM:
delete schedule()
113
COLLABORATION DIAGRAM:
3: display possible operations() 1: register for courses() 4: create schedule() 5: update schedule() 6: delete schedule() register for courses form : actor
114
registerForCoursesForm courseCatalogSystem submitSchedule() displayCourseOfferings() updateShedule() deleteSchedule() confirmScheduleDeleting() registerForCourse() displayPossibleOperation() saveSchedule() createSchedule() select4PrimaryAnd2AlternateOfferings() displayBlankSchedule() updateOfferingsSelecting() getCourseOfferings() courseCatalogSystem()
student schedule getTution() addShedule() getSchedule() deleteSchedule() hasPreRequister() student() commit() selectAlternate() removeOfferings() level() cancel() getCost() delete() submit() save() anyConflicts() createWithOfferings() to enterupdateWithNewSelections() cancel course schedule() registration registration
courseOfferings number : string = "100" startTime : time endTime : time days : enum addStudent() removeStudent() closeRegistration() getNumberOfStudents() cancel() stillOpen() addProfessor() close() save()
create a schedule
status display current schedule markAsSelected() markAsCancelled() isSelected() list is given for course scheduleOfferingsInfo() and students
confirm the deletion add the course offerings delete the course offerings verifies the deletion
ACTIVITY DIAGRAM:
115
COMPONENT DIAGRAM:
STATECHART DIAGRAM:
116
student enrollment
DIPLOYMENT DIAGRAM:
reservation system system controller student schedule register profile
database oracle
linux os
Ex. No Date
PROBLEM STATEMENT:
To develop a Credit Card system. The system developed should contain the following features: The customer login into the system using credit card number and pin number. The system for validation. The system queries the customer for type of accounts either SB account or credit. After getting the type of account the system shows the amount left. The system then queries the customer for required amount. The user enters the amount and gets the money.
Transaction Module
This activity starts when customers want to withdraw amount from account.
SOFTWARE REQURIEMENTS:
13. Microsoft Visual Basic 6.0 14. Rational Rose 15. Microsoft Access.
HARDWARE REQURIMENTS:
9. 128MB RAM 10. Pentium III Processor
118
login
transaction
: : customer1
: : administrative form1
not valid()
: : customer1
3: not valid()
: : administrative form1
5: update information() 4: reenter the id and password() 2: valid password and id()
COLLABORATION DIAGRAM:
119
: : maintain transaction controller1
CLASS DIAGRAM:
maintain transaction controller reenter the password and id() valid password and id()
120
ACTIVITY DIAGRAM:
[ with entry ]
dont enter
[ id is incorrect ]
[ id is correct ]
cancel login
[ re-enter ]
121
: customer add()
: add form1
: update form1
: delete form1
: customer controller1
: administrator
credit card created() update() update submit() update customer() customer info updated() delete() delete summit()
confirm deletion()
5 delete(): update()
delete customer()
: c us tom er
customer info deleted()
COLLABORATION DIAGRAM:
10: delete s um m it()
2: add s ubm it() 3: add c us tom er() 7: update c us tom er() 13: delete c us tom er()
: delete form 1
4: c redit c ard c reated() 8: c us tom er info updated() 11: c onfirm deletion() 14: c us tom er info deleted()
122
: c us t om er c ontroller1 : adm inis trator
C us tom er is added
add form
D is play cus tom er inform ation
Delete form
D is play the cus tom er inform ation
add()
delete()
It is invalid
customer controller ] [Confirm add submit() update submit() delete submit() delete() Verify the
deletion
[No t confirm ]
N ot delete
Delete the
ACTIVITY DIAGRAM:
Save the changes
123
: customer.
: details form.
: account controller.
: query,
: system.
Transaction Module
SEQUENCE DIAGRAM:
return money()
124
COLLABORATION DIAGRAM:
4: enter the amount needed() : customer.
: query,
6: return money()
: details form.
account controller check for validity() 5: check for minimum balance() check for minimum balance() : system.
: account controller.
CLASS DIAGRAM:
125
details form enter the credit card number & pin no() query enter the amount needed()
ACTIVITY DIAGRAM:
[ number is valid ]
[number is invalid]
information is displayed
invalid number
[ <balance ]
[ >balance ]
PACKAGE DIAGRAM
126
UI
Swing
text
transcation controller
customer controller
Query
TECHNICAL SERVICE
persistance
JESS
SOAP
COMPONENT DIAGRAM:
127
login
transacti on
STATECHART DIAGRAM:
idle
inserting credit card requesting for credit card number entering PIN number validating card number performing transcation transcation log record saving completing transcation removing credit card
DEPLOYMENT DIAGRAM:
128
Authentication Server Database My SQL Database user name passowd credit card number
CODINGS:
Administrative:
public class adminstrative { public maintainTransactionController theMaintainTransactionController; public adminstrative() { } public void makeTheRequest() { } public void updateInfo() { } }
MaintainTransactionController:
public class maintainTransactionController { 129
UpdateForm:
public class updateForm { public customerController theCustomerController; public updateForm() { } public void update() { } }
DeleteForm:
public class deleteForm { public customerController theCustomerController; 130
CustomerController:
public class customerController() { public administrator theAdministrator; public customerController() { } public void addSubmit() { } public void updateSubmit() { } public void deleteSubmit() { } public void delete() { } }
Administrator:
public class administrator { public administrator() { } public void updateCustomer() { } public void addCustomer() { } public void deleteCustomer() { 131
} }
Transaction Module
AccountController:
public class accountController { public accountController() { } public void checkForValidity() { } public void checkForMinimumBalance() { } }
Details form:
public class details form { public accountController theAccountController; public details form() { } public void enterTheCreditCardNo&PinNo() { } }
Query:
public class query { public accountController theAccountController; public query() { } public void enterTheAmountNeeded() { } }
Ex. No
:9
132
Date
: BPO MANAGEMENT
PROBLEM STATEMENT:
To develop a BPO Management System. The system developed should contain the following features: This system adopts a comprehensive approach to minimize the manual work and schedule resources, time in a cogent manner. The client places a project order to the system and also providing the requirements for the particular project. The BPO employee enters into the system and selects the project. The employee classifies the project into voice and on voice based mode. Then the same project into classified into outsourcing service type(IT/SOFTWARE, BACKOFFICE/ACCOUNTING/FINANCIAL/KLNOWLEDGE BASED). The BPO employee processes the project and finally submits the project. The project is delivered to the client if the payments are received.
The BPO employee process the project and finally submits the project. The project is delivered to the client if the payments are received. 133
Alternative flow:
If the BPO employee doent classify the service type into voice or non voice based mode, then error occurs and the project cannot be processed. Pre-condition: None Post-condition: After completion of this use case, the information of the Client and project will be maintained by the system.
SOFTWARE REQURIEMENTS:
1. Microsoft Visual Basic 6.0 2. Rational Rose 3. Microsoft Access.
HARDWARE REQURIMENTS:
1. 128MB RAM 2. Pentium III Processor
134
USECASE DIAGRAM:
voice/non-voice based
BPO emp/org
Knowledge/data service
submit work
payment
Delivary
135
SEQUENCE DIAGRAM:
client 1.client place an order BPO cmp/org
2.employee login
5.submit project
6.payment request
7.payment done
8.delivary of project
COLLABORATION DIAGRAM:
5: submit the work 4: select outsourcing service type 3: select voice/non voice 2: employee login 7: payment done 1: place an order Client 6: payment request 8: delivery of the project BPO emp/Org
136
CLASS DIAGRAM:
client info name id add project title() add project requirment() add time limit()
BPO emp info BPO_id BPO_name select project() validate project() submit project()
out sourcing service select select select select select select select customer interaction() IT/software() backoffice() banking() finance() knowledge() accounting() voice/non voice service select voice select non voice
137
ACTIVITY DIAGRAM:
place an order
BPO emp login Service selection( voice ) voice/non-voice based Outsouring type cust interaction/ IT/S/w/finace/banking/data service
submit work
138
PACKAGE DIAGRAM:
UI
swing swing
text
DOMAIN
client
payment
delivery
BPO emp
outsourcing service
TECHNICAL SERVICE
persistance
JESS
SOAP
COMPONENT DIAGRAM:
BPO employer
client
139
STATECHART DIAGRAM:
sending the order to BPO org placing order by client selecting voice/non voice service
classifying service
DEPLOYMENT DIAGRAM:
BPO system project server type outsourcing type
client
database
oracle
140
CODINGS:
Payment Details: public class paymentDetails { privateintaddPayment; privateint date; privateint time; privateintprojectName; publicpaymentDetails() { } } ClientInfo: public class paymentDetails { privateintaddPayment; privateint date; privateint time; privateintprojectName; publicpaymentDetails() { } }
141
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 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 = "" 142
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 SAMPLE SNAP SHOTS LOGIN
143
SERVICES
144
IT Services
145
DATABASE VIEW
146
Ex. No Date
PROBLEM STATEMENT:
To develop a Book bank management system. The system developed should contain the following features: This system adopts a comprehensive approach to minimize the manual work and schedule. The administrator should enter into the system using his/her personal username and password. The administrator should provide query for outdated/damaged books/magazines etc. The system checks for any damage for the particular book. The system should display about the damaged books and also the outdated magazines. The administrator should check and provides the action like verify,borrow, reserve, return books, notification of books through the system. The library inventory involves the actions like add book and remove book.
The system should display about the damaged books and also the outdated magazines. The administrator should check and provides the action like verify,borrow,reserve,return books,notification of books through the system. The library inventory involves the provides the actions like add book and remove book Alternative flow: If the librariandoesnt provide the correct valid username and password, then he/she application will not be able to enter or access the system.
Pre-condition: None Post-condition: After completion of this use case, the information of the book bank management will be
SOFTWARE REQURIEMENTS:
16. Microsoft Visual Basic 6.0 17. Rational Rose 18. Microsoft Access.
HARDWARE REQURIMENTS:
11. 128MB RAM 12. Pentium III Processor
148
USECASE:
c h e c k lib ra ry c a rd b o rro w b o o k m a g a z in e
lib ra ria n
re s e rve b o o k
re t u rn b o o k llib ra ry in ve n t o ry
re m o ve b o o k
add book
149
SEQUENCE DIAGRAM
inventory manager book bank info system ouery for outdated/damaged book/magazine
COLOBRATION DIAGRAM
150
inventory manager
151
librarian
verify id
check id
valid id
book id
update
issue book
.librarian 2: check id 1: verify id 4: book id 3: valid user 6: issue book book info system 5: update
152
librarian
check id
valid user
book id
display unavailable
2: check id 7: reserve 1: verify id 4: book id 6: request for reserve book librarian 3: valid user 5: display unavailable book bank info system
153
librarian verify id
check id
valid user
display time
notify if reserve
154
2: check id 5: check for return date 8: update 9: check for reservation 1: verify id 4: enter boook id 7: return book librarian 3: valid user 6: display time 10: notify if reserve book bank info system
CLASS DIAGRAM
c a ta log id p ric e a u th o r p u b lis h e r a d d () d e le t e() s e a rc h () d is p la y ()
m e m b er m e m b er id nam e a d d re s s n a m e of b o o k a d d () rem o ve () d is p la y () s e a rc h () u p d a te ()
t ra n s a c t io n b o o k id m e m b er id g e t b o ok id () g e t m e m b e rid () g e t p e rm is s io n ()
book c o n d itio n ()
m a g a z in e type a d d t y pe ()
155
ACTIVITY DIAGRAM
ve rify id
[ in va lid ]
n o t a va lid u s er
[ b o o k a vaila b le ] is s u e b o o k a n d u p d a te
COMPONENT DIAGRAM
C L IE N T
SERVER
156
DEPLOYMENT DIAGRAM
SERVER CLIENT REGISTER DOWNLOAD
DATABASE ORACLE
157
Ex. No Date
PROBLEM STATEMENT:
To develop a Passport Automation System. The system developed should contain the following features: This system adopts a comprehensive approach to minimize the manual work and schedule resources, time in a cogent manner. The client registers the application form to the system along with the personal details and certificates as a proof. This application form is received and will be validated by the system. After validation this application will be processed by the following procedures like o Police verification o Doctor verification After verification and clearing these steps and procedures the administrator should issue passport for the applicant.
SOFTWARE REQURIEMENTS:
19. Microsoft Visual Basic 6.0 20. Rational Rose 21. Microsoft Access.
HARDWARE REQURIMENTS:
13. 128MB RAM 14. Pentium III Processor
158
re g is tra t io n
a p p lic a n t
c h e c k s ta tu s
p ro c e s s a p p lic a t io n
a d m i n is t ra t o r d is p a t c h p a s s p o rt u s e rn a m e : s t rin g p a s s w a rd : s t rin g lo g i n ()
159
SEQUENCE DIAGRAM
c lient B P O c m p/ o rg 1.c lient p la c e an o rder
6.p ay m en t re ques t
7.p ay m e nt don e
160
COLLABORATION DIAGRAM:
4: subm it 3: fill the details 1: request for registration applicant 2: request form 5: liv app id e system
CLASS DIAGRAM:
client info name id add project title() add project requirment() add time limit() payment details add payment date time project name
BPO emp info BPO_id BPO_name select project() validate project() submit project()
out sourcing service select select select select select select select customer interaction() IT/software() backoffice() banking() finance() knowledge() accounting() voice/non voice service select voice select non voice
161
ACTIVITY DIAGRAM:
place an order
BPO emp login Serv selection( voice ) ice voice/non-v oice based Outsouring type cust interaction/ IT/S/w/finace/banking/data service
submit work
162
PACKAGE DIAGRAM:
UI
Text
Swing
DOMAIN
Recruitments
Rounds
Students
USER INTERFACE
Persistance
JESS
SOAP
COMPONENT DIAGRAM
Applicant Payment Issuing & get issued Administrator
163
STATECHART DIAGRAM
Application registered & processed Issuing the passport Processing the application
DEPLOYMENT DIAGRAM:
Recruitment
Student
OS Linux
Database Oracle
164
CODING
adminAuthentication public class adminAuthentication { private String userName; private String password; public passportAutoSystem thePassportAutoSystem; public adminAuthentication() { } public void login() { } } passportAutoSystem public class passportAutoSystem { public passportAutoSystem() { } } AdminPanel public class adminPanel { private Dategrid getToBeProcessedApplication; private Date grid dispatchedApplication; private Number ApplicantId; public passportAutoSystem thePassportAutoSystem; public adminPanel() { } public void process() { } } ApplicationStatus public class applicationStatus { private Number applicationNumber; public passportAutoSystem thePassportAutoSystem; public applicationStatus() { } public void getStatus() 165
{ } } newRegistration public class newRegistration { private String name; private Number age; private Data dob; private String placeOfBirth; private String gender; private String FatherName; private String MotherName; private String Address; public passportAutoSystem thePassportAutoSystem; public newRegistration() { } public void register() { } public void cancel() { } } Gender public class gender { private Radiobutton male; private Radiobutton female; public newRegistration theNewRegistration; public gender() { } }
166
Overall Description
Administrator: The administrator can update the train details. Customer: To use this service people should have the basic computer using ability. They shall see the train information which is belong to current time. External users: External users are people who have not got any user account for the website. Ticket reservation: Customer can reserve the ticket by filling the train name, boarding and destination stations and his/her name, address in the system. 167
Ticket cancellation: Customer can also cancel the already reserved ticket through online. Update train details: Administrator can enters any changes related to the train information like change in the train name, train number, train route etc. Payment: The customer can pay the amount by online credit cards. Usability: The system provides the facility to customer for buy the ticket through the online system. The system provides anytime any place service for the customer. The system provide check facility for time departure and arrival of train. To ease the ticket payment by online ( or ) credit card.
168
169
170
171
172
173
174
175
176
DEPLOYMENT DIAGRAM:
<html> <head> <title>login</title> <center><h1> login </h1> UserName:  <input type="text" name="username" size="20"><br><br> Password :   <input type="password" name="password" size="20"><br><br> <form action="reservation.html"> <input type="submit" name="submit"> <input type="reset" name="reset"> </center> </head> </html> CODE FOR RESERVATION MODULE: <html> <head> <title>reservation</title> <center><h2>reservation</h2> startingtime:      <input type=text name=time size=20><br><br> dateofjourney:  <input type=text name=date size=20><br><br> passengername:<input type=text name=name size=20><br><br> gender:    <input type=radio name=male>male<input type=radio name=female>female<br><br> age:                   <input type=text name=age size=20><br><br> class:    <select name=mymenu><option value=first>1st class</option><option value=second>2nd class</option></select><br><br> </br><br> to see the train details click the traindetails: <a href ="traindetails.html">traindetails</a> <br> to see the payment details click the payment: <a href ="payment.html">payment</a> <br> to cancel the ticket click the cancellation: <a href ="cancellation.html">cancellation</a> <br> to reserve the ticket click the reservation: <a href ="reservation.html">reservation</a> <br> <form action="login.html"> <input type="submit" name="back" value="back"> </center> </head> </html> 181
CODE FOR TRAINDETAILS MODULE: <html> <head> <title>traindetails</title> <center><h1>traindetails</h1> TrainName :      <select name=name><option value="brin">Brindhavan</option><option value="yelagiri">Yelagiri</option> <option value="rock">Rockfort</option></select><br><br> TrainNo :        <input type=text name=name size="10"><br><br> Source :         <select name=name><option value="tpt">Tirupattur</option><option value="Jpt">Jolarpet</option> <option value="kp">Katpadi</option></select><br><br> Destination:      <select name=name><option value="ch">Chennai</option><option value="bang">Bangalore</option> <option value="delhi">Delhi</option></select><br><br> <input type=submit name=submit> <form action=reservation.html> <input type=submit value=back> </center> </head> </html> CODE FOR PAYMENT MODULE: <html> <head> <title>payment</title> <center><h1>payment</h1> PassengerName:  <input type=text name=name size=20><br><br> Source:             &nb sp;<input type=text name=source size=20><br><br> Destination:        <input type=text name=dest size=20><br><br> Amount:            <input type=text name=amount size=20><br><br> Card:    <select name=mymenu><option value=credit>creditcard</option><option value=debit>Debitcard</option></select><br><br> <input type=submit value=accept> <form action=reservation.html> <input type=submit value=Back> </center> </head> </html> CODE FOR CANCELLATION MODULE: 182
<html> <head> <title>cancellation</title> <center><h1>cancellation</h1> TrainName:        <input type=text name=name size=20><br><br> TrainNo:            <input type=text name=number size=20><br><br> DateOfJourney:  <input type=text name=date size=20><br><br><br> <input type=submit value=Cancel> <form action=reservation.html> <input type=submit value=Back> <br> </center> </head> </html>
186
PAYMENT MODULE:
187
CANCELLATION MODULE:
Ex. No: 13
188
OVERALL DESCRIPTION
MODULE 1:
Enter the employee details name and eno Obtain HRA, DA,PF. Get the basic pay as per designation.
MODULE 2:
MODULE 3:
Calculate the number of days taken leave. Calculate the deductions due to leave. Calculate the net pay after subtracting the net deductions. Provide salary slip.
SEQUENCE DIAGRAM
190
COLLABORATION DIAGRAM
191
CLASS DIAGRAM
ACTIVITY DIAGRAM
192
COMPONENT DIAGRAM
193
DEPLOYMENT DIAGRAM
194
195
FORM 1: Private Sub Command1_Click() Unload Me Form2.Show End Sub Private Sub Command2_Click() Unload Me Form3.Show End Sub Private Sub Command3_Click() Unload Me Form4.Show End Sub Private Sub Command4_Click() End End Sub Private Sub Command5_Click() Unload Me Form5.Show End Sub FORM 2: Private Sub Command1_Click() Adodc1.Recordset.AddNew Adodc1.Recordset.Fields("e_name") = Text1.Text Adodc1.Recordset.Fields("e_no") = Val(Text2.Text) Adodc1.Recordset.Fields("des") = Text3.Text Adodc1.Recordset.Fields("age") = Val(Text4.Text) Adodc1.Recordset.Fields("sex") = Text5.Text Adodc1.Recordset.Fields("dob") = Val(Text6.Text) Adodc1.Recordset.Fields("doj") = Val(Text7.Text) Adodc1.Recordset.Fields("sal") = Val(Text8.Text) Adodc1.Recordset.Fields("ph") = Val(Text9.Text) Adodc1.Recordset.Fields("e_mail") = Text10.Text 'Adodc1.Recordset.Update End Sub Private Sub Command2_Click() Adodc1.Recordset.Fields("e_name") = Text1.Text Adodc1.Recordset.Update End Sub 196
Private Sub Command3_Click() a = InputBox("Enter the Employee Number", Emp_no) Adodc1.Recordset.MoveFirst On Error GoTo diva While Not Adodc1.Recordset.Fields("e_no") = Val(a) Adodc1.Recordset.MoveNext Wend diva: End Sub Private Sub Command4_Click() b = MsgBox("Are you sure you want to delete it....", vbOKCancel + vbExclamation) If b = 1 Then Adodc1.Recordset.Delete Adodc1.Recordset.MoveNext MsgBox "Record is Deleted" Else End If End Sub Private Sub Command5_Click() Unload Me Load Form1: Form1.Visible = True End Sub FORM 3: Dim c As Variant Private Sub Command1_Click() Adodc1.Recordset.AddNew Adodc1.Recordset.Fields("e_name") = Text1.Text Adodc1.Recordset.Fields("e_no") = Val(Text2.Text) Adodc1.Recordset.Fields("sal") = Val(Text3.Text) Adodc1.Recordset.Fields("loan") = Val(Text4.Text) Adodc1.Recordset.Fields("loan_left") = Val(Text5.Text) Adodc1.Recordset.Fields("ma") = Val(Text6.Text) Adodc1.Recordset.Fields("hra") = Val(Text7.Text) Adodc1.Recordset.Fields("ins_left") = Val(Text8.Text) Adodc1.Recordset.Fields("da") = Val(Text9.Text) Adodc1.Recordset.Fields("total_allow") = Val(Text10.Text) 'adodc1.Recordset.Update End Sub Private Sub Command2_Click() Adodc1.Recordset.Fields("e_name") = Text1.Text Adodc1.Recordset.Update 197
End Sub Private Sub Command3_Click() a = InputBox("Enter the Employee Number", "Diva") Adodc1.Recordset.MoveFirst On Error GoTo diva While Not Adodc1.Recordset.Fields("e_no") = Val(a) Adodc1.Recordset.MoveNext Wend diva: End Sub Private Sub Command4_Click() b = MsgBox("Are you sure you want to delete it....", vbOKCancel + vbCritical, "Diva") If b = 1 Then Adodc1.Recordset.Delete Adodc1.Recordset.MoveNext MsgBox "Record is Deleted" Else End If End Sub Private Sub Command5_Click() Unload Me Load Form1: Form1.Visible = True End Sub Private Sub Form_Load() c = (Val(Text6.Text) + Val(Text7.Text) + Val(Text9.Text)) Text10.Text = c Adodc1.Recordset.Fields("e_name") = Text1.Text Adodc1.Recordset.Update End Sub Private Sub Text3_Change() x = Val(Text3.Text) Text6.Text = (x / 2) Text7.Text = (x / 3) Text9.Text = (x / 4) c = (Val(Text6.Text) + Val(Text7.Text) + Val(Text9.Text)) Text10.Text = c Adodc1.Recordset.Fields("e_name") = Text1.Text Adodc1.Recordset.Update End Sub FORM 4: 198
Dim c As Variant Private Sub Command1_Click() Adodc1.Recordset.AddNew Adodc1.Recordset.Fields("e_name") = Text1.Text Adodc1.Recordset.Fields("e_no") = Val(Text2.Text) Adodc1.Recordset.Fields("sal") = Val(Text3.Text) Adodc1.Recordset.Fields("spf") = Val(Text4.Text) Adodc1.Recordset.Fields("fa") = Val(Text5.Text) Adodc1.Recordset.Fields("hf") = Val(Text6.Text) Adodc1.Recordset.Fields("hr") = Val(Text7.Text) Adodc1.Recordset.Fields("income_tax") = Val(Text8.Text) Adodc1.Recordset.Fields("others") = Val(Text9.Text) Adodc1.Recordset.Fields("total_ded") = Val(Text10.Text) 'adodc1.Recordset.Update End Sub Private Sub Command2_Click() Adodc1.Recordset.Fields("e_name") = Text1.Text Adodc1.Recordset.Update End Sub Private Sub Command3_Click() a = InputBox("Enter the Employee Number", "Diva") Adodc1.Recordset.MoveFirst On Error GoTo diva While Not Adodc1.Recordset.Fields("e_no") = Val(a) Adodc1.Recordset.MoveNext Wend diva: End Sub Private Sub Command4_Click() b = MsgBox("Are you sure you want to delete it....", vbOKCancel + vbCritical, "Diva") If b = 1 Then Adodc1.Recordset.Delete Adodc1.Recordset.MoveNext MsgBox "Deleted" Else End If End Sub Private Sub Command5_Click() Unload Me Load Form1: Form1.Visible = True End Sub Private Sub Form_Load() x = Val(Text3.Text) 199
Text4.Text = (x / 0.2) Text5.Text = (x / 0.2) Text6.Text = (x / 0.2) Text7.Text = (x / 0.2) Text8.Text = (x / 0.2) Text9.Text = (x / 0.2) c = (Val(Text4.Text) + Val(Text5.Text) + Val(Text6.Text) + Val(Text7.Text) + Val(Text8.Text) + Val(Text9.Text)) Text10.Text = c Adodc1.Recordset.Fields("e_name") = Text1.Text Adodc1.Recordset.Update End Sub Private Sub Text2_Change() c = (Val(Text4.Text) + Val(Text5.Text) + Val(Text6.Text) + Val(Text7.Text) + Val(Text8.Text) + Val(Text9.Text)) Text10.Text = c End Sub Private Sub Text3_Change() x = Val(Text3.Text) Text4.Text = (x / 0.2) Text5.Text = (x / 0.2) Text6.Text = (x / 0.2) Text7.Text = (x / 0.2) Text8.Text = (x / 0.2) Text9.Text = (x / 0.2) Adodc1.Recordset.Fields("e_name") = Text1.Text Adodc1.Recordset.Update End Sub FORM 5: Private Sub Command1_Click() Unload Me Load Form1: Form1.Visible = True End Sub Private Sub Command2_Click() End End Sub Private Sub Command3_Click() a = InputBox("Enter the Employee Number", "Diva") Adodc1.Recordset.MoveFirst On Error GoTo diva While Not Adodc1.Recordset.Fields("e_no") = Val(a) 200
Adodc1.Recordset.MoveNext Wend diva: End Sub Private Sub Form_Load() Adodc1.Recordset.Fields("e_name") = Text1.Text Adodc1.Recordset.Update End Sub Private Sub Text1_Change() b = Val(Text3.Text) + Val(Text4.Text) c = b - Val(Text5.Text) Text6.Text = c End Sub SNAP SHOTS
201
202
203
204
205
206
207
208
209
210