Professional Documents
Culture Documents
RATIONAL ROSE
Rational Machines were founded by Paul Levy and Mike Devlin in 1981
to provide tools to expand the use of modern software engineering
practices, particularly explicit modular architecture and iterative
development. Rational was sold for $2.1B to IBM on February 20, 2003.
DEFINITION
CONTENTS
1. Rational Environment
2. UML and RUP
3. Features
2
RATIONAL ENVIRONMENT
UML
In 1994,Rational acquired Verdix, a public company that produced a wide
array of Ada compilers targeted to many architecture OS combinations. The
resulting entity was named “Rational Software”, and promptly integrated
the Rational Ada and C++ environments with the code generators and
runtimes developed by Verdix.
3
In 1995,James Rum Baugh joined the company, and Rational acquired Ivar
Jacobson‟s from objectory AB from Ericsson. With Grady Booch already
aboard, this brought within one company all three leading object-oriented
software methodologist: these three Amigos were immediately tasked with
the unification of their work to eliminate the method fragmentation that was
impeding commercial adoption of modeling tools, their Unified Modeling
Language (UML) was developed openly, providing a level playing field for
all tool vendors. At its 1.0 release, the Unified Modeling Language was
contributed to the Object Management group which has managed its
subsequent development.
FEATURES
UML DIAGRAMS
4
USE-CASE DIAGRAM
CLASS DIAGRAM
SEQUENCE DIAGRAM
COLLABORATION DIAGRAM
7
ACTIVITY DIAGRAM
8
1. Preamble:
9
The Student Mark Analysis program makes the process of mark analysis in
colleges easier and more convenient. The staff can check the student’s details and
automatically view the mark sheet of the student. And also they can calculate the
average, total in an easy and efficient manner.
2. Objectives:
3. Requirements:
Student Mark Analysis can be developed using waterfall model.
4.Design :
U n i v e r s i t y d e t a i l s
S t u d e n t n a m e n a m e
N a m e d e p t i d
R o l l n o
D e p a r m e n t s e a r c h ( ) a d d ( )
l o g i n ( ) r e s p o n s e ( )
d i s p l a y ( ) m o d i f y ( )
m a r k
C e t i fi c a t i o n s t a f m a r k a n a l y s i s
s u b 1
d e g r e e d e p t N a m e
s u b 2
c o u r s e p o s t R o l l n o
s u b 3
y r n a m e
s u b 4
s e m u s e r n a m e A v e r a g e ( )
s u b 5
T o t a l ( )
s t u d d e t a i l ( ) s t a ffd e t a i l ( )
T o t a l ( )
r e q u e s t m a r k s h e e t
s t a f f d i s p l a y s t u d e n t
l o g i n
M a r k E n t r y
s e a r c h
d e t a i l
a d d
U n i v e r s i t y
LOGIN MODULE:
12
staff details
STUDENT DETAILS:
13
Staff Details
Checking details
it responds if it is available
otherwise error
otherwise error
3: it responds if it is available
4: otherwise error
7: it responds if it is available
8: otherwise error
MARKSHEET MODULE:
14
1 : Re sp o n d w ith M .s 2 : d i sp la y m a rk sh ee t
d e ta ils s ta ff s tu d e n t
login search
module
display
end module
start
login
no
validate
yes
display
marksheet
stop
stu db
mark
db staff
db
mark
ODBC CONNECTIVITY
11
db 1111 staff
odbc connectivity
5. Implementation:
5.1. Modules:
5.1.1. Login:
It checks whether entered id is correct and checks whether it
matches with password.
5.3. Coding :
17
Form1:
Private Sub Command1_Click()
Adodc1.Refresh
Do Until Adodc1.Recordset.EOF
If (Adodc1.Recordset.Fields("username") = Text1.Text) Then
If (Adodc1.Recordset.Fields("password") = Text2.Text) Then
Form1.Hide
Form2.Show
End If
End If
Adodc1.Recordset.MoveNext
Loop
End Sub
Form2:
Private Sub Command1_Click()
Adodc1.Recordset.AddNew
End Sub
Form3.Text13.Text = Text7.Text
End Sub
End Sub
Private Sub Form_Load()
Text2.Text = ""
18
End Sub
Form3:
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
End Sub
OUTPUT:
Login form:
19
Marksheet ;
20
6. Testing :
Manual testing was done. Staff were asked to analyse the students details. Staff
gave their comments and feedback after analysing. Their comments and feedbacks were
takn into consideration and further improvement was done on the system accordingly.
1.Preamble:
2.Objectives:
To retrieve the questions and options from the database and view it in an
efficient way.
If a quiz conducted orally takes 20 minutes then a computerized quiz can finish it in 5
minutes.
3.Requirements:
A Computerized Quiz System can be developed using the waterfall or linear
sequential model. It progresses through analysis, design, coding, testing and support.
2. 512MB RAM
4. Design
4.1 Class Diagram:
L e ve l 1 L e ve l 2 L e ve l 3
Q u e s ti o n n o Q u e s ti o n n o Q u e s ti o n n o
P a rtic ip a n t Q u e s ti o n s
Q u e s ti o n s Q u e s ti o n s
Nam e O p ti o n s O p ti o n s O p ti o n s
C o n ta c t n o .
S ta t u s ( ) S ta t u s ( ) S ta t u s ( )
R e g is t e r ( ) S c o re ( ) S c o re () S c o re ()
N e x t( ) N e x t( ) N e x t( )
Login&Register
register
Pla
y
Lev
els
u
ser
An
swe
r
Calc
u late&DisplaySc
o re
Invalid login
Play
23
2.Collaboration Diagram:
1: Login&Register
User Register
2: Invalidlogin
3: Play
Level1
1. Sequence Diagram:
User Level 1 Level2
Play
DisplayQuestions
DisplayScore
2. Collaboration Diagram:
1: Play
3: Answer Questions Level 1
User
2: Display Questions 4: Continue if score>10
5: Exit for score<10
6: Display Score
Level2
1. Sequence Diagram:
Play
Display Questions
Answer Questions Continue if score>20
Exit for score<20
Display Score
2. Collaboration Diagram:
1: Play
3: Answer Questions
Level2
User
2: Display Questions
5: Exit for score<20
6: Display Score
4: Continue if score>20
Level3
1. Sequence Diagram:
U
ser L
eve
l3
P
la
y
D
is
pla
yQu
estio
ns
A
nswe
rQu
estio
ns
D
is
pla
ySc
ore
E
xit
2. Collaboration Diagram:
25
1: Play
3: Answer Questions
User Level3
2: Display Questions
4: Display Score
5: Exit
F i n i sh L e ve l 3 L e ve l 2
Start
Login
Register
Logge
din
Pla
y
Lev
el1
IfScore<10
No
Lev
el2
Yes
IfScore<20
No
Lev
el3 Yes
Exit
F
inish
Quiz. ODBC
mdb Quiz.e
Connectivity xe
5. Implementation:
5.1 Modules:
5.1.2 Level 1:
This module has 5 questions and 4 options for each question. The score is displayed
once all the questions in the level are answered. The participant must score above ten to
move on to the next level.
5.1.3 Level 2:
This is the same as Level 1 but the participant must score above 20 to move on to the
next level.
5.1.4 Level 3:
Same as level 1 and the final score is displayed.
5.3 Coding:
Coding shown only for Login, Register, Instructions, Level 1 and Exit.
Form 1 (Login.frm):
Form 2 (Registration.frm):
Dim con As New ADODB.Connection
Dim rs As New ADODB.Recordset
Form 3 (Instructions.frm):
b.AddNew
b.Fields(1) = d
b.Update
a.Close
MsgBox "your score is " + Str(d), vbOKOnly + vbExclamation
MsgBox ("Game Over")
Form4.Hide
Form8.Show
Else
a.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=score.mdb;Persist Security Info=False "
a.Open
b.Open "select * from Table1", a, adOpenDynamic, adLockOptimistic
b.AddNew
b.Fields(1) = d
b.Update
a.Close
MsgBox "your score is " + Str(d), vbOKOnly + vbExclamation
Form4.Hide
Form5.Show
End If
Else
Text1.Text = rs("Q no")
Text2.Text = rs("Q")
Option1.Value = False
Option2.Value = False
Option3.Value = False
Option4.Value = False
Option1.BackColor = &H8000000F //BackColor-Button Face
Option2.BackColor = &H8000000F
Option3.BackColor = &H8000000F
Option4.BackColor = &H8000000F
Option1.Caption = rs("a")
Option2.Caption = rs("b")
Option3.Caption = rs("c")
Option4.Caption = rs("d")
Option1.Visible = True
Option2.Visible = True
Option3.Visible = True
Option4.Visible = True
End If
End Sub
Option4.Visible = False
Option3.BackColor = vbGreen
d=d+5
Else
Option1.Visible = False
Option2.Visible = False
Option4.Visible = False
Option3.BackColor = vbRed
d=d+0
End If
End Sub
Form 7 (Exit.frm):
Form 8 (Exit1.frm):
OUTPUT:
31
Tables :
32
level1.mdb(Table Name:lev1)
Score.mdb(Table Name:Table1)
6. Testing:
Manual Testing was done. Students were asked to play the quiz. Their comments and
feedback were collected and further developments were done based on the collected
feedback.
2. Objectives:
To implement TRS in an efficient and effective manner.
To maintain railway database.
To provide 24 x 7 service to the passengers.
To provide the user a fail-safe system.
To facilitate passenger
To know the available seats .
To reserve available ticket.
To cancel a reserved ticket.
3. Requirements:
TRS can be developed using waterfall or linear sequential model.
A passenger can reserve a ticket only if it is available and can cancel a ticket only if the
ticket is reserved already.
4. Design :
4.1 USE CASE DIAGRAM
reserve
payment
passenger
database
print
cancel
payment
passenger
CCNO
Name PIN
Age Name
Sex Amount
reserve() pay()
cancel()
Booking
datababe print()
Train Name
Train no
src
dest
date reservation cancellation
time
update() update()
RESERVATION:
35
valuate
return availability
display availabilty
payment
update
return pnr
5: display availabilty
2: check availability 3: valuate
11: print the ticket
8: send the details to db 9: update
7: payment
6: ask for payment 4: return availability
10: return pnr
database
bank
CANCELLATION:
update
return information
intimate cancellation
37
databas e
38
Choose RESVor
CANCELLATION
Cancellation
Reservation
Provide
PNRNum
Provide Destination,
Source, Date
Checkresv
Display list to
user
Unblockseat
Select
Train
Check
availabilty
If No
Perform
Payment
Issue to ticket
to passenger
Display ticket
Askfor
Confirmation
Confirm
Print
39
On lin e
Retrieve
Retrieve
P NR
P as s enger Info
S earc h S earc h
train P NR
Choos e
Train Refund
Chec k A vb
Unbloc k
Confirm
Train
Display
Info
P ay m ent
P rinting
40
VB.exe
file ODBC Bank db
connectivity
train db
Bank
Client
Server
Database
5. Implementation:
5.1. Modules:
CODING:
RESERVATION
CANCELLATION
LOGIN
End Sub
Private Sub login_Click()
If Text1.username = "hindustan" And Text1.password = "admin" Then
frmRes.Show
Else
MsgBox "UserName or Password not found"
End If
End Sub
Reservation form
44
Cancellation form
45
Login form
Bank payment
46
6.Testing :
Manual testing was done. Users are asked to reserve tickets and cancel their ticket
and their comments and feedback were obtained. Their comments and feedbacks were
taken into consideration and further improvement was done on the system accordingly.
4.PAYROLL SYSTEM
47
1. Preamble
The scenario for giving payslip to an employee was employed by manpower and
papers. Manpower was used for calculating the salary and papers were used in
documentation. The various drawbacks in the above procedure were
Using manpower may lead to mathematical error in calculations
Papers can’t be used as a temporary storage
3. Objective
The system has to display an error message if any unauthorized users try to
access the system.
3. Requirements
3.2.1 Design
Rational Rose Enterprise Edition 2000
3.2.2 Development
Visual Basic 6.0
Microsoft Office Access 2003
3.2.3 Testing
Manual Testing
4. Design
company
empname
id
contactno
update()
employee
netpay
empname
id
basicpay
designation hra
address da
netpay other
calc() calc()
empdatabase empsystem
id empname
empname id
basicpay netpay
hra
da update()
other display()
add()
remove()
display()
s ys tem
query
update
display
databas e
4.3.1 Login
verify password
search
validated
confirm
query
add or remove
confirm updation
display
4.3.3 Calculate
50
query
request
calculate
response
display
4.4.1 Login
1. enter login details
user system
5. confirm
2. verify password 3. search
4. validated
databas
e
4.4.2
Add or Remove
1. query
user system
3. confirm updation
databas
e
4.4.3 Calculate
51
1. query
user system
5. display
2. request
3. calculate
4. response
databas
e
login
enter username
and password
logged in
search or
calculate
record netpay
found found
logout
login
logged in
confirm display
logout
V B .e x ODBC M S Acce s s
e file C o n n e c ti vity D a ta b a s e
e m p lo ye s y s te m D a ta b a s
e e
5. Implementation
5.1 Modules
53
5.1.1 Login
This module is used to verify the password. It will load the next form if the
password is correct or else it will display an error message to re-enter the password.
5.1.2 Add
This module is designed to add data of a new employee into the database. This
option is available only for administrator. It requires a database connectivity which is
achieved through adodc control.
5.1.3 Remove
This module is designed to remove the data of an employee from the database
who has resigned their job. This option is also available only for administrator. It
requires a database connectivity which is achieved through adodc control.
5.1.4 Calculate
This module will get data from the form and then calculate the netpay of an
employee. The calculated netpay is stored in the employee database. Adodc control is
used to achieve the database connectivity.
5.1.5 View
This module is used to view the details and calculated netpay of an employee.
This form will interact with the user by asking the employee ID. It will then search the
database and display the required details of an employee.
5.1.6 Logout
This module is used to unload the form. It will display the confirmation message.
It doesn’t need any database connectivity. It will unload all forms.
5.3 Coding
54
Form1
Formadmin1
Formadmin2
Formemp1
Formemp2
Formemp3
Output:
57
58
59
6. Testing
Manual testing was done. A set of employees were asked to use this system and
the errors occurred were noted. According to their feedback, changes were done in the
system.
1. Preamble
The CRS program makes the process of course registration in colleges easier and
more convenient. The student can check whether he’s eligible to apply, view the
availability of seats and register for a course without spending the time and effort of
visiting the college.
2. Objectives
The student must enter his details and desired course. If he is eligible and if atleast one
seat is available, then he is registered and is given a confirmation number.
3. Requirements
CRS can be developed using waterfall or linear sequential model.
A student is required to meet the eligibility criteria in order to register for a course.
4. Design
4.1.Class Diagram
CR System
Student
Stud_name
Name
Reg_No.
Address
Registered Course
Contact NO.
Address
Choice of Course
Contact No.
Input_details()
Check_availability()
Get_availability()
Check_eligibility()
Register()
Update()
Cancel Registration()
Registration()
opname()
Cancellation()
Educational Background
Name
Board Course
% of Marks Course Name
Year of Completion Available Seats
Input Details
Get Availability
Register
student
Cancel Registration cr system
Confirm Registration
Cancellation
62
Enquire availability
Check availability
Scan DB
Return Availability
Display Availability
4.3.1.2.Collaboration Diagram
3: Scan DB
check eligibility
Update DB
Display confirmation
3: Check Eligibility
Cancel Registration
Update DB
Confirm Cancellation
3: Confirm Cancellation
Enquriy
Register
Cancel
Registration
65
S tart
Get A vailability
S earc h DB
Display
A vailability
y es
If available
Input S tudent
details
Chec k E ligibility
Dispaly
E ligibility
y es
if eligible
no
Regis ter for a
c ourse
Update DB
no
Confirm
Regis tration
if wis hing to
y es c anc el
Canc el the no
Registration
Update the DB
Confirm
Cancellation
66
CRS.mdb
CRS.exe
Database
connectivity
CRS.frm
Monitor
Course Query
database Processor
Printer
5. Implementation
5.1. Modules
5.1.1. Course Enquiry
Checks for availability of seats in the desired course.
5.1.2. Registration
The student enters his details and registers for desired course if seat is available.After
successful registration for a course, a confirmation message is displayed.
5.1.4. Cancellation
The applicant can cancel the registered seat by giving his name and
course name.
5.3. Coding
Home Page :
Options Form :
Dim rs As Recordset
Dim db As Database
Registration Form :
Dim db As Database
Dim rs, rs1 As Recordset
Cancellation Form:
Private Sub Back_Click()
Options.Show
Cancellation.Hide
End Sub
Output :
Home Page :
Options Form :
72
Courses Form :
Registration Form :
To register :
Cancellation Form :
Final Form :
Database :
Database Name : crsdb
crstab1
Cname vacantseats
ECE 20
CSE 20
IT 20
75
crstab1
Cname vacantseats
EEE 20
Aero 20
Civil 20
crstab2
Studname Cname Address Contactno ID
Rahul v Aero Tuticorin 9944336611 103
6.Testing :
Manual testing was done. Students were asked to register for their desired courses.
Students gave their comments and feedback after registration. Their comments and
feedbacks were takn into consideration and further improvement was done on the system
accordingly.
6. EXPERT SYSTEMS
1. Preamble:
The Expert system for banking makes the process of creating new account easier and
convenient. The user can also deposit, withdraw and enquire about the account easily
and efficiently.
2. Objectives:
3. Requirements:
4. Design :
4.1.Class diagram
user
name
accno
BankServer
acctype
address BankDatabase
request()
newaccount() update() Reply()
deposit() report()
withdraw()
E nquiry
S e rve r
C reate
U s er
D ep o s it R e qu e s t R ep ly
W ithd ra w
D a ta b a s e
R e p ort
78
enquiry()
Request()
Reply()
Report()
1: enquiry()
user server
4: Report()
3: Reply()
2: Request()
Databas
e
79
newaccount()
Request()
Reply()
Report()
1: newaccount()
user server
4: Report()
3: Reply()
2: Request()
Databas
e
80
deposit()
request()
reply()
report()
1: deposit()
User Server
4: report()
3: reply()
2: request()
Databas
e
81
withdraw()
request()
reply()
report()
1: withdraw()
User Server
4: report()
3: reply()
2: request()
Databas
e
82
Start state
Menu
database
End state
Start state
Request Update
Reply
End state
ODBC
User connectivity
Database
databas
e
user
server
5. Implementation:
5.1. Modules:
5.3 Coding
Entry form:
End Sub
End Sub
Private Function genaccno() As Long
Dim accno As Long
Dim I As Integer
Randomize Timer
accno = 1
For I = 1 To Len(Text1)
accno = accno + Val(Asc(Mid(Text1, I, 2)))
Next I
accno = accno * Rnd(1)
genaccno = accno
End Function
Deposit form:
Dim con As New ADODB.Connection
Dim rs As New ADODB.Recordset
Private Sub Command1_Click()
rs.MoveFirst
While rs.EOF = False
If rs.Fields(1) = Val(Text1.Text) Then
rs.Fields("balance") = rs.Fields("balance") + Val(Text2.Text)
rs.Update
MsgBox "account updated", vbOKOnly + vbExclamation
Unload Me
Exit Sub
End If
rs.MoveNext
Wend
End Sub
Withdraw form:
Enquire form:
OUTPUT
89
90
6. Testing :
Manual testing was done. Expert system environment was fully analysed.
The comments and feedbacks were taking into consideration and further improvement
was done on the system accordingly.
2. Objectives:
To implement CRS in an efficient and effective manner.
To maintain course database.
To view available courses and vacancy in each.
To check for eligibility & register for the desired course
The student must enter his details and desired course. If he is eligible and if atleast a seat
91
3. Requirements:
4.Design :
A T M S y s te m
nam e
acc no
p a s s w o rd
am ount B ank
b a la n c e a c c Id
p in n u m b e r bank nam e
W it h d r a w fr a u d l e n t d e te c ti o n b a la n c e
a cc n o c h e c k o f m in b a la n c e
b a la n c e re c e ip t w i th d r a w ( )
u p d a te d e p o s i t( )
p a s s w o rd () tr a n s fe r ( )
c h e c k a c c n o () c h e c k b a la n c e ()
g e t b a l a n c e to b e w i th d r a w ( ) c a s h w i th d r a w a l ( )
c a s h tr a n s fe r ( )
c a s h d e p o s i t( )
D a tab a s e
C u s to m e r nam e
acc no
acc no
a c c ty p e
d a te
bank nam e
t im e c a rd n u m b e r
t ra n s fe r b ra n c h
w ith d ra w s a vin g s a c c b a la n c e
u p d a te c u r r e n t a c c b a la n c e
d e p o s it
r e p ly( )
re q u e s t() u p d a te ( )
S y s t e m S t a r t u p
O p e r a t o r
S y s t e m S h u t d o w n
B a n k
C u s t o m e r
S e s s i o n
C a s h D e p o s Ti t r a n s f eW r i t h d r a w a l
LOGIN MODULE:
enter password
search database
check database
return information
display
1: enter password
CUSTO ATM
MER
5: display
4: return information
3: check database
2: search database
DATABA
SE
WITHDRAWAL MODULE:
CUSTOMER
CUSTOMER
CUSTOMER
CUSTOMER
TRANSFER MODULE:
issue receipt
3: check database
97
CUSTOMER
CUSTOMER
login withdraw
start
NewState
update deposit
transfer
B a n k lo g in A T M
D a t a b a s e
D e p o s it T r a n s fe r C a r d
S c a n n e r
A T M C a s h D is p
C lie n t e n s e r
5. Implementation:
5.1. Modules:
100
5.1.1. Login:
Login session validates the user.
5.1.2. Withdrawal:
The system delivers amount which is specified by user.
5.1.3. Transfer:
The system transfers the money from one account to another based on user specification.
5.1.4. Update :
The system will update the database after each and every transaction made.
5.1.5.Deposit:
The system credits the money based on user specification.
5.3. Coding:
Form1:
Form2:
Form3.Show
End Sub
Private Sub Command2_Click()
Form2.Hide
Form5.Show
End Sub
Form3:
Else
MsgBox ("Low balance:Transaction failed")
End If
Else
Unload Me
End If
End Sub
Form4:
Form5:
c = Adodc1.Recordset.Fields("amount").Value
d = Text1.Text
Adodc1.Recordset.Fields("amount") = c + d
Adodc1.Recordset.Update
Adodc1.Recordset.Save
MsgBox ("Your Account is Deposit")
ElseIf (Form2.Label2 = "Sam") Then
Adodc1.Recordset.MoveNext
c = Adodc1.Recordset.Fields("amount").Value
d = Text1.Text
Adodc1.Recordset.Fields("amount") = c + d
Adodc1.Recordset.Update
Adodc1.Recordset.Save
MsgBox ("Your Account is Deposit")
ElseIf (Form2.Label2 = "Ram") Then
Adodc1.Recordset.MoveLast
c = Adodc1.Recordset.Fields("amount").Value
d = Text1.Text
Adodc1.Recordset.Fields("amount") = c + d
Adodc1.Recordset.Update
Adodc1.Recordset.Save
MsgBox ("Your Account is Deposit")
Else
Unload Me
End If
End Sub
Screen Shots:
104
105
106
6.Testing :
Manual testing was done.
In the earlier system this task was done manually and was time consuming and prone to
errors.
2. OBJECTIVES:
There is one supervisor who must securely login to the system.
An id and password is provided for security.
The product details can be viewed by supervisor as long as he is logged in.
The products are different kinds of furniture.
This new system is much more accurate than the old system.
Also in old system comparing was a time consuming task where as with this new
system in can be done in a few seconds.
Also it has an automatic alert when stock goes below minimum whereas earlier
this had to be manually searched.
The details are neatly organized, entered and viewed using efficient methods.
3. REQUIREMENT:
1. Intel Pentium IV
2. 512mb RAM
3. 40GB Hard Disk
4. Keyboard and mouse
4.DESIGN:
108
In p u ttin g th e S to c k
In i tia l d B
E n te r in g In iti a l D e ta ils o p f S to c k
V ie w i n g to in itia l d e ta ils
s U p e rvis o r
S e a rc h fo r a p a rti c u la r P ro d u c t
d B S e a rch
A va i la b il ity c h e c k in g
S to c k U p d a ti o n
d B U p d a tio n
S to c k M o n i to ri n g
110
Supervisor System dB
Enter Id,Password
check
Correct/Wrong
Valid/Invalid Login
Store in dB
Stored
Stored
1
:EnterId
,Password
5:E
n ternewDeta
ils
S
upe
rvis S
yste
m
o
r
4
:Va
lid
/In
validL
ogin
8
:Sto
red
3
:Co
rre
ct/W
rong
7:S
tore
d
2:che
ck
6
:Sto
reindB
d
B
111
Supervisor system dB
Enter id,password
check
correct/wrong
valid/invalid login
request
return Details
Display Details
1:Ente
rid ,p assword
5:en
terp
roduc
td etail todisp
lay
S
uperv
is syste
m
o r
4:valid /invalidlogin
8:D isp layD eta
ils
3:correct/wro n g
7:re
tu rnD e ta ils
2:c
h e
c k
6
:request
d
B
112
Enter id,password
check
Correct/Wrong
Valid/Invalid login
Check Quantity
1: Enter id,password
Supervis System
or
4: Valid/Invalidlogin
7: Displaylowwarningmessage
3: Correct/W rong
6: Returnmsgif low
2: check
5: CheckQ uantity
dB
113
Start
Login
Add Initial
Details
Details
added
Viewdetails
Modify details
Details updated
to the dB
Monitor the
product
End
Ad d V ie w A le r t E n d
S ta rt
M o d u le M o d u le M o d u le
114
<<Standard EXE>>
Checking
Availability
<<Standard EXE>>
Stock Updation
<<Standard EXE>>
Stock Monitoring
dB
System
2
5. IMPLEMENTATION:
5.1. MODULE DESIGN:
5.1.1. ADD MODULE:
• The user enters new details of fresh products into the stock
maintenance system
• Preventing multiple users from accessing the database at the same time
was also necessary to prevent old data being presented.
115
5.3: CODING:
Form1:
frmLogin:
Option Explicit
Public LoginSucceeded As Boolean
Private Sub cmdCancel_Click()
'set the global var to false
'to denote a failed login
LoginSucceeded = False
Me.Hide
End Sub
Private Sub cmdOK_Click()
'check for correct password
If txtPassword = "rain" Then
'place code to here to pass the
'success to the calling sub
'setting a global var is the easiest
LoginSucceeded = True
Me.Hide
Form2.Show
Else
MsgBox "Invalid Password, try again!", , "Login"
txtPassword.SetFocus
SendKeys "{Home}+{End}"
End If
End Sub
Modules Form(Form2):
End Sub
Else
flag = False
End If
Adodc1.Recordset.MoveNext
Loop
If flag = False Then
MsgBox ("Record not found")
End If
End Sub
Stock Monitoring(Form5):
Screen Shots:
119
6. TESTING:
• Testing was done using Quality Test Pro.
2. Objective
To make scheduling process easier and such that no manual analysis required, which
makes the scheduling faster by reducing man-years and man-months to few minutes or
seconds.
3. Requirements
Here in real time scheduler we use Spiral model
4. Design
121
Admin
Name
Password Staff
A_ID Name
List of Projects Password
Total number of Projects S_ID
1 1..n Current Project
generate()
allocate() work()
display() 1..n
validate()
1..n
1
1
1..n Database
User Name
Name 1 Access Code
Password
U_ID create()
1..n 1 update()
view() sort()
request() rollback()
list()
Report Request
Alloc ate
U_Staff U_Admin U_Us er
Generated Report
W ork
U_Databas e
122
Check
Verified
Check
Verified
Check
Verified
Us er
4: V erified
3: Chec k
1: Chec k 6: V erified
A dm in Databas e S taff
2: V erified 5: Chec k
123
4.3.2 Allocation
4.3.2.1 Sequence Diagram
Check Availability
Return Data
Allocate
1: Check Availability
4.3.3 Report
3.1.3.1 Sequence Diagram
3.2.3.1
Request Report
Request Data
Retuen Data
Report Generation
SendReport
124
4: Report Generation
4.3.4 Database
3.1.4.1 Sequence Diagram
Admin Database
Create
Update
2: Update
1: Create
A dm in Databas e
StateChart Diagram
Update
Allocation
S tart Allocate
Reques t Report
Report End
Activity Diagram
Start
Login
Update
Database
Report
Request
Stop
Component Diagram
126
Allocate
Database
System Display
Printer
5. Implementation
5.1 Modules
5.1.1 Login
Authorization step in which the user, admin or staff can login to access their data. The
database is accessed to verify login.
5.1.2 Allocation
Here allocation of jobs to the staff members are done here based on their availability and
update in database.
5.1.3 Report
At first report request is generally made by the user to the administrator. Here the user
selects the project name and then he requests. The user request is served and based on
127
the user query the current status from the database is updated into a file and mailed to
the user.
5.1.4 Database
Databases are created and updated in this module. It stores all the information like
Name, Password, and IDs and so on.
5.2 Issues Faced
A_Login Form
Public istr As String
Public nstr As String
Private Sub A_Back_Click()
A_Login.Hide
Welcome.Show
End Sub
Dim rs As Recordset
Set rs = db.OpenRecordset("Select * from Admin")
rs.MoveFirst
Do While Not rs.EOF
If rs(0) = A_Name.Text Then
If rs(1) = A_Password.Text Then
If rs(2) = A_ID.Text Then
nstr = rs(0)
istr = rs(2)
MsgBox "Welcome " & rs(0) & "!!!", vbInformation
GoTo a
End If
End If
End If
rs.MoveNext
Loop
MsgBox "Wrong Input!", vbInformation
A_Password.Text = ""
A_Name.Text = ""
A_ID.Text = ""
A_Name.SetFocus
Exit Sub
a:
Admin.Show
A_Login.Hide
End Sub
Admin Form
S_Login Form
Staff Form
U_Login Form
Public istr As String
Public nstr As String
Loop
MsgBox "Wrong Input!", vbInformation
U_Password.Text = ""
U_Name.Text = ""
U_ID.Text = ""
U_Name.SetFocus
Exit Sub
a:
User.Show
U_Login.Hide
End Sub
User Form
Output
Welcome Page
A_Login Page
133
Admin Page
S_Login Page
134
Staff Page
U_Login Page
135
User Page
Database
Database Used: rts.mdb
136
Admin Table
Staff Table
User Table
Project Table
6. Testing
Manual testing was done. Testing was done at a large scale. Under cloud computing
environment too the test was successful. Further improvement were done based on the
test results.
7. Conclusion and Result
Real Time Scheduler was designed, analyzed, implemented and tested successfully. This
real time scheduler would help people for effective scheduling. Thereby making it a
more viable one for day to life scheduling.
1. Preamble:
Executing or using the procedure in local system with the software required.
The difficulty of the above procedure is, it requires manpower and also requires
much time in transferring procedure from the source to destination.
2. Objectives:
3. Requirements:
4. Design:
138
d a ta b a s e
user user nam e
p a s s w o rd
us er nam e
p a s s w o rd
a u th e n ti n g ( )
re c e ivin g ( )
lo g in ()
s e n d in g ()
e n te r in g u r l ( )
c li e n t
ip n o
os
s to r a g e
s to r i n g ( )
r e tre vin g ()
r e q u e s ti n g ( )
r e c e ivin g ( )
u n ive rs a l s e r ve r e x e c u ti n g ( ) lo c a l s e rve r
ip n o ip n o
os os
p o rt p o rt
r e s p o n s in g ( ) fi n d in g ()
s e a rc h in g ( ) s e n d in g ( )
s e n d in g ()
fo r w a rd i n g ( )
139
Login
Us er
C lie nt
E nter U R L
verfy ing
Db
R e q u e s tin g
L o ca ls e rve r
R ec eiving
U n ive rs a ls erver
forw arding
140
User Client dB
Enter Password
Password verification
Enter username
Username Verification
Return result
Display
1: Enter Password
3: Enter username
User Client
6: Display
5: Return result
2: Password verification
4: Username Verification
dB
141
Enter URL
1: EnterURL
User Client
4:Returntherequest
2: ConnectingtheServer
3:VerifytheURL
Server
142
client server
c lo s in g
N e w S ta te 4
143
NewState
Login
Request for
connection
no
valid
yes
connection
Established
Request for
procedure
no
valid
yes
Request
accepted
Response
Received
closethe
connection
Connection
closed
NewState2
144
m a i n .j
a va i n te r fa
ce s e rve rs id e
p r o g r a m in g s
client server
tcp/ip
5. Implementation:
5.1. Modules:
5.1.1.Login:
The user can login into the system by giving correct user name
and password .
5.1.2. Connecting:
By entering the URL ,the connection between the client and server is established.
5.1.3. Closing:
After retrieving desired web page the user can close the
connection between client and server
5.3 Coding:
import java.awt.event.*;
import javax.swing.*;
import java.lang.reflect.Method;
import javax.swing.JOptionPane;
import java.util.Arrays;
public ab()
{
JLabel l1=new JLabel("UserName");
JLabel l2=new JLabel("Password");
t1=new JTextField(10);
t2=new JPasswordField(10);
JButton b=new JButton("Login");
frame1.add(panel);
panel.add(l1);
panel.add(t1);
panel.add(l2);
panel.add(t2);
panel.add(b);
frame1.setSize(200, 120);
frame1.setVisible(true);
b.addActionListener(this);
}
public void actionPerformed(ActionEvent ae)
{
String s1=t1.getText();
String s2=t2.getText();
String s3;
if(((s1.compareTo("aries"))==0)&&((s2.compareTo("aries"))==0))
{
frame1.setVisible(false);
JFrame frame = new JFrame();
JPanel panel = new JPanel();
final JTextField urlField =new JTextField(20);
JButton webButton = new JButton("GO");
webButton.addActionListener(new ActionListener()
{
Public void actionPerformed(ActionEvent e)
{BareBonesBrowserLaunch.openURL(urlField.getText().trim());} } );
146
}
}
}
class BareBonesBrowserLaunch
{
{
found = Runtime.getRuntime().exec(new String[] {"which",
browser}).waitFor() == 0;
if (found)
Runtime.getRuntime().exec(new String[] {browser, url});
}
if (!found)
throw new Exception(Arrays.toString(browsers));
}
}
catch (Exception e)
{
JOptionPane.showMessageDialog(null, "Error attempting to launch web
browser\n" + e.toString());
}
}
Output:
148
6.Testing :
Manual testing was done and also testing was carried out using Quality Test Pro.