SlideShare une entreprise Scribd logo
1  sur  118
Télécharger pour lire hors ligne
Ex. No.1                  ONLINE COURSE RESERVATION
Date:
AIM
       To analyze, design and develop code for Online Course Reservation System using Rational
Rose software

PROBLEM STATEMENT
         As the head of information systems for a college, you are tasked with developing a new
student registration system. The college would like a new client-server system to replace its much
older system developed around main frame technology. The new system will allow students to
register for courses and view report cards from PCs attached to the campus LAN. Professors will be
able to access the system to sign up to teach courses as well as record grades.
         Students may request a course catalogue containing list of course offering for all college.
Information about each course, such as professor, department and prerequisites, will be included to
help students make informed decisions.
         Once the registration process is completed for the student, the registration system sends
information to the billing system so that the student can be billed for the course.

OVERALL DESCRIPTION
         The Online Course Reservation System is an integrated system that has four modules as part
of it. The four modules are,

   1) Login for Student: Using this module student login to the system using his/her unique
      username and password
   2) Student Registration: In this module, the students register his/her details in the system. The
      details are stored in students table in database
   3) Form for Registration: In this module the user can apply for the course by giving the details
      about the candidate and selecting the quota for the registration.
   4) Enquiry about course: In this module the student can enquiry about the various courses in
      all the colleges.


SOFTWARE REQUIRMENTS
       Microsoft Visual Basic 6.0
       Rational Rose
       Microsoft Access

HARDWARE REQUIRMENTS
       128MB RAM
       Pentium III Processor




                                                 1
USE CASE DIAGRAM




CLASS DIAGRAM




                   2
ACTIVITY DIAGRAM




                   3
SEQUENCE DIAGRAM




                   4
COLLABRATION DIAGRAM



                                    1: Login
                                  3: Getdetail
                              6: Look for course
                                   8: Select
                                 10: Register
   Student                                                         System

                                      15: Print




                               7: Resut
                              12: Validate
                             14: Validation


                                         2: validate
                                          4: Query
                                         9: Update
                                         11: Check




                                      5: Retrive
                                     13: Update
    Server                                                        Database




COMPONENT DIAGRAM
                          Register




    Student               View                         Administ
                                                       rator




                          Catalog                      Databas
                                                       e




DEPLOYMENT DIAGRAM

              Access
              Database




              Course
              Reserv...




 Adminis                  Student
  trator




                                                         5
IMPLEMENTATION
Form1




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

Dim a As Boolean
a = False

cn.Open "dsn=course"
rs.ActiveConnection = cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Students"
End With

rs.MoveFirst
While Not rs.EOF
If (Text1.Text = rs(1) And Text2.Text = rs(2)) Then
a = True
Form3.Show
Form1.Hide
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter Correct UserName and Password")
End If
End Sub

Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub




                                                 6
Form2




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

cn.Open "dsn=Course"
rs.ActiveConnection = cn

If (Text3.Text = Text4.Text) Then
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Students"
End With

With rs
.AddNew
.Fields(0) = Val(Text1.Text)
.Fields(1) = Text2.Text
.Fields(2) = Text3.Text
If (Option1 = True) Then
.Fields(3) = Option1.Caption
End If
If (Option2 = True) Then
.Fields(3) = Option2.Caption
End If
.Fields(4) = Val(Text5.Text)


                                    7
.Fields(5) = Text6.Text
.Fields(6) = Text7.Text
.Fields(7) = Text8.Text
.Fields(8) = Text9.Text
.Update
MsgBox ("Registration Success. Please Login")
Form1.Show
Unload Me
End With

Else
MsgBox ("Password doesn't match")
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Public Sub calCutoff()
Text9.Text = Val(Text6.Text) / 4 + Val(Text7.Text) / 4 + Val(Text8.Text) / 2
End Sub

Private Sub Text6_Change()
calCutoff
End Sub

Private Sub Text7_Change()
calCutoff
End Sub

Private Sub Text8_Change()
calCutoff
End Sub


Form3




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



                                                 8
Private Sub Command2_Click()
Form5.Show
Unload Me
End Sub

Form4




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

Private Sub Text1_Change()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

cn.Open "dsn=course"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Colleges"
End With

rs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0)) Then
Text2.Text = rs(1)
Text3.Text = rs(2)
Text4.Text = rs(3)
Text5.Text = rs(4)

                                    9
Text6.Text = rs(5)
End If
rs.MoveNext
Wend
End Sub


Form5




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

cn.Open "dsn=Course"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Reservations"
End With

With rs
.AddNew
.Fields(0) = Form1.Text1.Text
.Fields(1) = Text1.Text
.Fields(2) = Text2.Text
.Update
MsgBox ("Resrvation Success")
End With
End Sub


Private Sub Command2_Click()
Unload Me
End Sub




                                     10
CONCLUSION:
         This project was carried out in a sequential manner to design and implement the “Online
Course Reservation System”. Thus the outcome of the project is efficient. The Online Course
Reservation System caters the varied requirements of the user to perform various options.




                                                11
Ex. No. 2                              E- TICKETING
Date:
AIM
        To analyze, design and develop code E-Ticketing using Rational Rose software.

Problem Statement

         Our project is carried out to develop software for online Railway Reservation System. The
software is coded in VB, which is the front end, and it has Back end, which contains information
about the reservation and the availability of seats in trains. It has various options like reservation,
cancellation and to view details about available seats. Our project mainly simulates the role of a
Railway ticket booking officer, in a computerized way.
         The reservation option enables a person to reserve for a ticket at their home itself. All he/ she
has to do is to just login and enter the required details. After this the reservation database is updated
with the person details, train name and also the source and destination place.
         The cancellation option enables the passenger to cancel the tickets that has been already
booked by him/her.
         The availability option prompts the person to enter train number, train name and date of
travel. After this the availability database is accessed and available positions are produced.

OVERALL DESCRIPTION:
The E-Ticketing System is an integrated system that has four modules as part of it. The four modules
are,
     1) Viewing Train Details: To view the train details. Details can be viewed by giving the train
        number or Source and Destination
     2) Checking Availability of Tickets: To view number of tickets available in the train
     3) Reservation of Tickets: To enable the users to reserve the tickets easily
     4) Cancellation of Tickets: To enable the users to cancel the tickets by giving PNR No

USE CASE DIAGRAM :-




                                                   12
CLASS DIAGRAM :-




                   13
ACTIVITY DIAGRAM :-




                      14
INTERACTION DIAGRAM :-




                         15
COLLABRATION DIAGRAM


                                     1: Login to website
                                  4: Look for train details
                             6: check for availability for seats
                                8: choose a specific seats
                                   10: pay via credit/debit
                                 12: cancellation process
                                  14: confirm cancellation
                                         16: Logout
   Passenger                                                                   Client End
    1: pass                                                                  system:system
                                         3: Acknowledged the login
                                   5: provide corresponding train details
                                         7: Display available seats
                                        9: Display the price scheme
                                           11: Acknowledged pay
                                   13: Ask confirmation of cancellation


                                                 2: Check login details
                                                 15: updata database




               Server database:Train
                     database




COMPONENT DIAGRAM



                                               Cancellat
                                               ion




               Passeng                         Databas                      Administ
               er                              e                            rator




                                               Reservati
                                               on




                                                16
DEPLOYMENT DIAGRAM




                                         Access
                                         Database




                                             E-
                                         Ticketi...




                               Adminis                Passen
                                trator                  ger


IMPLEMENTATION

Form1




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

                                              17
Unload Me
End Sub

Private Sub Command4_Click()
Unload Me
End Sub

Form2




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

cn.Open "dsn=Ticket"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Reservations"
End With

With rs
.AddNew
.Fields(0) = Val(Text1.Text)
.Fields(1) = Val(Text2.Text)
.Fields(2) = Text3.Text
.Fields(3) = Val(Text4.Text)
.Update
MsgBox ("Reservation Success.")
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
End With

                                     18
End Sub
Private Sub Command2_Click()
Form1.Show
Unload Me
End Sub

Form3
Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

cn.Open "dsn=Ticket"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Reservations"
End With

rs.MoveFirst
While (Not rs.EOF)
If (rs(0) = Val(Text1.Text)) Then
rs.Delete
rs.Update
End If
Wend
End Sub

Private Sub Command2_Click()
Form1.Show
Unload Me
End Sub


Form4
Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

cn.Open "dsn=ticket"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Trains"
End With




                                     19
rs.MoveFirst
While Not rs.EOF
If (Text1.Text = rs(2) And Text2.Text = rs(3)) Then
Text3.Text = Text3.Text + Str$(rs(0)) + ", "
Text3.Text = Text3.Text + rs(1) + ". "
a = True
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter correct Details")
End If
End Sub

Private Sub Command2_Click()
Form1.Show
Unload Me
End Sub




CONCLUSION:
         This project was carried out in a sequential manner to design and implement the “E-
Ticketing System”. Thus the outcome of the project is efficient. The E-Ticketing System caters the
varied requirements of the user to perform various options.



                                                 20
Ex No: 3                  CREDIT CARD PROCESSING
Date:
AIM
        To analyze, design and develop code for Credit Card Processing System using Rational Rose
software

PROBLEM STATEMENT
        We envision a banking system that provides the customer holing a bank credit card can make
deposits, withdraws, check balances and perform transfer to and from their accounts. Credit card
processing will be attractive to banking customer because they allow access to their accounts outside
of regular business hours.
             Participating Banks want to make sure the access to their customer account information is
safe and secure transaction information is accurate and reliable. Bank Customer-Want easy, low-cost,
remote access to their accounts, but want to be assured that their accounts are secure and not
accessible to hackers or other their parties.
              Bank must be able to handle multiple simultaneous transactions (and possible
simultaneous transaction to the same joint account).Bank owning a credit card must be able to
determine the cash on hand in the creditcard. The cash in the creditcard must be secure.

OVERALL DESCRIPTION
         The Credit Card Processing System is an integrated system that has four modules as part of
it. The four modules are,
     1) User Login: Using this module user login to the system using his/her unique username and
         password
     2) Withdraw: The purpose of this module to withdraw money from the account
     3) Deposit: The purpose of this module to deposit money to the account
     4) Balance Enquiry: Using this module the user can check his/her account balance and the loan
         amount to pay if any.

SOFTWARE REQUIRMENTS

               Microsoft Visual Basic 6.0
               Rational Rose
               Microsoft Access

HARDWARE REQUIRMENTS

               128MB RAM
               Pentium III Processor




                                                 21
USE CASE DIAGRAM




                             Login




                          Transaction
    Customer                                                   Bank Database




                Deposit    Withdraw          Balance Enquiry




CLASS DIAGRAM




                                        22
ACTIVITY DIAGRAM




                    Login




     Withdraw      Deposit        Balnce Enquiry




                   Logout




                             23
SEQUENCE DIAGRAM


    Customer                     Credit System                    Bank Database



                      Login

                                                 Validate Details


                                            Validation Success
                 Login Success



                   Transaction
                                           Validate Transaction


                                           Transaction Validated

               Transaction Success



                   Pin Change
                                                 Update Details


                                               Details Updated

               Pin Change Success




                                          24
COLLABRATION DIAGRAM

                                 1: Login
                             5: Transaction
                             9: Pin Change
   Customer                                               Credit
                                                          System
                           4: Login Success
                        8: Transaction Success
                       12: Pin Change Success


                        3: Validation Success
                       7: Transaction Validated
                          11: Details Updated


                                2: Validate Details
                             6: Validate Transaction
                               10: Update Details




      Bank
     Database



COMPONENT DIAGRAM
      Customer                     Credit
                                   Card




      Databas                      Bank
      e



DEPLOYMENT DIAGRAM

                           Credit Card                 Access
   Customer
                           Processi...                 Database




                                    25
IMPLEMENTATION

Form1




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

Private Sub Command2_Click()
Form3.Show
Unload Me
End Sub

Private Sub Command3_Click()
Unload Me
End Sub

Form2




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

Dim a As Boolean
a = False
cn.Open "dsn=credit"
rs.ActiveConnection = cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Admin"

                                 26
End With

rs.MoveFirst
While Not rs.EOF
If (Text1.Text = rs(1) And Text2.Text = rs(2)) Then
a = True
Form7.Show
Unload Me
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter Correct UserName and Password")
End If
End Sub

Form3




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

Dim a As Boolean
a = False

cn.Open "dsn=credit"
rs.ActiveConnection = cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Customers"
End With

rs.MoveFirst
While Not rs.EOF
If (Text1.Text = rs(1) And Text2.Text = rs(2)) Then
a = True
Form4.Show
Form3.Hide
End If
rs.MoveNext
Wend


                                                27
If (a = False) Then
MsgBox ("Enter Correct UserName and Password")
End If
End Sub

Form4




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

Private Sub Command2_Click()
Form6.Show
Unload Me
End Sub


Private Sub Form_Load()
Form4.Text1 = Form3.Text1.Text
End Sub

Form5




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

cn.Open "dsn=credit"
rs.ActiveConnection = cn

                                           28
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Customers"
End With

rs.MoveFirst
While Not rs.EOF
If (rs(1) = Form3.Text1.Text) Then
   If (Option1 = True) Then
   rs(3) = rs(3) + Val(Text1.Text)
   MsgBox ("Transaction Complete")
   End If

   If (Option2 = True) Then
      If ((rs(3) + 50000) > Val(Text1.Text)) Then
      rs(3) = rs(3) - Val(Text1.Text)
      MsgBox ("Transaction Complete")
      Else
      MsgBox ("Credit Amount Exceeds")
      End If
   End If
End If
rs.MoveNext
Wend
Text1.Text = ""
End Sub

Private Sub Command2_Click()
Form4.Show
Unload Me
End Sub

Form6




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

Private Sub Form_Load()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

                                                    29
cn.Open "dsn=credit"
rs.ActiveConnection = cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Customers"
End With

rs.MoveFirst
While Not rs.EOF
If (rs(1) = Form3.Text1.Text) Then
   Text1.Text = rs(3)
   End If
rs.MoveNext
Wend
End Sub

Form7




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

Private Sub Command2_Click()
Unload Me
End Sub

Form8
Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

cn.Open "dsn=Credit"
rs.ActiveConnection = cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Customers"

                                     30
End With




rs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0)) Then
Text2.Text = rs(1)
Text3.Text = rs(3)
Text4.Text = rs(4)
a = True
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter correct ID")
End If
End Sub

Private Sub Command2_Click()
Form7.Show
Unload Me
End Sub




CONCLUSION:
        This project was carried out in a sequential manner to design and implement the “Credit
Card Processing System”. Thus the outcome of the project is efficient. The Credit Card Processing
System caters the varied requirements of the user to perform various options.



                                                 31
Ex No:4           SOFTWARE PERSONNEL MANAGEMENT SYSTEM
Date:
AIM
        To analyze, design and develop code for Software Personnel Management System using
Rational Rose software

PROBLEM STATEMENT
         To create Software Personnel Management System and processes the intersection between
human resource management (HRM) and information technology. The system should merges HRM
as a discipline and in particular its basic HR activities and processes with the information technology
field.

OVERALL DESCRIPTION
         The Software Personnel Management System is an integrated system that has four modules as
part of it. The four modules are,
    1) Login: To implement security and only the HR is allowed to access the system using is
         username and password
    2) Adding an Entry: This module is used to insert a new personnel details
    3) Search an Entry: This module is used to search the database with reference to Id or
         Designation
    4) View an Entry: This module is used to get the detailed information about an personnel


SOFTWARE REQUIRMENTS

                 Microsoft Visual Basic 6.0
                 Rational Rose
                 Microsoft Access

HARDWARE REQUIRMENTS

         128MB RAM
         Pentium III Processor
USECASE DIAGRAM



                                         Login




                                     Add New Entry

                                                                           Database
         HR


                                    Search an Entry




                                      View an Entry




                                                      32
CLASS DIAGRAM




ACTIVITY DIAGRAM




                      Login




    Add New Entry   View Entry                Search Entry




                                      By Id                  By Designation




                     Logout




                                 33
SEQUENCE DIAGRAM



       HR                       SPM System                    SPM Database
                     Login

                                             Validate Details


                                         Validation Success
               Login Success



              Add New Entry
                                               Add Details


                                             Details Added
                Entry Added



                   Edit Entry
                                             Update Details


               Entry Edited                  Details Updated



               Search Entry

                                              Retrive Data


                                              Return Data

               Return Details




                                    34
COLLABRATION DIAGRAM

                                     1: Login
                               5: Add New Entry
                                  9: Edit Entry
                               13: Search Entry
    HR                                                                   SPM
                                                                        System
                               4: Login Success
                                 8: Entry Added
                                12: Entry Edited
                               16: Return Details
                             3: Validation Success
                                7: Details Added
                              11: Details Updated
                                15: Return Data


                                   2: Validate Details
                                     6: Add Details
                                   10: Update Details
                                    14: Retrive Data




      SPM
     Database




COMPONENT DIAGRAM

        HR                   Personnel                    Designation




DEPLOYMENT DIAGRAM



   HR                SPM                       Access
                    System                     Database




                                      35
IMPLEMENTATION

Form1




Private Sub Command1_Click()
Dim a As Boolean
a = False

If (Text1.Text = "admin" And Text2.Text = "admin") Then
a = True
Form2.Show
Unload Me
End If

If (a = False) Then
MsgBox ("Enter Correct Username and Password")
End If
End Sub

Form2




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

Private Sub Command2_Click()
Form4.Show
Unload Me
End Sub

                                              36
Private Sub Command3_Click()
Form5.Show
Unload Me
End Sub

Private Sub Command4_Click()
Unload Me
End Sub

Form3




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

cn.Open "dsn=Software"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With




                                 37
With rs
.AddNew
.Fields(0) = Val(Text1.Text)
.Fields(1) = Text2.Text
If (Option1 = True) Then
.Fields(2) = Option1.Caption
End If
If (Option2 = True) Then
.Fields(2) = Option2.Caption
End If
.Fields(3) = Val(Text3.Text)
.Fields(4) = Text4.Text
.Fields(5) = Text5.Text
.Fields(6) = Text6.Text

.Update
End With
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Option1 = False
Option2 = False
End Sub

Form4




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

cn.Open "dsn=software"
rs.ActiveConnection = cn




                                 38
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With

rs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0)) Then
Text3.Text = Text3.Text + rs(1) + ", "
Text3.Text = Text3.Text + rs(2) + ", "
Text3.Text = Text3.Text + Str$(rs(3)) + ", "
Text3.Text = Text3.Text + rs(4) + ", "
Text3.Text = Text3.Text + rs(5) + ", "
Text3.Text = Text3.Text + rs(6) + ", "

a = True
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter correct Employee ID")
End If
Text1.Text = ""
End Sub

Private Sub Command2_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

cn.Open "dsn=software"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With

rs.MoveFirst
While Not rs.EOF
If (Text2.Text = rs(4)) Then
Text3.Text = Text3.Text + Str$(rs(0)) + ", "
Text3.Text = Text3.Text + rs(1) + ", "
Text3.Text = Text3.Text + rs(2) + ", "
Text3.Text = Text3.Text + Str$(rs(3)) + ", "
Text3.Text = Text3.Text + rs(5) + ", "
Text3.Text = Text3.Text + rs(6) + ". "
a = True
End If

                                               39
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter correct Designation")
End If
Text2.Text = ""
End Sub

Private Sub Command3_Click()
Form2.Show
Unload Me
End Sub

Form5




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

cn.Open "dsn=software"
rs.ActiveConnection = cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With

                                       40
rs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0)) Then
Text2.Text = rs(1)
Text3.Text = rs(2)
Text4.Text = rs(3)
Text5.Text = rs(4)
Text6.Text = rs(5)
Text7.Text = rs(6)

a = True
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter correct ID")
End If
End Sub




CONCLUSION:
        This project was carried out in a sequential manner to design and implement the “Software
Personnel Management System”. Thus the outcome of the project is efficient. The Software Personnel
Management System caters the varied requirements of the user to perform various options.




                                               41
Ex.No: 5                           BOOK BANK SYSTEM
Date :
AIM:
        To analyze, design and develop code for Book Bank system using Rational Rose software.

PROBLEM STATEMENT
        To create an Book Bank Maintenance System software that will meet the needs of the
customer and help them in registering for the book bank ,enquiry about the issue of book, return book
and available books.

OVERALL DESCRIPTION
         The Book Bank Maintenance System is an integrated system that has four modules as part of
it. The four modules are,
     1) Registration for the new user: In this module, the user can register as new user in the
         database.
     2) Issue Book: In this module, it shows the details of issued book to the existing user and it
         shows the available book to the particular user.
     3) Return Book: In this module, shows and modify the database and store the return book from
         the user and shows the fine amount.

SOFTWARE REQUIRMENTS

               Microsoft Visual Basic 6.0
               Rational Rose
               Microsoft Access

HARDWARE REQUIRMENTS

               128MB RAM
               Pentium III Processor




                                                 42
USECASE DIAGRAM




                  ENTER INTO SYSTEM




                                            DATA BASE ADMIN
                        NEWUSER
      USER




                       EXISTING USER




                             ISSUE              STORE




                             RETURN



CLASS DIAGRAM




                                       43
ACTIVITY DIAGRAM



                                      start


                                  Login




                         No                     Yes




                    New user                    Existing
                   Registration                   user



                     Book                       Return
                     search                      Book


                    Available
                     Books                          Fine



                    Issue book




                                              End




                                     44
SEQUENCE DIAGRAM


      user                               system                          data base

                   1: new user

                                                            2: save


               3: existing user

                                                           4: retrieve


                                  5: display information


                    6: issue

                                                           7: update

                    8: close

                                                            9: save

                   10: return

                                                           11: update

                    12: close

                                                           13: save




                                        45
COLLABORATION DIAGRAM


                                        1: new user
                                      3: existing user
                                          6: issue
                                          8: close
                                         10: return
                                         12: close
             user                                                      system




             5: display information                        2: save
                                                         4: retrieve
                                       data              7: update
                                       base                9: save
                                                         11: update
                                                          13: save

COMPONENT DIAGRAM



      User                   BookSearch                    Database




DEPLOYMENT DIAGRAM



   User               Book                      Access
                      Bank                      Database




                                          46
IMPLEMENTATION

Form1




Private Sub Command1_Click()
Dim a As Boolean
a = False

If (Text1.Text = "admin" And Text2.Text = "admin") Then
a = True
Form2.Show
Unload Me
End If

If (a = False) Then
MsgBox ("Enter Correct Username and Password")
End If
End Sub

Form2




Private Sub Command1_Click()
Form3.Show
Unload Me
End Sub
Private Sub Command2_Click()
Form4.Show
Unload Me
End Sub

                                              47
Private Sub Command3_Click()
Form5.Show
Unload Me
End Sub

Private Sub Command4_Click()
Form6.Show
Unload Me
End Sub

Private Sub Command5_Click()
Unload Me
End Sub

Form3




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

cn.Open "dsn=BookBank"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Students"
End With

With rs
.AddNew
.Fields(0) = Val(Text1.Text)
.Fields(1) = Text2.Text
.Update
End With
Text1.Text = ""
End Sub

Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub


                                 48
Form4




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

cn.Open "dsn=BookBank"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Books"
End With


With rs
.AddNew
.Fields(0) = Val(Text1.Text)
.Fields(1) = Text2.Text
.Fields(2) = Val(Text3.Text)
.Update
End With

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

Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub




                                 49
Form5




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs1 As New ADODB.Recordset
Dim rs2 As New ADODB.Recordset
Dim a As Boolean
Dim b As Boolean

a = False
b = False

cn.Open "dsn=BookBank"
rs1.ActiveConnection = cn
rs2.ActiveConnection = cn

With rs1
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Students"
End With

With rs2
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Books"
End With

rs1.MoveFirst
While Not rs1.EOF
If (Val(Text1.Text) = rs1(0)) Then
   a = True
   rs2.MoveFirst
   While Not rs2.EOF
      If (Val(Text2.Text) = rs2(0)) Then
      b = True
         If (rs2(2) > 0) Then
         rs2(2) = rs2(2) - 1
         rs2.Update
         MsgBox "Book is Issued"
         Else
         MsgBox "No copies of books is avilable"

                                                   50
End If
      End If
   rs2.MoveNext
   Wend
End If
rs1.MoveNext
Wend
Text1.Text = ""
Text2.Text = ""

If (a = False) Then
MsgBox ("Enter correct Student ID")
End If

If (a = True And b = False) Then
MsgBox ("Enter correct Book ID")
End If

End Sub

Private Sub Command2_Click()
Dim cn As New ADODB.Connection
Dim rs1 As New ADODB.Recordset
Dim rs2 As New ADODB.Recordset
Dim a As Boolean
Dim b As Boolean

a = False
b = False

cn.Open "dsn=BookBank"
rs1.ActiveConnection = cn
rs2.ActiveConnection = cn

With rs1
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Students"
End With

With rs2
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Books"
End With

rs1.MoveFirst
While Not rs1.EOF
If (Val(Text1.Text) = rs1(0)) Then
   a = True
   rs2.MoveFirst
   While Not rs2.EOF
      If (Val(Text2.Text) = rs2(0)) Then

                                           51
b = True
        If (rs2(2) > 10) Then
        MsgBox "Book is Renewed"
        Else
        MsgBox "Please return the Book."
        End If
      End If
   rs2.MoveNext
   Wend
End If
rs1.MoveNext
Wend
Text1.Text = ""
Text2.Text = ""

If (a = False) Then
MsgBox ("Enter correct Student ID")
End If

If (a = True And b = False) Then
MsgBox ("Enter correct Book ID")
End If

End Sub

Private Sub Command3_Click()
Form2.Show
Unload Me
End Sub

Form6




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs1 As New ADODB.Recordset
Dim rs2 As New ADODB.Recordset
Dim a As Boolean
Dim b As Boolean

a = False
b = False



                                           52
cn.Open "dsn=BookBank"
rs1.ActiveConnection = cn
rs2.ActiveConnection = cn

With rs1
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Students"
End With

With rs2
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Books"
End With

rs1.MoveFirst
While Not rs1.EOF
If (Val(Text1.Text) = rs1(0)) Then
   a = True
   rs2.MoveFirst
   While Not rs2.EOF
      If (Val(Text2.Text) = rs2(0)) Then
      b = True
      rs2(2) = rs2(2) + 1
      MsgBox ("Book is Returned")
      End If
   rs2.MoveNext
   Wend
End If
rs1.MoveNext
Text1.Text = ""
Text2.Text = ""
Wend
If (a = False) Then
MsgBox ("Enter correct Student ID")
End If
If (a = True And b = False) Then
MsgBox ("Enter correct Book ID")
End If
End Sub
Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub




CONCLUSION:
        This project was carried out in a sequential manner to design and implement the “Book Bank
System”. Thus the outcome of the project is efficient. The Book Bank System caters the varied
requirements of the user to perform various options.

                                               53
Ex.No: 6                EXAM REGISTRATION SYSTEM
Date :
AIM:
        To analyze, design and develop code for Exam Registration System using Rational Rose
software.

PROBLEM STATEMENT
        To create an Exam registration software that will meet the needs of the applicant and help
them in registering for the exam ,enquiry about the registered subject ,modification in database and
cancellation for the registered project.

OVERALL DESCRIPTION
       The Exam Registration System is an integrated system that has four modules as part of it. The
four modules are,
    1) Registration for the exam: In this module, the user can select the subject to register for the
       exam, Enquiry about the registered subject, Modification in the student database, canceling
       the registered subject
    2) Form for Registration: In this module the user can apply for the exam by giving the details
       about the candidate and selecting the subject for the registration.
    3) Modification in the Database: In this module the user can change the data’s like the phone
       number, address can be done.
    4) Cancellation for the registered subject: In this module the user can cancel their name which
       is registered for the exam.


SOFTWARE REQUIRMENTS

               Microsoft Visual Basic 6.0
               Rational Rose
               Microsoft Access

HARDWARE REQUIRMENTS

               128MB RAM
               Pentium III Processor




                                                 54
USECASE DIAGRAM:



                                                    register for exam
     student
                                                          (from use case)
    (from actor)                                                                                    databse
                                                                                                    (from actor)

                                      select the exam
                                        (from use case)




                                           cancel the exam registration
                   enter datas
                                                        (from use case)
                   (from use case)




                                                                            maintain student info
                                     modify databse                             (from use case)

                                      (from use case)



CLASS DIAGRAM:




                                                           55
ACTIVITY DIAGRAM:




                                              enter into
                                               system



                                                                                        cancel
                                                                                      regisrtation



     select the                            apply the exam
      subject



                                           modify databse




SEQUENCE DIAGRAM:

     student                               exam                                               databse
                                         registration
                   enter the datas



                  select the subject



                  apply for the exam




                                                           generation of registration id


                       note id




                                            modify databse




                                     cancel the subject registration




                                                   56
COLLABRATION DIAGRAM:
                                 1: enter the datas
          student
                               2: select the subject
                               3: apply for the exam



                                  6: note id
                                                                   exam
                                                                 registration
          7: modify databse
   8: cancel the subject registration
                       5: generation of registration id


                                             4:


          databse



COMPONENT DIAGRAM:




DEPLOYMENT DIAGRAM:
                                                    exam
      student                                     registration




                                                   Databse




                                        57
IMPLEMENTATION

Form1




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

Dim a As Boolean
a = False

cn.Open "dsn=exam"
rs.ActiveConnection = cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Students"
End With

rs.MoveFirst
While Not rs.EOF
If (Text1.Text = rs(1) And Text2.Text = rs(2)) Then
a = True
Form3.Show
Form1.Hide
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter Correct UserName and Password")
End If
End Sub

Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub




                                                58
Form2




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

cn.Open "dsn=Exam"
rs.ActiveConnection = cn

If (Text3.Text = Text4.Text) Then
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Students"
End With

With rs
.AddNew
.Fields(0) = Val(Text1.Text)
.Fields(1) = Text2.Text
.Fields(2) = Text3.Text
If (Option1 = True) Then
.Fields(3) = Option1.Caption
End If
If (Option2 = True) Then
.Fields(3) = Option2.Caption
End If
.Fields(4) = Val(Text5.Text)
.Fields(5) = Text6.Text
.Fields(6) = Text7.Text
.Fields(7) = Text8.Text
.Update
MsgBox ("Registration Success. Please Login")
Form1.Show
Unload Me
End With




                                                59
Else
MsgBox ("Password doesn't match")
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Form3




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

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

Private Sub Command3_Click()
Unload Me
End Sub

Form4
Private Sub Command1_Click()
Form3.Show
Unload Me
End Sub

Private Sub Text1_Change()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

cn.Open "dsn=exam"
rs.ActiveConnection = cn




                                    60
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Exams"
End With

rs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0)) Then
Text2.Text = rs(1)
Text3.Text = rs(2)
Text4.Text = rs(3)
End If
rs.MoveNext
Wend
End Sub

Form5




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

                                    61
cn.Open "dsn=Exam"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Exams"
End With

rs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0)) Then
rs(4) = rs(4) + ", " + Form1.Text1.Text
rs.Update
a = True
MsgBox "Exam Applied"
End If
rs.MoveNext
Wend
If (a = False) Then
MsgBox ("Enter correct Exam ID")
End If
End Sub


Private Sub Command2_Click()
Unload Me
End Sub




CONCLUSION:
          This project was carried out in a sequential manner to design and implement the “Exam
Registration System”. Thus the outcome of the project is efficient. The Exam Registration System
caters the varied requirements of the user to perform various options.



                                                62
Ex.No:7                 STOCK MAINTENANCE SYSTEM
Date :
AIM:
        To analyze, design and develop code for Stock maintenance system using Rational Rose
software.

PROBLEM DOMAIN:
                Stock maintenance system is a real time application used in the merchant’s day to day
system. This is a database to store the transaction that takes places between the Manufacturer, Dealer
and the Shop Keeper that includes stock inward and stock outward with reference to the dealer. Here
we assume our self as the Dealer and proceed with the transaction as follows:
                The Manufacturer is the producer of the items and it contains the necessary
information of the item such as price per item, Date of manufacture, best before use, Number of Item
available and their Company Address. The Dealer is the secondary source of an Item and he purchases
Item from the manufacturer by requesting the required Item with its corresponding Company Name
and the Number of Items required.

OVERALL DESCRIPTION:
  1) Login Form: Authenticate the user and administrator.
  2) Department Selection Form: This form will give the options for selecting the department to
     get knowledge about the conference.
  3) Conference view Form: This form contains the details about the conferences are conducting
     by various institutions and we can see the date and time for the conference.
  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:
      Microsoft Visual Basic 6.0
      Rational Rose
      Microsoft Access.

HARDWARE REQURIMENTS:
         128MB RAM
          Pentium III Processor




                                                 63
USECASE DIAGRAM:




                                                Sales
                   Purchase




                                           Company name
               Company name




                                 DEALER                    SHOP KEEPER
                    Price/item               Price/Item
   PRODUCER




                                           Items ordered
               Items ordered




                   Total price             Total price




                                      64
CLASS DIAGRAM:




                 65
ACTIVITY DIAGRAM:




                                       Inventory
                                        System


                                       Select from
                                        the Menu




     Purchase                  Sales                  Stock                Exit




                                                  Display the
                                               Transaction Details

                Company
                  Name


                Price/Item



              No of Items
                ordered




     Total Price                     If Availability > No of
                                     Items Ordered



                       Displays Insufficient              Displays price
                            no of items                      of Items




                                                     66
SEQUENCE DIAGRAM:


   PRODUCER                    DEALER                       SHOPKEEPER

                1.PURCHASE


                                               1.SALES


              2.COMPANY NAME



                                          2.COMPANY NAME


                3.PRICE/ITEM

                                             3.PRICE/ITEM


         4.NO OF ITEMS ORDERED


                                        4.NO OF ITEMS ORDERED


               5.TOTAL PRICE


                                    5.CHECKING WITH AVAILABILITY




                                  6.ITEMS INSUFFICIENT/TOTAL PRICE




                                    67
COLLABORATION DIAGRAM:

                                         5: 3.PRICE/ITEM
                                        9: 5.TOTAL PRICE
   PRODUC                                                                           DEALER
     ER
                                           1: 1.PURCHASE
                                        3: 2.COMPANY NAME
                                    7: 4.NO OF ITEMS ORDERED


                                                      4: 2.COMPANY NAME
                                                  8: 4.NO OF ITEMS ORDERED
                                              10: 5.CHECKING WITH AVAILABILITY


                                                                2: 1.SALES
                                                             6: 3.PRICE/ITEM
                                                 11: 6.ITEMS INSUFFICIENT/TOTAL PRICE




                                   SHOPKEE
                                     PER



COMPONENT DIAGRAM:

           ShopKeeper                Dealer                     Manufacturer




DEPLOYMENT DIAGRAM:


  ShopKe                 Stock                      Access
   eper                 Maint...                    Database




                                               68
IMPLEMENTATION:
Form1




Private Sub Command1_Click()
Dim a As Boolean
a = False

If (Text1.Text = "admin" And Text2.Text = "admin") Then
a = True
Form2.Show
Unload Me
End If

If (a = False) Then
MsgBox ("Enter Correct Username and Password")
End If
End Sub

Form2




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

Private Sub Command2_Click()
Form4.Show
Unload Me
End Sub




                                              69
Private Sub Command3_Click()
Form5.Show
Unload Me
End Sub

Private Sub Command4_Click()
Unload Me
End Sub

Form3




Private Sub Command1_Click()

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

cn.Open "dsn=Stock"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Stock"
End With


With rs
.AddNew
.Fields(0) = Val(Text1.Text)
.Fields(1) = Text2.Text
.Fields(2) = Text3.Text
.Fields(3) = Val(Text4.Text)
.Update
End With
MsgBox ("New Record Added")
Text1.Text = ""
Text2.Text = ""

                                 70
Text3.Text = ""
Text4.Text = ""
End Sub


Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub

Form4




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

cn.Open "dsn=Stock"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Stock"
End With

rs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0)) Then
Text2.Text = rs(1)
Text3.Text = rs(2)
Text4.Text = rs(3)
a = True
End If

                                    71
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter correct ID")
End If
End Sub

Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub

Form5




Private Sub Command1_Click()

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

cn.Open "dsn=Stock"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Stock"
End With

rs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0)) Then
With rs
.Fields(0) = Val(Text1.Text)

                                    72
.Fields(1) = Text2.Text
.Fields(2) = Text3.Text
.Fields(3) = Val(Text4.Text)
.Update
End With
MsgBox ("Record Updated")
End If
rs.MoveNext
Wend

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

Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub

Private Sub Text1_Change()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

cn.Open "dsn=Stock"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Stock"
End With

rs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0)) Then
Text2.Text = rs(1)
Text3.Text = rs(2)
Text4.Text = rs(3)
a = True
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter correct ID")
End If
End Sub




                                    73
CONCLUSION:
          This project was carried out in a sequential manner to design and implement the “Stock
Maintenance System”. Thus the outcome of the project is efficient. The Stock Maintenance System
caters the varied requirements of the user to perform various options.


                                                74
Ex.No:8                 E-BOOK MANAGEMENT SYSTEM
Date :
AIM:
        To analyze, design and develop code for E-Book Management system using Rational Rose
software.

PROBLEM STATEMENT
        To create an E-Book Management system software that will meet the needs of the customer
and help them in registering for the book bank, enquiry about the issue of book, return book and
available books.

OVERALL DESCRIPTION
       The E-Book Management System is an integrated system that has four modules as part of it.
The four modules are,
   1) Add Book Details: In this module, the user can enter details about new book.
   2) Edit Book Details: In this module, the user can edit details about any book.
   3) View Book Details: In this module, the user can view details about books.
   4) Search Book Details: In this module, the user can search details about books by Author and
       Id

SOFTWARE REQUIRMENTS

              Microsoft Visual Basic 6.0
              Rational Rose
              Microsoft Access

HARDWARE REQUIRMENTS

              128MB RAM
              Pentium III Processor




                                              75
USECASE DIAGRAM




                   New Book Details




                   Edit Book Details


      User                              Database
                   View Book Details




                  Search Book Details




CLASS DIAGRAM




                                76
ACTIVITY DIAGRAM




                     Login




      View Book    Edit Book            Search Book
        Details     Details                Details




                               By Publication         By Author




                               77
SEQUENCE DIAGRAM


     User                       System                           Database


            Add Book Details
                                             Insert Details


                                         Successfully Inserted
               Details Added



             Search Details
                                            Retrive Details


                                             Send Details

               Send Details



                Edit Details

                                            Update Details

                                           Udate Success

              Edition Success




                                  78
COLLABORATION DIAGRAM


                                 1: Add Book Details
                                  5: Search Details
                                    9: Edit Details
            User                                                      System

                                   4: Details Added
                                   8: Send Details
                                 12: Edition Success


                             3: Successfully Inserted
                                 7: Send Details
                                11: Udate Success


                                         2: Insert Details
                                         6: Retrive Details
                                        10: Update Details




               Database



COMPONENT DIAGRAM



     User                 Book                           Database




DEPLOYMENT DIAGRAM



     User                   E-Book                             Access
                          Manageme...                          Database




                                   79
IMPLEMENTATION
Form1




Private Sub Command1_Click()
Dim a As Boolean
a = False

If (Text1.Text = "admin" And Text2.Text = "admin") Then
a = True
Form2.Show
Unload Me
End If

If (a = False) Then
MsgBox ("Enter Correct Username and Password")
End If
End Sub

Form2




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

Private Sub Command2_Click()


                                              80
Form4.Show
Unload Me
End Sub

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

Private Sub Command4_Click()
Unload Me
End Sub

Form3




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

cn.Open "dsn=ebook"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With

rs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0)) Then
Text2.Text = rs(1)
Text3.Text = rs(2)
Text4.Text = rs(3)


                                    81
a = True
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter correct ID")
End If
End Sub

Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub

Form4




Private Sub Command1_Click()

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

cn.Open "dsn=EBook"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With


With rs
.AddNew
.Fields(0) = Val(Text1.Text)
.Fields(1) = Text2.Text

                                 82
.Fields(2) = Text3.Text
.Fields(3) = Text4.Text
.Update
End With
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
End Sub

Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub

Form5




Private Sub Command1_Click()

Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

cn.Open "dsn=ebook"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With

rs.MoveFirst

                                 83
While Not rs.EOF
If (Text1.Text = rs(2)) Then
Text3.Text = Text3.Text + Str$(rs(0)) + ", "
Text3.Text = Text3.Text + rs(1) + ", "
Text3.Text = Text3.Text + rs(3) + ". "

a = True
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter correct Author Name")
End If
End Sub

Private Sub Command2_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

cn.Open "dsn=ebook"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With

rs.MoveFirst
While Not rs.EOF
If (Text2.Text = rs(3)) Then
Text3.Text = Text3.Text + Str$(rs(0)) + ", "
Text3.Text = Text3.Text + rs(1) + ", "
Text3.Text = Text3.Text + rs(2) + ". "

a = True
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter correct Publisher Name")
End If
End Sub

Private Sub Command3_Click()
Form2.Show
Unload Me
End Sub



                                               84
CONCLUSION:
        This project was carried out in a sequential manner to design and implement the “E-Book
System”. Thus the outcome of the project is efficient. The E-Book System caters the varied
requirements of the user to perform various options.


                                               85
Ex.No: 9                          RECRUITMENT SYSTEM
Date:
AIM
        To analyze, design and develop code for Recruitment System using Rational Rose software

PROBLEM STATEMENT
          Recruitment System is used to process the applicant easily. It also contains search filters to
filters the applicants based on age, gender, experience, skills etc.
          It is mainly used by HR personnel in corporates to efficiently analyze the applications

OVERALL DESCRIPTION
       The E-Book Management System is an integrated system that has four modules as part of it.
The four modules are,
       1) Register: In this module, the user can register his/her details to use in the system.
       2) Search Jobs: In this module, the user can search jobs.
       3) Apply Jobs: In this module, the user can apply jobs.
       4) Edit details: In this module, the user can search details about books by Author and Id

SOFTWARE REQUIRMENTS

                Microsoft Visual Basic 6.0
                Rational Rose
                Microsoft Access

HARDWARE REQUIRMENTS

                128MB RAM
                Pentium III Processor




                                                    86
USECASE DIAGRAM:




                     Login




                    Register


     Employee                     Database
                   Search Jobs




                   Apply Jobs




CLASS DIAGRAM:




                             87
ACTIVITY DIAGRAM:




                      Login




     Search jobs    Apply Jobs        Edit Details




                     Logout




                                 88
SEQUENCE DIAGRAM


      User                    Recruitment                       Database
                                 Syste
                   Login
                                             Validate details


                                               Valid user

              Login sucess


              Search Jobs

                                             Retrive Details

                                              Send Details



              Show Details



              Apply Jobs


                                              Make Entry


                                            Entry Successful

              Job Applied



              Edit Details

                                             Update Details



                                            Updation Success


             Details Edited




                                      89
COLLABORATION DIAGRAM:

                                   1: Login
                               5: Search Jobs
                                9: Apply Jobs
                               13: Edit Details
    User                                                          Recruitment
                                                                     Syste
                               4: Login sucess
                               8: Show Details
                               12: Job Applied
                              16: Details Edited

                                  3: Valid user
                                 7: Send Details
                              11: Entry Successful
                             15: Updation Success


                                    2: Validate details
                                     6: Retrive Details
                                      10: Make Entry
                                    14: Update Details




       Database



COMPONENT DIAGRAM:


       User                      Application                  Employer




DEPLOYMENT DIAGRAM:




  Employee            Recruitment                    Access
                        System                       Databe




                                       90
IMPLEMENTATION:
Form1:




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

Dim a As Boolean
a = False

cn.Open "dsn=recruit"
rs.ActiveConnection = cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Applicants"
End With

rs.MoveFirst
While Not rs.EOF
If (Text1.Text = rs(1) And Text2.Text = rs(2)) Then
a = True
Form3.Show
Form1.Hide
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter Correct UserName and Password")
End If
End Sub

Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub




                                                91
Form2




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

cn.Open "dsn=Recruit"
rs.ActiveConnection = cn

If (Text3.Text = Text4.Text) Then
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Applicants"
End With

With rs
.AddNew
.Fields(0) = Val(Text1.Text)
.Fields(1) = Text2.Text
.Fields(2) = Text3.Text
If (Option1 = True) Then
.Fields(3) = Option1.Caption
End If
If (Option2 = True) Then
.Fields(3) = Option2.Caption

                                    92
End If
.Fields(4) = Val(Text5.Text)
.Fields(5) = Text6.Text
.Fields(6) = Text7.Text
.Update
MsgBox ("Registration Success. Please Login")
Form1.Show
Unload Me
End With

Else
MsgBox ("Password doesn't match")
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Form3




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

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

Private Sub Form_Load()
Text1.Text = Form1.Text1.Text
End Sub




                                                93
Form4




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

cn.Open "dsn=recruit"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Jobs"
End With

rs.MoveFirst
While Not rs.EOF
If (Text1.Text = rs(1)) Then
Text3.Text = Text3.Text + Str$(rs(0)) + ", "
Text3.Text = Text3.Text + rs(2) + ", "
Text3.Text = Text3.Text + rs(3) + ". "

a = True
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter correct Company Name")
End If
End Sub

Private Sub Command2_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

                                               94
cn.Open "dsn=recruit"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Jobs"
End With

rs.MoveFirst
While Not rs.EOF
If (Text2.Text = rs(2)) Then
Text3.Text = Text3.Text + Str$(rs(0)) + ", "
Text3.Text = Text3.Text + rs(1) + ", "
Text3.Text = Text3.Text + rs(3) + ". "

a = True
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter correct Company Name")
End If
End Sub

Private Sub Command3_Click()
Form3.Show
Unload Me
End Sub

Form5




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

cn.Open "dsn=recruit"
rs.ActiveConnection = cn


                                               95
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Jobs"
End With

rs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0)) Then
rs(4) = rs(4) + ", " + Form1.Text1.Text
rs.Update
a = True
MsgBox "Job Applied"
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter correct Company Name")
End If
End Sub




CONCLUSION:
          This project was carried out in a sequential manner to design and implement the
“Recruitment System”. Thus the outcome of the project is efficient. The Recruitment System caters
the varied requirements of the user to perform various options.




                                                96
Ex No: 10                         ATM SYSTEM
Date:
AIM
        To analyze, design and develop code for Atm System using Rational Rose software

PROBLEM STATEMENT
        We envision a banking system that provides the customer holing a bank credit card can make
deposits, withdraws, check balances and perform transfer to and from their accounts. Atm card
processing will be attractive to banking customer because they allow access to their accounts outside
of regular business hours.
             Participating Banks want to make sure the access to their customer account information is
safe and secure transaction information is accurate and reliable. Bank Customer-Want easy, low-cost,
remote access to their accounts, but want to be assured that their accounts are secure and not
accessible to hackers or other their parties.
              Bank must be able to handle multiple simultaneous transactions (and possible
simultaneous transaction to the same joint account).Bank owning a credit card must be able to
determine the cash on hand in the atm. The cash in the at must be secure.

OVERALL DESCRIPTION
     The Atm System is an integrated system that has four modules as part of it. The four modules
are,
     1) User Login: Using this module user login to the system using his/her unique username
        and password
     2) Withdraw: The purpose of this module to withdraw money from the account
     3) Deposit: The purpose of this module to deposit money to the account
     4) Balance Enquiry: Using this module the user can check his/her account balance and the
        loan amount to pay if any.

SOFTWARE REQUIRMENTS

               Microsoft Visual Basic 6.0
               Rational Rose
               Microsoft Access

HARDWARE REQUIRMENTS

               128MB RAM
               Pentium III Processor




                                                 97
USE CASE DIAGRAM




                                 Login




                              Transaction
      User                                                 Database




                   Withdraw              Balance Enquiry




CLASS DIAGRAM




                                          98
ACTIVITY DIAGRAM




                    Login




     Pin Change    Withdraw        Balance
                                   Enquiry




                    Logout




                              99
SEQUENCE DIAGRAM



      User                     System                       Database
                   Login
                                         Validate details


                                           Valid user

              Login sucess


                Withdraw

                                         Reduce Amount

                                          New Balance



               Send Cash



             Balance Enquiry


                                         Retrive Balance


                                        Return Balance

              Return details



              Pin Change

                                         Update Details



                                        Updation Success


              Pin Changed




                                  100
COLLABRATION DIAGRAM

                                     1: Login
                                   5: Withdraw
                               9: Balance Enquiry
                                 13: Pin Change
    User                                                     System

                                4: Login sucess
                                 8: Send Cash
                               12: Return details
                               16: Pin Changed

                                   3: Valid user
                                 7: New Balance
                               11: Return Balance
                              15: Updation Success


                                     2: Validate details
                                    6: Reduce Amount
                                    10: Retrive Balance
                                    14: Update Details




          Database




COMPONENT DIAGRAM
      Customer                              ATM
                                            Card




      Databas                               Bank
      e



DEPLOYMENT DIAGRAM




   User               ATM                           Access
                     System                         Databe




                                      101
IMPLEMENTATION
Form1




Private Sub Command1_Click()

Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As String
Dim b As Integer
Dim c As Boolean
c = False

cn.Open "dsn=atm"
rs.ActiveConnection = cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With

rs.MoveFirst
While Not rs.EOF
a = rs.Fields("AccNO")
b = rs.Fields("PIN")
If (Text1.Text = a And Val(Text2.Text) = b) Then
c = True
Form2.Show
Form1.Hide
End If
rs.MoveNext
Wend

If (c = False) Then
MsgBox ("Enter Correct AccNo and PIN")
End If
End Sub

                                              102
Form2




Private Sub Command1_Click()
Form3.Show
Unload Me

End Sub

Private Sub Command2_Click()
Form4.Show
Unload Me
End Sub

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

Private Sub Command4_Click()
Unload Form1
Unload Me
End Sub

Private Sub Form_Load()

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

Dim a As String
cn.Open "dsn=atm"
rs.ActiveConnection = cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With



                                 103
rs.MoveFirst
While Not rs.EOF
a = rs.Fields("AccNO")
If (Form1.Text1.Text = a) Then
Text1.Text = rs.Fields("UserName")
Text2.Text = a
End If
rs.MoveNext
Wend
End Sub

Form3




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

Private Sub Command2_Click()
Unload Form1
Unload Me
End Sub

Private Sub Form_Load()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

Dim a As String
cn.Open "dsn=atm"
rs.ActiveConnection = cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With

rs.MoveFirst
While Not rs.EOF
a = rs.Fields("AccNO")


                                     104
If (Form1.Text1.Text = a) Then
Text1.Text = rs.Fields("Balance")
End If
rs.MoveNext
Wend
End Sub

Form4




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

Dim a As String
Dim b As Integer
Dim c As Boolean
c = False

cn.Open "dsn=atm"
rs.ActiveConnection = cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With

rs.MoveFirst
While Not rs.EOF
a = rs.Fields("AccNO")
If (Form1.Text1.Text = a) Then
If (Val(Text1.Text) = rs.Fields("PIN")) Then
If (Val(Text2.Text) = Val(Text3.Text)) Then
rs("PIN") = Val(Text2.Text)
rs.Update
MsgBox ("Pin Change Success")
c = True
Text1.Text = ""
Text2.Text = ""

                                               105
Text3.Text = ""
End If
End If
End If
rs.MoveNext
Wend

If (c = False) Then
MsgBox ("Pin Change not Success")
End If

End Sub

Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub

Private Sub Command3_Click()
Unload Form1
Unload Me
End Sub

Form5




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset

Dim a As String
Dim b As Long
Dim c As Boolean
c = False

cn.Open "dsn=atm"
rs.ActiveConnection = cn
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With


                                    106
rs.MoveFirst
While Not rs.EOF
a = rs.Fields("AccNO")
b = rs.Fields("Balance")
If (a = Form1.Text1.Text And Val(Text1.Text) < b) Then
rs.Fields("Balance") = b - Val(Text1.Text)
c = True
MsgBox ("Collect the cash")
Text1.Text = ""
End If
rs.MoveNext
Wend
If (c = False) Then
MsgBox ("Not sufficient Balance")
End If
End Sub

Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub

Private Sub Command3_Click()
Unload Form1
Unload Me
End Sub




CONCLUSION:
        This project was carried out in a sequential manner to design and implement the “ATM
System”. Thus the outcome of the project is efficient. The ATM System caters the varied
requirements of the user to perform various options.




                                              107
Ex No:11                         PAYROLL SYSTEM
Date:
AIM:
         To analyze, design and develop code for Payroll system using Rational Rose software.
PROBLEM STATEMENT
         To compute the gross pay of a person using the Payroll system software and to add new
details to the existing database and update it, using visual basic 6.0 and MS Access
 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.
    2) Pay slip form: Fill in the form with details such as employee id, employee name, department,
         experience, and basic pay in the text boxes and submit using CALCULATE command button
         Update it in the database using UPDATE command button.
    3) Database form: Updated database would be present. We can search for the required Pay
         details using SEARCH command button

SOFTWARE REQURIEMENTS:
        Microsoft Visual Basic 6.0
        Rational Rose
        Microsoft Access.
HARDWARE REQURIMENTS:
          128MB RAM
          Pentium III Processor

USECASE DIAGRAM




                                               108
CLASS DIAGRAM




                109
ACTIVITY DIAGRAM




                                            Payroll




                   Employee                                     Salary
                     Detail




     Emp payroll          Official detail               Basic    PF      Other




                                                      110
SEQUENCE DIAGRAM


    Employee                            System                       Employee
                                                                     Database
                       Login


                        Valid


               Enter Employee Details

                                                 Store In Database

                                                   Return Details

                   Display details


                Ask For Salary Slip

                                             Ask For Basic Pay,PF


                                                   Return Details


           Calculate & Display Salary




                        Exit




                                             111
COLLABRATION DIAGRAM


                                 1: Login
                        3: Enter Employee Details
                          7: Ask For Salary Slip
  Employee                                                      System

                                  2: Valid
                            6: Display details
                      10: Calculate & Display Salary
                                 11: Exit

                          5: Return Details
                          9: Return Details



                             4: Store In Database
                           8: Ask For Basic Pay,PF




   Employee
   Database



COMPONENT DIAGRAM




       Employee                    PayRoll                      Database




DEPLOYMENT DIAGRAM:




  Employee               PayRoll                       Access
                         System                        Databe




                                        112
IMPLEMENTATION:
Form1:




Private Sub Command1_Click()
Dim a As Boolean
a = False

If (Text1.Text = "admin" And Text2.Text = "admin") Then
a = True
Form2.Show
Unload Me
End If

If (a = False) Then
MsgBox ("Enter Correct Username and Password")
End If
End Sub

Form2




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



                                             113
Private Sub Command2_Click()
Form4.Show
Unload Me
End Sub

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

Private Sub Command4_Click()
Unload Me
End Sub

Form3




Private Sub Command1_Click()

Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

cn.Open "dsn=payroll"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic

                                 114
.Open "select * from Details"
End With

rs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0)) Then
Text2.Text = rs(1)
Text3.Text = rs(2)
Text4.Text = rs(3)
Text5.Text = rs(4)
Text6.Text = rs(5)
Text7.Text = rs(6)
Text8.Text = rs(7)
a = True
End If
rs.MoveNext
Wend

If (a = False) Then
MsgBox ("Enter correct ID")
End If
End Sub

Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub

Private Sub Command3_Click()
Unload Me
End Sub

Form4
Private Sub Command1_Click()

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

cn.Open "dsn=payroll"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With

With rs
.AddNew

                                    115
.Fields(0) = Text1.Text
.Fields(1) = Text2.Text
.Fields(2) = Text3.Text
.Fields(3) = Val(Text4.Text)
.Fields(4) = Val(Text5.Text)
.Fields(5) = Val(Text6.Text)
.Fields(6) = Val(Text7.Text)
.Fields(7) = Val(Text8.Text)
.Update
End With




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

Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub

Private Sub Command3_Click()
Unload Me
End Sub

                               116
Private Sub Text3_Change()
Text4.Text = Val(Text3.Text) * 0.25
Text5.Text = Val(Text3.Text) * 0.1
Text6.Text = Val(Text3.Text) * 0.12
Text8.Text = Val(Text3.Text) + Val(Text4.Text) + Val(Text5.Text) - Val(Text6.Text) +
Val(Text7.Text)
End Sub


Form5




Private Sub Command1_Click()
Dim cn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Dim a As Boolean
a = False

cn.Open "dsn=payroll"
rs.ActiveConnection = cn

With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open "select * from Details"
End With

rs.MoveFirst
While Not rs.EOF
If (Val(Text1.Text) = rs(0)) Then
rs.Delete
rs.Update
a = True
End If
rs.MoveNext
Wend



                                          117
If (a = False) Then
MsgBox ("Enter correct ID")
End If
End Sub

Private Sub Command2_Click()
Form2.Show
Unload Me
End Sub

Private Sub Command3_Click()
Unload Me
End Sub




CONCLUSION:
        This project was carried out in a sequential manner to design and implement the “Payroll
System”. Thus the outcome of the project is efficient. The Payroll System caters the varied
requirements of the user to perform various options.




                                                118

Contenu connexe

Tendances

Railway Reservation System - Software Engineering
Railway Reservation System - Software EngineeringRailway Reservation System - Software Engineering
Railway Reservation System - Software EngineeringLalit Pal
 
Student Monitoring Attendance System
Student Monitoring Attendance SystemStudent Monitoring Attendance System
Student Monitoring Attendance Systemyumico23
 
Railway Reservation Documentation
Railway Reservation DocumentationRailway Reservation Documentation
Railway Reservation DocumentationKunwar Singh
 
Case tool lab-Reg2013 by Karthick Raja
Case tool lab-Reg2013 by Karthick RajaCase tool lab-Reg2013 by Karthick Raja
Case tool lab-Reg2013 by Karthick RajaursKarthick Raja
 
Student Information System (SIS) in PHP
Student Information System (SIS) in PHPStudent Information System (SIS) in PHP
Student Information System (SIS) in PHPSaif Ali Tai
 
ER diagrams for Railway reservation system
ER diagrams for Railway reservation systemER diagrams for Railway reservation system
ER diagrams for Railway reservation systemSoham Nanekar
 
Alumni Tracking Portal of Cagayan State University Lal lo Campus)
Alumni Tracking Portal of Cagayan State University Lal lo Campus)Alumni Tracking Portal of Cagayan State University Lal lo Campus)
Alumni Tracking Portal of Cagayan State University Lal lo Campus)Edenjoy Manuel
 
college website project report
college website project reportcollege website project report
college website project reportMahendra Choudhary
 
Computer simulation
Computer simulationComputer simulation
Computer simulationGudia Khan
 
Learning Management System
Learning Management SystemLearning Management System
Learning Management SystemShubham Singh
 
Wireframe & Prototype - Task Management
Wireframe & Prototype - Task ManagementWireframe & Prototype - Task Management
Wireframe & Prototype - Task ManagementSuraj Rao
 
student application form Java Netbeans
student application form Java Netbeansstudent application form Java Netbeans
student application form Java Netbeansreshmajohney
 
(Project) Student grading system
(Project) Student grading system(Project) Student grading system
(Project) Student grading systemRajesh Piryani
 
Software requirement specification for online examination system
Software requirement specification for online examination systemSoftware requirement specification for online examination system
Software requirement specification for online examination systemkarthik venkatesh
 
Online examination system of open and distance education kunti
Online examination system of open and distance education kuntiOnline examination system of open and distance education kunti
Online examination system of open and distance education kuntiNawaraj Ghimire
 
Virtual education system
Virtual education systemVirtual education system
Virtual education systemDhara024
 
Airline Flight Tracking
Airline Flight TrackingAirline Flight Tracking
Airline Flight Trackingmariasinha81
 
Online examination system
Online examination systemOnline examination system
Online examination systemTamoghna Hazra
 

Tendances (20)

IPL-16 project
IPL-16 projectIPL-16 project
IPL-16 project
 
Railway Reservation System - Software Engineering
Railway Reservation System - Software EngineeringRailway Reservation System - Software Engineering
Railway Reservation System - Software Engineering
 
Student Monitoring Attendance System
Student Monitoring Attendance SystemStudent Monitoring Attendance System
Student Monitoring Attendance System
 
Railway Reservation Documentation
Railway Reservation DocumentationRailway Reservation Documentation
Railway Reservation Documentation
 
Case tool lab-Reg2013 by Karthick Raja
Case tool lab-Reg2013 by Karthick RajaCase tool lab-Reg2013 by Karthick Raja
Case tool lab-Reg2013 by Karthick Raja
 
Student Information System (SIS) in PHP
Student Information System (SIS) in PHPStudent Information System (SIS) in PHP
Student Information System (SIS) in PHP
 
ER diagrams for Railway reservation system
ER diagrams for Railway reservation systemER diagrams for Railway reservation system
ER diagrams for Railway reservation system
 
Alumni Tracking Portal of Cagayan State University Lal lo Campus)
Alumni Tracking Portal of Cagayan State University Lal lo Campus)Alumni Tracking Portal of Cagayan State University Lal lo Campus)
Alumni Tracking Portal of Cagayan State University Lal lo Campus)
 
college website project report
college website project reportcollege website project report
college website project report
 
Computer simulation
Computer simulationComputer simulation
Computer simulation
 
Learning Management System
Learning Management SystemLearning Management System
Learning Management System
 
Wireframe & Prototype - Task Management
Wireframe & Prototype - Task ManagementWireframe & Prototype - Task Management
Wireframe & Prototype - Task Management
 
student application form Java Netbeans
student application form Java Netbeansstudent application form Java Netbeans
student application form Java Netbeans
 
(Project) Student grading system
(Project) Student grading system(Project) Student grading system
(Project) Student grading system
 
Software requirement specification for online examination system
Software requirement specification for online examination systemSoftware requirement specification for online examination system
Software requirement specification for online examination system
 
Online examination system of open and distance education kunti
Online examination system of open and distance education kuntiOnline examination system of open and distance education kunti
Online examination system of open and distance education kunti
 
Virtual education system
Virtual education systemVirtual education system
Virtual education system
 
Airline Flight Tracking
Airline Flight TrackingAirline Flight Tracking
Airline Flight Tracking
 
ONLINE BUS BOOKING SYSTEM
ONLINE BUS BOOKING SYSTEMONLINE BUS BOOKING SYSTEM
ONLINE BUS BOOKING SYSTEM
 
Online examination system
Online examination systemOnline examination system
Online examination system
 

En vedette

Ooad lab manual(original)
Ooad lab manual(original)Ooad lab manual(original)
Ooad lab manual(original)dipenpatelpatel
 
Payroll Management System
Payroll Management SystemPayroll Management System
Payroll Management SystemDheeraj Jha
 
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...Mohammad Karim Shahbaz
 
Ooad lab manual
Ooad  lab manualOoad  lab manual
Ooad lab manualPraseela R
 
Online Movie Ticket Booking
Online Movie Ticket BookingOnline Movie Ticket Booking
Online Movie Ticket BookingAstha Patel
 
60780174 49594067-cs1403-case-tools-lab-manual
60780174 49594067-cs1403-case-tools-lab-manual60780174 49594067-cs1403-case-tools-lab-manual
60780174 49594067-cs1403-case-tools-lab-manualChitrarasan Kathiravan
 
Online movie ticket reservation1
Online movie ticket reservation1Online movie ticket reservation1
Online movie ticket reservation1vidhipc
 
Collaboration Diagram
Collaboration DiagramCollaboration Diagram
Collaboration Diagramfahad_uaar
 
Online Quiz System Project PPT
Online Quiz System Project PPTOnline Quiz System Project PPT
Online Quiz System Project PPTShanthan Reddy
 
SRS for student database management system
SRS for student database management systemSRS for student database management system
SRS for student database management systemSuman Saurabh
 
Employee Recruitment System srs
Employee Recruitment System srsEmployee Recruitment System srs
Employee Recruitment System srskrupal shah
 
Payroll Management System SRS
Payroll Management System SRSPayroll Management System SRS
Payroll Management System SRSShubham Modi
 
Online movie ticket booking
Online movie ticket bookingOnline movie ticket booking
Online movie ticket bookingmrinnovater007
 
Presentation on Railway Reservation System
Presentation on Railway Reservation SystemPresentation on Railway Reservation System
Presentation on Railway Reservation SystemPriyanka Sharma
 
Declaration by the candidate
Declaration by the candidateDeclaration by the candidate
Declaration by the candidateRaj Sekhar
 
Project report RAILWAY TICKET RESERVATION SYSTEM SAD
Project report RAILWAY TICKET RESERVATION SYSTEM SADProject report RAILWAY TICKET RESERVATION SYSTEM SAD
Project report RAILWAY TICKET RESERVATION SYSTEM SADNitesh Singh
 
Project report-on-student-information-management-system-php-mysql
Project report-on-student-information-management-system-php-mysqlProject report-on-student-information-management-system-php-mysql
Project report-on-student-information-management-system-php-mysqlRaj Sharma
 

En vedette (20)

Ooad lab manual(original)
Ooad lab manual(original)Ooad lab manual(original)
Ooad lab manual(original)
 
Ooad lab manual
Ooad lab manualOoad lab manual
Ooad lab manual
 
Payroll Management System
Payroll Management SystemPayroll Management System
Payroll Management System
 
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
Employee Management System UML Diagrams Use Case Diagram, Activity Diagram, S...
 
Ooad lab manual
Ooad  lab manualOoad  lab manual
Ooad lab manual
 
Online Movie Ticket Booking
Online Movie Ticket BookingOnline Movie Ticket Booking
Online Movie Ticket Booking
 
60780174 49594067-cs1403-case-tools-lab-manual
60780174 49594067-cs1403-case-tools-lab-manual60780174 49594067-cs1403-case-tools-lab-manual
60780174 49594067-cs1403-case-tools-lab-manual
 
Online movie ticket reservation1
Online movie ticket reservation1Online movie ticket reservation1
Online movie ticket reservation1
 
Collaboration Diagram
Collaboration DiagramCollaboration Diagram
Collaboration Diagram
 
Online Quiz System Project PPT
Online Quiz System Project PPTOnline Quiz System Project PPT
Online Quiz System Project PPT
 
SRS for student database management system
SRS for student database management systemSRS for student database management system
SRS for student database management system
 
Employee Recruitment System srs
Employee Recruitment System srsEmployee Recruitment System srs
Employee Recruitment System srs
 
Payroll Management System SRS
Payroll Management System SRSPayroll Management System SRS
Payroll Management System SRS
 
Online movie ticket booking
Online movie ticket bookingOnline movie ticket booking
Online movie ticket booking
 
Presentation on Railway Reservation System
Presentation on Railway Reservation SystemPresentation on Railway Reservation System
Presentation on Railway Reservation System
 
Declaration by the candidate
Declaration by the candidateDeclaration by the candidate
Declaration by the candidate
 
Online quiz system
Online quiz systemOnline quiz system
Online quiz system
 
Project report RAILWAY TICKET RESERVATION SYSTEM SAD
Project report RAILWAY TICKET RESERVATION SYSTEM SADProject report RAILWAY TICKET RESERVATION SYSTEM SAD
Project report RAILWAY TICKET RESERVATION SYSTEM SAD
 
Hospital management system
Hospital management systemHospital management system
Hospital management system
 
Project report-on-student-information-management-system-php-mysql
Project report-on-student-information-management-system-php-mysqlProject report-on-student-information-management-system-php-mysql
Project report-on-student-information-management-system-php-mysql
 

Similaire à 87683689 ooad-lab-record

Distributed airline reservation system
Distributed airline reservation systemDistributed airline reservation system
Distributed airline reservation systemSJSU
 
Distributed airline reservation system
Distributed airline reservation systemDistributed airline reservation system
Distributed airline reservation systemSJSU
 
railway_PROJECT.doc on python my SQL connectivity
railway_PROJECT.doc on python my SQL connectivityrailway_PROJECT.doc on python my SQL connectivity
railway_PROJECT.doc on python my SQL connectivityvicky9095916747
 
The Art of The Event Streaming Application: Streams, Stream Processors and Sc...
The Art of The Event Streaming Application: Streams, Stream Processors and Sc...The Art of The Event Streaming Application: Streams, Stream Processors and Sc...
The Art of The Event Streaming Application: Streams, Stream Processors and Sc...confluent
 
Kakfa summit london 2019 - the art of the event-streaming app
Kakfa summit london 2019 - the art of the event-streaming appKakfa summit london 2019 - the art of the event-streaming app
Kakfa summit london 2019 - the art of the event-streaming appNeil Avery
 
Mvc4 crud operations.-kemuning senja
Mvc4 crud operations.-kemuning senjaMvc4 crud operations.-kemuning senja
Mvc4 crud operations.-kemuning senjaalifha12
 
Report on online bus management
Report on online bus managementReport on online bus management
Report on online bus managementNaeem Ahmad
 
Asp.net Lab manual
Asp.net Lab manualAsp.net Lab manual
Asp.net Lab manualTamil Dhasan
 
Dot net-course-curriculumn
Dot net-course-curriculumnDot net-course-curriculumn
Dot net-course-curriculumnAmit Sharma
 
Build an App with Blindfold - Britt Barak
Build an App with Blindfold - Britt Barak Build an App with Blindfold - Britt Barak
Build an App with Blindfold - Britt Barak DroidConTLV
 
Distributed Airline Reservation System
Distributed Airline Reservation SystemDistributed Airline Reservation System
Distributed Airline Reservation Systemamanchaurasia
 
How to use 23c AHF AIOPS to protect Oracle Databases 23c
How to use 23c AHF AIOPS to protect Oracle Databases 23c How to use 23c AHF AIOPS to protect Oracle Databases 23c
How to use 23c AHF AIOPS to protect Oracle Databases 23c Sandesh Rao
 
CS2357_OOAD_CS2357_OOAD_CS2357_OOAD_CS2357_OOAD
CS2357_OOAD_CS2357_OOAD_CS2357_OOAD_CS2357_OOADCS2357_OOAD_CS2357_OOAD_CS2357_OOAD_CS2357_OOAD
CS2357_OOAD_CS2357_OOAD_CS2357_OOAD_CS2357_OOADSheik Mohideen
 
ANPR based Security System Using ALR
ANPR based Security System Using ALRANPR based Security System Using ALR
ANPR based Security System Using ALRAshok Basnet
 
Diagnosing account, enrolment and snapshot problems using the APIs
Diagnosing account, enrolment and snapshot problems using the APIsDiagnosing account, enrolment and snapshot problems using the APIs
Diagnosing account, enrolment and snapshot problems using the APIsMalcolm Murray
 

Similaire à 87683689 ooad-lab-record (20)

Distributed airline reservation system
Distributed airline reservation systemDistributed airline reservation system
Distributed airline reservation system
 
Distributed airline reservation system
Distributed airline reservation systemDistributed airline reservation system
Distributed airline reservation system
 
Online final report
Online final reportOnline final report
Online final report
 
railway_PROJECT.doc on python my SQL connectivity
railway_PROJECT.doc on python my SQL connectivityrailway_PROJECT.doc on python my SQL connectivity
railway_PROJECT.doc on python my SQL connectivity
 
Frd
FrdFrd
Frd
 
The Art of The Event Streaming Application: Streams, Stream Processors and Sc...
The Art of The Event Streaming Application: Streams, Stream Processors and Sc...The Art of The Event Streaming Application: Streams, Stream Processors and Sc...
The Art of The Event Streaming Application: Streams, Stream Processors and Sc...
 
Kakfa summit london 2019 - the art of the event-streaming app
Kakfa summit london 2019 - the art of the event-streaming appKakfa summit london 2019 - the art of the event-streaming app
Kakfa summit london 2019 - the art of the event-streaming app
 
Mvc4 crud operations.-kemuning senja
Mvc4 crud operations.-kemuning senjaMvc4 crud operations.-kemuning senja
Mvc4 crud operations.-kemuning senja
 
Report on online bus management
Report on online bus managementReport on online bus management
Report on online bus management
 
Asp.net Lab manual
Asp.net Lab manualAsp.net Lab manual
Asp.net Lab manual
 
Dot net-course-curriculumn
Dot net-course-curriculumnDot net-course-curriculumn
Dot net-course-curriculumn
 
Build an App with Blindfold - Britt Barak
Build an App with Blindfold - Britt Barak Build an App with Blindfold - Britt Barak
Build an App with Blindfold - Britt Barak
 
Flutter-Dart project || Hotel Management System
Flutter-Dart project || Hotel Management SystemFlutter-Dart project || Hotel Management System
Flutter-Dart project || Hotel Management System
 
CURRENT
CURRENTCURRENT
CURRENT
 
Distributed Airline Reservation System
Distributed Airline Reservation SystemDistributed Airline Reservation System
Distributed Airline Reservation System
 
How to use 23c AHF AIOPS to protect Oracle Databases 23c
How to use 23c AHF AIOPS to protect Oracle Databases 23c How to use 23c AHF AIOPS to protect Oracle Databases 23c
How to use 23c AHF AIOPS to protect Oracle Databases 23c
 
CS2357_OOAD_CS2357_OOAD_CS2357_OOAD_CS2357_OOAD
CS2357_OOAD_CS2357_OOAD_CS2357_OOAD_CS2357_OOADCS2357_OOAD_CS2357_OOAD_CS2357_OOAD_CS2357_OOAD
CS2357_OOAD_CS2357_OOAD_CS2357_OOAD_CS2357_OOAD
 
ANPR based Security System Using ALR
ANPR based Security System Using ALRANPR based Security System Using ALR
ANPR based Security System Using ALR
 
Diagnosing account, enrolment and snapshot problems using the APIs
Diagnosing account, enrolment and snapshot problems using the APIsDiagnosing account, enrolment and snapshot problems using the APIs
Diagnosing account, enrolment and snapshot problems using the APIs
 
arindams cv
arindams cvarindams cv
arindams cv
 

87683689 ooad-lab-record

  • 1. Ex. No.1 ONLINE COURSE RESERVATION Date: AIM To analyze, design and develop code for Online Course Reservation System using Rational Rose software PROBLEM STATEMENT As the head of information systems for a college, you are tasked with developing a new student registration system. The college would like a new client-server system to replace its much older system developed around main frame technology. The new system will allow students to register for courses and view report cards from PCs attached to the campus LAN. Professors will be able to access the system to sign up to teach courses as well as record grades. Students may request a course catalogue containing list of course offering for all college. Information about each course, such as professor, department and prerequisites, will be included to help students make informed decisions. Once the registration process is completed for the student, the registration system sends information to the billing system so that the student can be billed for the course. OVERALL DESCRIPTION The Online Course Reservation System is an integrated system that has four modules as part of it. The four modules are, 1) Login for Student: Using this module student login to the system using his/her unique username and password 2) Student Registration: In this module, the students register his/her details in the system. The details are stored in students table in database 3) Form for Registration: In this module the user can apply for the course by giving the details about the candidate and selecting the quota for the registration. 4) Enquiry about course: In this module the student can enquiry about the various courses in all the colleges. SOFTWARE REQUIRMENTS  Microsoft Visual Basic 6.0  Rational Rose  Microsoft Access HARDWARE REQUIRMENTS  128MB RAM  Pentium III Processor 1
  • 5. COLLABRATION DIAGRAM 1: Login 3: Getdetail 6: Look for course 8: Select 10: Register Student System 15: Print 7: Resut 12: Validate 14: Validation 2: validate 4: Query 9: Update 11: Check 5: Retrive 13: Update Server Database COMPONENT DIAGRAM Register Student View Administ rator Catalog Databas e DEPLOYMENT DIAGRAM Access Database Course Reserv... Adminis Student trator 5
  • 6. IMPLEMENTATION Form1 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=course" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Students" End With rs.MoveFirst While Not rs.EOF If (Text1.Text = rs(1) And Text2.Text = rs(2)) Then a = True Form3.Show Form1.Hide End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter Correct UserName and Password") End If End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub 6
  • 7. Form2 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=Course" rs.ActiveConnection = cn If (Text3.Text = Text4.Text) Then With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Students" End With With rs .AddNew .Fields(0) = Val(Text1.Text) .Fields(1) = Text2.Text .Fields(2) = Text3.Text If (Option1 = True) Then .Fields(3) = Option1.Caption End If If (Option2 = True) Then .Fields(3) = Option2.Caption End If .Fields(4) = Val(Text5.Text) 7
  • 8. .Fields(5) = Text6.Text .Fields(6) = Text7.Text .Fields(7) = Text8.Text .Fields(8) = Text9.Text .Update MsgBox ("Registration Success. Please Login") Form1.Show Unload Me End With Else MsgBox ("Password doesn't match") End If End Sub Private Sub Command2_Click() Unload Me End Sub Public Sub calCutoff() Text9.Text = Val(Text6.Text) / 4 + Val(Text7.Text) / 4 + Val(Text8.Text) / 2 End Sub Private Sub Text6_Change() calCutoff End Sub Private Sub Text7_Change() calCutoff End Sub Private Sub Text8_Change() calCutoff End Sub Form3 Private Sub Command1_Click() Form4.Show Unload Me End Sub 8
  • 9. Private Sub Command2_Click() Form5.Show Unload Me End Sub Form4 Private Sub Command1_Click() Form3.Show Unload Me End Sub Private Sub Text1_Change() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=course" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Colleges" End With rs.MoveFirst While Not rs.EOF If (Val(Text1.Text) = rs(0)) Then Text2.Text = rs(1) Text3.Text = rs(2) Text4.Text = rs(3) Text5.Text = rs(4) 9
  • 10. Text6.Text = rs(5) End If rs.MoveNext Wend End Sub Form5 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=Course" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Reservations" End With With rs .AddNew .Fields(0) = Form1.Text1.Text .Fields(1) = Text1.Text .Fields(2) = Text2.Text .Update MsgBox ("Resrvation Success") End With End Sub Private Sub Command2_Click() Unload Me End Sub 10
  • 11. CONCLUSION: This project was carried out in a sequential manner to design and implement the “Online Course Reservation System”. Thus the outcome of the project is efficient. The Online Course Reservation System caters the varied requirements of the user to perform various options. 11
  • 12. Ex. No. 2 E- TICKETING Date: AIM To analyze, design and develop code E-Ticketing using Rational Rose software. Problem Statement Our project is carried out to develop software for online Railway Reservation System. The software is coded in VB, which is the front end, and it has Back end, which contains information about the reservation and the availability of seats in trains. It has various options like reservation, cancellation and to view details about available seats. Our project mainly simulates the role of a Railway ticket booking officer, in a computerized way. The reservation option enables a person to reserve for a ticket at their home itself. All he/ she has to do is to just login and enter the required details. After this the reservation database is updated with the person details, train name and also the source and destination place. The cancellation option enables the passenger to cancel the tickets that has been already booked by him/her. The availability option prompts the person to enter train number, train name and date of travel. After this the availability database is accessed and available positions are produced. OVERALL DESCRIPTION: The E-Ticketing System is an integrated system that has four modules as part of it. The four modules are, 1) Viewing Train Details: To view the train details. Details can be viewed by giving the train number or Source and Destination 2) Checking Availability of Tickets: To view number of tickets available in the train 3) Reservation of Tickets: To enable the users to reserve the tickets easily 4) Cancellation of Tickets: To enable the users to cancel the tickets by giving PNR No USE CASE DIAGRAM :- 12
  • 16. COLLABRATION DIAGRAM 1: Login to website 4: Look for train details 6: check for availability for seats 8: choose a specific seats 10: pay via credit/debit 12: cancellation process 14: confirm cancellation 16: Logout Passenger Client End 1: pass system:system 3: Acknowledged the login 5: provide corresponding train details 7: Display available seats 9: Display the price scheme 11: Acknowledged pay 13: Ask confirmation of cancellation 2: Check login details 15: updata database Server database:Train database COMPONENT DIAGRAM Cancellat ion Passeng Databas Administ er e rator Reservati on 16
  • 17. DEPLOYMENT DIAGRAM Access Database E- Ticketi... Adminis Passen trator ger IMPLEMENTATION Form1 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 17
  • 18. Unload Me End Sub Private Sub Command4_Click() Unload Me End Sub Form2 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=Ticket" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Reservations" End With With rs .AddNew .Fields(0) = Val(Text1.Text) .Fields(1) = Val(Text2.Text) .Fields(2) = Text3.Text .Fields(3) = Val(Text4.Text) .Update MsgBox ("Reservation Success.") Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" End With 18
  • 19. End Sub Private Sub Command2_Click() Form1.Show Unload Me End Sub Form3 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=Ticket" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Reservations" End With rs.MoveFirst While (Not rs.EOF) If (rs(0) = Val(Text1.Text)) Then rs.Delete rs.Update End If Wend End Sub Private Sub Command2_Click() Form1.Show Unload Me End Sub Form4 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=ticket" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Trains" End With 19
  • 20. rs.MoveFirst While Not rs.EOF If (Text1.Text = rs(2) And Text2.Text = rs(3)) Then Text3.Text = Text3.Text + Str$(rs(0)) + ", " Text3.Text = Text3.Text + rs(1) + ". " a = True End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct Details") End If End Sub Private Sub Command2_Click() Form1.Show Unload Me End Sub CONCLUSION: This project was carried out in a sequential manner to design and implement the “E- Ticketing System”. Thus the outcome of the project is efficient. The E-Ticketing System caters the varied requirements of the user to perform various options. 20
  • 21. Ex No: 3 CREDIT CARD PROCESSING Date: AIM To analyze, design and develop code for Credit Card Processing System using Rational Rose software PROBLEM STATEMENT We envision a banking system that provides the customer holing a bank credit card can make deposits, withdraws, check balances and perform transfer to and from their accounts. Credit card processing will be attractive to banking customer because they allow access to their accounts outside of regular business hours. Participating Banks want to make sure the access to their customer account information is safe and secure transaction information is accurate and reliable. Bank Customer-Want easy, low-cost, remote access to their accounts, but want to be assured that their accounts are secure and not accessible to hackers or other their parties. Bank must be able to handle multiple simultaneous transactions (and possible simultaneous transaction to the same joint account).Bank owning a credit card must be able to determine the cash on hand in the creditcard. The cash in the creditcard must be secure. OVERALL DESCRIPTION The Credit Card Processing System is an integrated system that has four modules as part of it. The four modules are, 1) User Login: Using this module user login to the system using his/her unique username and password 2) Withdraw: The purpose of this module to withdraw money from the account 3) Deposit: The purpose of this module to deposit money to the account 4) Balance Enquiry: Using this module the user can check his/her account balance and the loan amount to pay if any. SOFTWARE REQUIRMENTS  Microsoft Visual Basic 6.0  Rational Rose  Microsoft Access HARDWARE REQUIRMENTS  128MB RAM  Pentium III Processor 21
  • 22. USE CASE DIAGRAM Login Transaction Customer Bank Database Deposit Withdraw Balance Enquiry CLASS DIAGRAM 22
  • 23. ACTIVITY DIAGRAM Login Withdraw Deposit Balnce Enquiry Logout 23
  • 24. SEQUENCE DIAGRAM Customer Credit System Bank Database Login Validate Details Validation Success Login Success Transaction Validate Transaction Transaction Validated Transaction Success Pin Change Update Details Details Updated Pin Change Success 24
  • 25. COLLABRATION DIAGRAM 1: Login 5: Transaction 9: Pin Change Customer Credit System 4: Login Success 8: Transaction Success 12: Pin Change Success 3: Validation Success 7: Transaction Validated 11: Details Updated 2: Validate Details 6: Validate Transaction 10: Update Details Bank Database COMPONENT DIAGRAM Customer Credit Card Databas Bank e DEPLOYMENT DIAGRAM Credit Card Access Customer Processi... Database 25
  • 26. IMPLEMENTATION Form1 Private Sub Command1_Click() Form2.Show Unload Me End Sub Private Sub Command2_Click() Form3.Show Unload Me End Sub Private Sub Command3_Click() Unload Me End Sub Form2 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=credit" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Admin" 26
  • 27. End With rs.MoveFirst While Not rs.EOF If (Text1.Text = rs(1) And Text2.Text = rs(2)) Then a = True Form7.Show Unload Me End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter Correct UserName and Password") End If End Sub Form3 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=credit" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Customers" End With rs.MoveFirst While Not rs.EOF If (Text1.Text = rs(1) And Text2.Text = rs(2)) Then a = True Form4.Show Form3.Hide End If rs.MoveNext Wend 27
  • 28. If (a = False) Then MsgBox ("Enter Correct UserName and Password") End If End Sub Form4 Private Sub Command1_Click() Form5.Show Unload Me End Sub Private Sub Command2_Click() Form6.Show Unload Me End Sub Private Sub Form_Load() Form4.Text1 = Form3.Text1.Text End Sub Form5 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=credit" rs.ActiveConnection = cn 28
  • 29. With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Customers" End With rs.MoveFirst While Not rs.EOF If (rs(1) = Form3.Text1.Text) Then If (Option1 = True) Then rs(3) = rs(3) + Val(Text1.Text) MsgBox ("Transaction Complete") End If If (Option2 = True) Then If ((rs(3) + 50000) > Val(Text1.Text)) Then rs(3) = rs(3) - Val(Text1.Text) MsgBox ("Transaction Complete") Else MsgBox ("Credit Amount Exceeds") End If End If End If rs.MoveNext Wend Text1.Text = "" End Sub Private Sub Command2_Click() Form4.Show Unload Me End Sub Form6 Private Sub Command1_Click() Form4.Show Unload Me End Sub Private Sub Form_Load() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset 29
  • 30. cn.Open "dsn=credit" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Customers" End With rs.MoveFirst While Not rs.EOF If (rs(1) = Form3.Text1.Text) Then Text1.Text = rs(3) End If rs.MoveNext Wend End Sub Form7 Private Sub Command1_Click() Form8.Show Unload Me End Sub Private Sub Command2_Click() Unload Me End Sub Form8 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=Credit" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Customers" 30
  • 31. End With rs.MoveFirst While Not rs.EOF If (Val(Text1.Text) = rs(0)) Then Text2.Text = rs(1) Text3.Text = rs(3) Text4.Text = rs(4) a = True End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct ID") End If End Sub Private Sub Command2_Click() Form7.Show Unload Me End Sub CONCLUSION: This project was carried out in a sequential manner to design and implement the “Credit Card Processing System”. Thus the outcome of the project is efficient. The Credit Card Processing System caters the varied requirements of the user to perform various options. 31
  • 32. Ex No:4 SOFTWARE PERSONNEL MANAGEMENT SYSTEM Date: AIM To analyze, design and develop code for Software Personnel Management System using Rational Rose software PROBLEM STATEMENT To create Software Personnel Management System and processes the intersection between human resource management (HRM) and information technology. The system should merges HRM as a discipline and in particular its basic HR activities and processes with the information technology field. OVERALL DESCRIPTION The Software Personnel Management System is an integrated system that has four modules as part of it. The four modules are, 1) Login: To implement security and only the HR is allowed to access the system using is username and password 2) Adding an Entry: This module is used to insert a new personnel details 3) Search an Entry: This module is used to search the database with reference to Id or Designation 4) View an Entry: This module is used to get the detailed information about an personnel SOFTWARE REQUIRMENTS  Microsoft Visual Basic 6.0  Rational Rose  Microsoft Access HARDWARE REQUIRMENTS  128MB RAM  Pentium III Processor USECASE DIAGRAM Login Add New Entry Database HR Search an Entry View an Entry 32
  • 33. CLASS DIAGRAM ACTIVITY DIAGRAM Login Add New Entry View Entry Search Entry By Id By Designation Logout 33
  • 34. SEQUENCE DIAGRAM HR SPM System SPM Database Login Validate Details Validation Success Login Success Add New Entry Add Details Details Added Entry Added Edit Entry Update Details Entry Edited Details Updated Search Entry Retrive Data Return Data Return Details 34
  • 35. COLLABRATION DIAGRAM 1: Login 5: Add New Entry 9: Edit Entry 13: Search Entry HR SPM System 4: Login Success 8: Entry Added 12: Entry Edited 16: Return Details 3: Validation Success 7: Details Added 11: Details Updated 15: Return Data 2: Validate Details 6: Add Details 10: Update Details 14: Retrive Data SPM Database COMPONENT DIAGRAM HR Personnel Designation DEPLOYMENT DIAGRAM HR SPM Access System Database 35
  • 36. IMPLEMENTATION Form1 Private Sub Command1_Click() Dim a As Boolean a = False If (Text1.Text = "admin" And Text2.Text = "admin") Then a = True Form2.Show Unload Me End If If (a = False) Then MsgBox ("Enter Correct Username and Password") End If End Sub Form2 Private Sub Command1_Click() Form3.Show Unload Me End Sub Private Sub Command2_Click() Form4.Show Unload Me End Sub 36
  • 37. Private Sub Command3_Click() Form5.Show Unload Me End Sub Private Sub Command4_Click() Unload Me End Sub Form3 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=Software" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With 37
  • 38. With rs .AddNew .Fields(0) = Val(Text1.Text) .Fields(1) = Text2.Text If (Option1 = True) Then .Fields(2) = Option1.Caption End If If (Option2 = True) Then .Fields(2) = Option2.Caption End If .Fields(3) = Val(Text3.Text) .Fields(4) = Text4.Text .Fields(5) = Text5.Text .Fields(6) = Text6.Text .Update End With Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" Option1 = False Option2 = False End Sub Form4 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=software" rs.ActiveConnection = cn 38
  • 39. With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With rs.MoveFirst While Not rs.EOF If (Val(Text1.Text) = rs(0)) Then Text3.Text = Text3.Text + rs(1) + ", " Text3.Text = Text3.Text + rs(2) + ", " Text3.Text = Text3.Text + Str$(rs(3)) + ", " Text3.Text = Text3.Text + rs(4) + ", " Text3.Text = Text3.Text + rs(5) + ", " Text3.Text = Text3.Text + rs(6) + ", " a = True End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct Employee ID") End If Text1.Text = "" End Sub Private Sub Command2_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=software" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With rs.MoveFirst While Not rs.EOF If (Text2.Text = rs(4)) Then Text3.Text = Text3.Text + Str$(rs(0)) + ", " Text3.Text = Text3.Text + rs(1) + ", " Text3.Text = Text3.Text + rs(2) + ", " Text3.Text = Text3.Text + Str$(rs(3)) + ", " Text3.Text = Text3.Text + rs(5) + ", " Text3.Text = Text3.Text + rs(6) + ". " a = True End If 39
  • 40. rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct Designation") End If Text2.Text = "" End Sub Private Sub Command3_Click() Form2.Show Unload Me End Sub Form5 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=software" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With 40
  • 41. rs.MoveFirst While Not rs.EOF If (Val(Text1.Text) = rs(0)) Then Text2.Text = rs(1) Text3.Text = rs(2) Text4.Text = rs(3) Text5.Text = rs(4) Text6.Text = rs(5) Text7.Text = rs(6) a = True End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct ID") End If End Sub CONCLUSION: This project was carried out in a sequential manner to design and implement the “Software Personnel Management System”. Thus the outcome of the project is efficient. The Software Personnel Management System caters the varied requirements of the user to perform various options. 41
  • 42. Ex.No: 5 BOOK BANK SYSTEM Date : AIM: To analyze, design and develop code for Book Bank system using Rational Rose software. PROBLEM STATEMENT To create an Book Bank Maintenance System software that will meet the needs of the customer and help them in registering for the book bank ,enquiry about the issue of book, return book and available books. OVERALL DESCRIPTION The Book Bank Maintenance System is an integrated system that has four modules as part of it. The four modules are, 1) Registration for the new user: In this module, the user can register as new user in the database. 2) Issue Book: In this module, it shows the details of issued book to the existing user and it shows the available book to the particular user. 3) Return Book: In this module, shows and modify the database and store the return book from the user and shows the fine amount. SOFTWARE REQUIRMENTS  Microsoft Visual Basic 6.0  Rational Rose  Microsoft Access HARDWARE REQUIRMENTS  128MB RAM  Pentium III Processor 42
  • 43. USECASE DIAGRAM ENTER INTO SYSTEM DATA BASE ADMIN NEWUSER USER EXISTING USER ISSUE STORE RETURN CLASS DIAGRAM 43
  • 44. ACTIVITY DIAGRAM start Login No Yes New user Existing Registration user Book Return search Book Available Books Fine Issue book End 44
  • 45. SEQUENCE DIAGRAM user system data base 1: new user 2: save 3: existing user 4: retrieve 5: display information 6: issue 7: update 8: close 9: save 10: return 11: update 12: close 13: save 45
  • 46. COLLABORATION DIAGRAM 1: new user 3: existing user 6: issue 8: close 10: return 12: close user system 5: display information 2: save 4: retrieve data 7: update base 9: save 11: update 13: save COMPONENT DIAGRAM User BookSearch Database DEPLOYMENT DIAGRAM User Book Access Bank Database 46
  • 47. IMPLEMENTATION Form1 Private Sub Command1_Click() Dim a As Boolean a = False If (Text1.Text = "admin" And Text2.Text = "admin") Then a = True Form2.Show Unload Me End If If (a = False) Then MsgBox ("Enter Correct Username and Password") End If End Sub Form2 Private Sub Command1_Click() Form3.Show Unload Me End Sub Private Sub Command2_Click() Form4.Show Unload Me End Sub 47
  • 48. Private Sub Command3_Click() Form5.Show Unload Me End Sub Private Sub Command4_Click() Form6.Show Unload Me End Sub Private Sub Command5_Click() Unload Me End Sub Form3 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=BookBank" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Students" End With With rs .AddNew .Fields(0) = Val(Text1.Text) .Fields(1) = Text2.Text .Update End With Text1.Text = "" End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub 48
  • 49. Form4 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=BookBank" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Books" End With With rs .AddNew .Fields(0) = Val(Text1.Text) .Fields(1) = Text2.Text .Fields(2) = Val(Text3.Text) .Update End With Text1.Text = "" Text2.Text = "" Text3.Text = "" End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub 49
  • 50. Form5 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs1 As New ADODB.Recordset Dim rs2 As New ADODB.Recordset Dim a As Boolean Dim b As Boolean a = False b = False cn.Open "dsn=BookBank" rs1.ActiveConnection = cn rs2.ActiveConnection = cn With rs1 .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Students" End With With rs2 .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Books" End With rs1.MoveFirst While Not rs1.EOF If (Val(Text1.Text) = rs1(0)) Then a = True rs2.MoveFirst While Not rs2.EOF If (Val(Text2.Text) = rs2(0)) Then b = True If (rs2(2) > 0) Then rs2(2) = rs2(2) - 1 rs2.Update MsgBox "Book is Issued" Else MsgBox "No copies of books is avilable" 50
  • 51. End If End If rs2.MoveNext Wend End If rs1.MoveNext Wend Text1.Text = "" Text2.Text = "" If (a = False) Then MsgBox ("Enter correct Student ID") End If If (a = True And b = False) Then MsgBox ("Enter correct Book ID") End If End Sub Private Sub Command2_Click() Dim cn As New ADODB.Connection Dim rs1 As New ADODB.Recordset Dim rs2 As New ADODB.Recordset Dim a As Boolean Dim b As Boolean a = False b = False cn.Open "dsn=BookBank" rs1.ActiveConnection = cn rs2.ActiveConnection = cn With rs1 .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Students" End With With rs2 .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Books" End With rs1.MoveFirst While Not rs1.EOF If (Val(Text1.Text) = rs1(0)) Then a = True rs2.MoveFirst While Not rs2.EOF If (Val(Text2.Text) = rs2(0)) Then 51
  • 52. b = True If (rs2(2) > 10) Then MsgBox "Book is Renewed" Else MsgBox "Please return the Book." End If End If rs2.MoveNext Wend End If rs1.MoveNext Wend Text1.Text = "" Text2.Text = "" If (a = False) Then MsgBox ("Enter correct Student ID") End If If (a = True And b = False) Then MsgBox ("Enter correct Book ID") End If End Sub Private Sub Command3_Click() Form2.Show Unload Me End Sub Form6 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs1 As New ADODB.Recordset Dim rs2 As New ADODB.Recordset Dim a As Boolean Dim b As Boolean a = False b = False 52
  • 53. cn.Open "dsn=BookBank" rs1.ActiveConnection = cn rs2.ActiveConnection = cn With rs1 .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Students" End With With rs2 .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Books" End With rs1.MoveFirst While Not rs1.EOF If (Val(Text1.Text) = rs1(0)) Then a = True rs2.MoveFirst While Not rs2.EOF If (Val(Text2.Text) = rs2(0)) Then b = True rs2(2) = rs2(2) + 1 MsgBox ("Book is Returned") End If rs2.MoveNext Wend End If rs1.MoveNext Text1.Text = "" Text2.Text = "" Wend If (a = False) Then MsgBox ("Enter correct Student ID") End If If (a = True And b = False) Then MsgBox ("Enter correct Book ID") End If End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub CONCLUSION: This project was carried out in a sequential manner to design and implement the “Book Bank System”. Thus the outcome of the project is efficient. The Book Bank System caters the varied requirements of the user to perform various options. 53
  • 54. Ex.No: 6 EXAM REGISTRATION SYSTEM Date : AIM: To analyze, design and develop code for Exam Registration System using Rational Rose software. PROBLEM STATEMENT To create an Exam registration software that will meet the needs of the applicant and help them in registering for the exam ,enquiry about the registered subject ,modification in database and cancellation for the registered project. OVERALL DESCRIPTION The Exam Registration System is an integrated system that has four modules as part of it. The four modules are, 1) Registration for the exam: In this module, the user can select the subject to register for the exam, Enquiry about the registered subject, Modification in the student database, canceling the registered subject 2) Form for Registration: In this module the user can apply for the exam by giving the details about the candidate and selecting the subject for the registration. 3) Modification in the Database: In this module the user can change the data’s like the phone number, address can be done. 4) Cancellation for the registered subject: In this module the user can cancel their name which is registered for the exam. SOFTWARE REQUIRMENTS  Microsoft Visual Basic 6.0  Rational Rose  Microsoft Access HARDWARE REQUIRMENTS  128MB RAM  Pentium III Processor 54
  • 55. USECASE DIAGRAM: register for exam student (from use case) (from actor) databse (from actor) select the exam (from use case) cancel the exam registration enter datas (from use case) (from use case) maintain student info modify databse (from use case) (from use case) CLASS DIAGRAM: 55
  • 56. ACTIVITY DIAGRAM: enter into system cancel regisrtation select the apply the exam subject modify databse SEQUENCE DIAGRAM: student exam databse registration enter the datas select the subject apply for the exam generation of registration id note id modify databse cancel the subject registration 56
  • 57. COLLABRATION DIAGRAM: 1: enter the datas student 2: select the subject 3: apply for the exam 6: note id exam registration 7: modify databse 8: cancel the subject registration 5: generation of registration id 4: databse COMPONENT DIAGRAM: DEPLOYMENT DIAGRAM: exam student registration Databse 57
  • 58. IMPLEMENTATION Form1 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=exam" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Students" End With rs.MoveFirst While Not rs.EOF If (Text1.Text = rs(1) And Text2.Text = rs(2)) Then a = True Form3.Show Form1.Hide End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter Correct UserName and Password") End If End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub 58
  • 59. Form2 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=Exam" rs.ActiveConnection = cn If (Text3.Text = Text4.Text) Then With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Students" End With With rs .AddNew .Fields(0) = Val(Text1.Text) .Fields(1) = Text2.Text .Fields(2) = Text3.Text If (Option1 = True) Then .Fields(3) = Option1.Caption End If If (Option2 = True) Then .Fields(3) = Option2.Caption End If .Fields(4) = Val(Text5.Text) .Fields(5) = Text6.Text .Fields(6) = Text7.Text .Fields(7) = Text8.Text .Update MsgBox ("Registration Success. Please Login") Form1.Show Unload Me End With 59
  • 60. Else MsgBox ("Password doesn't match") End If End Sub Private Sub Command2_Click() Unload Me End Sub Form3 Private Sub Command1_Click() Form4.Show Unload Me End Sub Private Sub Command2_Click() Form5.Show Unload Me End Sub Private Sub Command3_Click() Unload Me End Sub Form4 Private Sub Command1_Click() Form3.Show Unload Me End Sub Private Sub Text1_Change() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=exam" rs.ActiveConnection = cn 60
  • 61. With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Exams" End With rs.MoveFirst While Not rs.EOF If (Val(Text1.Text) = rs(0)) Then Text2.Text = rs(1) Text3.Text = rs(2) Text4.Text = rs(3) End If rs.MoveNext Wend End Sub Form5 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset 61
  • 62. cn.Open "dsn=Exam" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Exams" End With rs.MoveFirst While Not rs.EOF If (Val(Text1.Text) = rs(0)) Then rs(4) = rs(4) + ", " + Form1.Text1.Text rs.Update a = True MsgBox "Exam Applied" End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct Exam ID") End If End Sub Private Sub Command2_Click() Unload Me End Sub CONCLUSION: This project was carried out in a sequential manner to design and implement the “Exam Registration System”. Thus the outcome of the project is efficient. The Exam Registration System caters the varied requirements of the user to perform various options. 62
  • 63. Ex.No:7 STOCK MAINTENANCE SYSTEM Date : AIM: To analyze, design and develop code for Stock maintenance system using Rational Rose software. PROBLEM DOMAIN: Stock maintenance system is a real time application used in the merchant’s day to day system. This is a database to store the transaction that takes places between the Manufacturer, Dealer and the Shop Keeper that includes stock inward and stock outward with reference to the dealer. Here we assume our self as the Dealer and proceed with the transaction as follows: The Manufacturer is the producer of the items and it contains the necessary information of the item such as price per item, Date of manufacture, best before use, Number of Item available and their Company Address. The Dealer is the secondary source of an Item and he purchases Item from the manufacturer by requesting the required Item with its corresponding Company Name and the Number of Items required. OVERALL DESCRIPTION: 1) Login Form: Authenticate the user and administrator. 2) Department Selection Form: This form will give the options for selecting the department to get knowledge about the conference. 3) Conference view Form: This form contains the details about the conferences are conducting by various institutions and we can see the date and time for the conference. 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:  Microsoft Visual Basic 6.0  Rational Rose  Microsoft Access. HARDWARE REQURIMENTS: 128MB RAM  Pentium III Processor 63
  • 64. USECASE DIAGRAM: Sales Purchase Company name Company name DEALER SHOP KEEPER Price/item Price/Item PRODUCER Items ordered Items ordered Total price Total price 64
  • 66. ACTIVITY DIAGRAM: Inventory System Select from the Menu Purchase Sales Stock Exit Display the Transaction Details Company Name Price/Item No of Items ordered Total Price If Availability > No of Items Ordered Displays Insufficient Displays price no of items of Items 66
  • 67. SEQUENCE DIAGRAM: PRODUCER DEALER SHOPKEEPER 1.PURCHASE 1.SALES 2.COMPANY NAME 2.COMPANY NAME 3.PRICE/ITEM 3.PRICE/ITEM 4.NO OF ITEMS ORDERED 4.NO OF ITEMS ORDERED 5.TOTAL PRICE 5.CHECKING WITH AVAILABILITY 6.ITEMS INSUFFICIENT/TOTAL PRICE 67
  • 68. COLLABORATION DIAGRAM: 5: 3.PRICE/ITEM 9: 5.TOTAL PRICE PRODUC DEALER ER 1: 1.PURCHASE 3: 2.COMPANY NAME 7: 4.NO OF ITEMS ORDERED 4: 2.COMPANY NAME 8: 4.NO OF ITEMS ORDERED 10: 5.CHECKING WITH AVAILABILITY 2: 1.SALES 6: 3.PRICE/ITEM 11: 6.ITEMS INSUFFICIENT/TOTAL PRICE SHOPKEE PER COMPONENT DIAGRAM: ShopKeeper Dealer Manufacturer DEPLOYMENT DIAGRAM: ShopKe Stock Access eper Maint... Database 68
  • 69. IMPLEMENTATION: Form1 Private Sub Command1_Click() Dim a As Boolean a = False If (Text1.Text = "admin" And Text2.Text = "admin") Then a = True Form2.Show Unload Me End If If (a = False) Then MsgBox ("Enter Correct Username and Password") End If End Sub Form2 Private Sub Command1_Click() Form3.Show Unload Me End Sub Private Sub Command2_Click() Form4.Show Unload Me End Sub 69
  • 70. Private Sub Command3_Click() Form5.Show Unload Me End Sub Private Sub Command4_Click() Unload Me End Sub Form3 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=Stock" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Stock" End With With rs .AddNew .Fields(0) = Val(Text1.Text) .Fields(1) = Text2.Text .Fields(2) = Text3.Text .Fields(3) = Val(Text4.Text) .Update End With MsgBox ("New Record Added") Text1.Text = "" Text2.Text = "" 70
  • 71. Text3.Text = "" Text4.Text = "" End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub Form4 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=Stock" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Stock" End With rs.MoveFirst While Not rs.EOF If (Val(Text1.Text) = rs(0)) Then Text2.Text = rs(1) Text3.Text = rs(2) Text4.Text = rs(3) a = True End If 71
  • 72. rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct ID") End If End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub Form5 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=Stock" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Stock" End With rs.MoveFirst While Not rs.EOF If (Val(Text1.Text) = rs(0)) Then With rs .Fields(0) = Val(Text1.Text) 72
  • 73. .Fields(1) = Text2.Text .Fields(2) = Text3.Text .Fields(3) = Val(Text4.Text) .Update End With MsgBox ("Record Updated") End If rs.MoveNext Wend Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub Private Sub Text1_Change() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=Stock" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Stock" End With rs.MoveFirst While Not rs.EOF If (Val(Text1.Text) = rs(0)) Then Text2.Text = rs(1) Text3.Text = rs(2) Text4.Text = rs(3) a = True End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct ID") End If End Sub 73
  • 74. CONCLUSION: This project was carried out in a sequential manner to design and implement the “Stock Maintenance System”. Thus the outcome of the project is efficient. The Stock Maintenance System caters the varied requirements of the user to perform various options. 74
  • 75. Ex.No:8 E-BOOK MANAGEMENT SYSTEM Date : AIM: To analyze, design and develop code for E-Book Management system using Rational Rose software. PROBLEM STATEMENT To create an E-Book Management system software that will meet the needs of the customer and help them in registering for the book bank, enquiry about the issue of book, return book and available books. OVERALL DESCRIPTION The E-Book Management System is an integrated system that has four modules as part of it. The four modules are, 1) Add Book Details: In this module, the user can enter details about new book. 2) Edit Book Details: In this module, the user can edit details about any book. 3) View Book Details: In this module, the user can view details about books. 4) Search Book Details: In this module, the user can search details about books by Author and Id SOFTWARE REQUIRMENTS  Microsoft Visual Basic 6.0  Rational Rose  Microsoft Access HARDWARE REQUIRMENTS  128MB RAM  Pentium III Processor 75
  • 76. USECASE DIAGRAM New Book Details Edit Book Details User Database View Book Details Search Book Details CLASS DIAGRAM 76
  • 77. ACTIVITY DIAGRAM Login View Book Edit Book Search Book Details Details Details By Publication By Author 77
  • 78. SEQUENCE DIAGRAM User System Database Add Book Details Insert Details Successfully Inserted Details Added Search Details Retrive Details Send Details Send Details Edit Details Update Details Udate Success Edition Success 78
  • 79. COLLABORATION DIAGRAM 1: Add Book Details 5: Search Details 9: Edit Details User System 4: Details Added 8: Send Details 12: Edition Success 3: Successfully Inserted 7: Send Details 11: Udate Success 2: Insert Details 6: Retrive Details 10: Update Details Database COMPONENT DIAGRAM User Book Database DEPLOYMENT DIAGRAM User E-Book Access Manageme... Database 79
  • 80. IMPLEMENTATION Form1 Private Sub Command1_Click() Dim a As Boolean a = False If (Text1.Text = "admin" And Text2.Text = "admin") Then a = True Form2.Show Unload Me End If If (a = False) Then MsgBox ("Enter Correct Username and Password") End If End Sub Form2 Private Sub Command1_Click() Form3.Show Unload Me End Sub Private Sub Command2_Click() 80
  • 81. Form4.Show Unload Me End Sub Private Sub Command3_Click() Form5.Show Unload Me End Sub Private Sub Command4_Click() Unload Me End Sub Form3 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=ebook" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With rs.MoveFirst While Not rs.EOF If (Val(Text1.Text) = rs(0)) Then Text2.Text = rs(1) Text3.Text = rs(2) Text4.Text = rs(3) 81
  • 82. a = True End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct ID") End If End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub Form4 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=EBook" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With With rs .AddNew .Fields(0) = Val(Text1.Text) .Fields(1) = Text2.Text 82
  • 83. .Fields(2) = Text3.Text .Fields(3) = Text4.Text .Update End With Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub Form5 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=ebook" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With rs.MoveFirst 83
  • 84. While Not rs.EOF If (Text1.Text = rs(2)) Then Text3.Text = Text3.Text + Str$(rs(0)) + ", " Text3.Text = Text3.Text + rs(1) + ", " Text3.Text = Text3.Text + rs(3) + ". " a = True End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct Author Name") End If End Sub Private Sub Command2_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=ebook" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With rs.MoveFirst While Not rs.EOF If (Text2.Text = rs(3)) Then Text3.Text = Text3.Text + Str$(rs(0)) + ", " Text3.Text = Text3.Text + rs(1) + ", " Text3.Text = Text3.Text + rs(2) + ". " a = True End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct Publisher Name") End If End Sub Private Sub Command3_Click() Form2.Show Unload Me End Sub 84
  • 85. CONCLUSION: This project was carried out in a sequential manner to design and implement the “E-Book System”. Thus the outcome of the project is efficient. The E-Book System caters the varied requirements of the user to perform various options. 85
  • 86. Ex.No: 9 RECRUITMENT SYSTEM Date: AIM To analyze, design and develop code for Recruitment System using Rational Rose software PROBLEM STATEMENT Recruitment System is used to process the applicant easily. It also contains search filters to filters the applicants based on age, gender, experience, skills etc. It is mainly used by HR personnel in corporates to efficiently analyze the applications OVERALL DESCRIPTION The E-Book Management System is an integrated system that has four modules as part of it. The four modules are, 1) Register: In this module, the user can register his/her details to use in the system. 2) Search Jobs: In this module, the user can search jobs. 3) Apply Jobs: In this module, the user can apply jobs. 4) Edit details: In this module, the user can search details about books by Author and Id SOFTWARE REQUIRMENTS  Microsoft Visual Basic 6.0  Rational Rose  Microsoft Access HARDWARE REQUIRMENTS  128MB RAM  Pentium III Processor 86
  • 87. USECASE DIAGRAM: Login Register Employee Database Search Jobs Apply Jobs CLASS DIAGRAM: 87
  • 88. ACTIVITY DIAGRAM: Login Search jobs Apply Jobs Edit Details Logout 88
  • 89. SEQUENCE DIAGRAM User Recruitment Database Syste Login Validate details Valid user Login sucess Search Jobs Retrive Details Send Details Show Details Apply Jobs Make Entry Entry Successful Job Applied Edit Details Update Details Updation Success Details Edited 89
  • 90. COLLABORATION DIAGRAM: 1: Login 5: Search Jobs 9: Apply Jobs 13: Edit Details User Recruitment Syste 4: Login sucess 8: Show Details 12: Job Applied 16: Details Edited 3: Valid user 7: Send Details 11: Entry Successful 15: Updation Success 2: Validate details 6: Retrive Details 10: Make Entry 14: Update Details Database COMPONENT DIAGRAM: User Application Employer DEPLOYMENT DIAGRAM: Employee Recruitment Access System Databe 90
  • 91. IMPLEMENTATION: Form1: Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=recruit" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Applicants" End With rs.MoveFirst While Not rs.EOF If (Text1.Text = rs(1) And Text2.Text = rs(2)) Then a = True Form3.Show Form1.Hide End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter Correct UserName and Password") End If End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub 91
  • 92. Form2 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=Recruit" rs.ActiveConnection = cn If (Text3.Text = Text4.Text) Then With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Applicants" End With With rs .AddNew .Fields(0) = Val(Text1.Text) .Fields(1) = Text2.Text .Fields(2) = Text3.Text If (Option1 = True) Then .Fields(3) = Option1.Caption End If If (Option2 = True) Then .Fields(3) = Option2.Caption 92
  • 93. End If .Fields(4) = Val(Text5.Text) .Fields(5) = Text6.Text .Fields(6) = Text7.Text .Update MsgBox ("Registration Success. Please Login") Form1.Show Unload Me End With Else MsgBox ("Password doesn't match") End If End Sub Private Sub Command2_Click() Unload Me End Sub Form3 Private Sub Command1_Click() Form4.Show Unload Me End Sub Private Sub Command2_Click() Form5.Show Unload Me End Sub Private Sub Form_Load() Text1.Text = Form1.Text1.Text End Sub 93
  • 94. Form4 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=recruit" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Jobs" End With rs.MoveFirst While Not rs.EOF If (Text1.Text = rs(1)) Then Text3.Text = Text3.Text + Str$(rs(0)) + ", " Text3.Text = Text3.Text + rs(2) + ", " Text3.Text = Text3.Text + rs(3) + ". " a = True End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct Company Name") End If End Sub Private Sub Command2_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False 94
  • 95. cn.Open "dsn=recruit" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Jobs" End With rs.MoveFirst While Not rs.EOF If (Text2.Text = rs(2)) Then Text3.Text = Text3.Text + Str$(rs(0)) + ", " Text3.Text = Text3.Text + rs(1) + ", " Text3.Text = Text3.Text + rs(3) + ". " a = True End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct Company Name") End If End Sub Private Sub Command3_Click() Form3.Show Unload Me End Sub Form5 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=recruit" rs.ActiveConnection = cn 95
  • 96. With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Jobs" End With rs.MoveFirst While Not rs.EOF If (Val(Text1.Text) = rs(0)) Then rs(4) = rs(4) + ", " + Form1.Text1.Text rs.Update a = True MsgBox "Job Applied" End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct Company Name") End If End Sub CONCLUSION: This project was carried out in a sequential manner to design and implement the “Recruitment System”. Thus the outcome of the project is efficient. The Recruitment System caters the varied requirements of the user to perform various options. 96
  • 97. Ex No: 10 ATM SYSTEM Date: AIM To analyze, design and develop code for Atm System using Rational Rose software PROBLEM STATEMENT We envision a banking system that provides the customer holing a bank credit card can make deposits, withdraws, check balances and perform transfer to and from their accounts. Atm card processing will be attractive to banking customer because they allow access to their accounts outside of regular business hours. Participating Banks want to make sure the access to their customer account information is safe and secure transaction information is accurate and reliable. Bank Customer-Want easy, low-cost, remote access to their accounts, but want to be assured that their accounts are secure and not accessible to hackers or other their parties. Bank must be able to handle multiple simultaneous transactions (and possible simultaneous transaction to the same joint account).Bank owning a credit card must be able to determine the cash on hand in the atm. The cash in the at must be secure. OVERALL DESCRIPTION The Atm System is an integrated system that has four modules as part of it. The four modules are, 1) User Login: Using this module user login to the system using his/her unique username and password 2) Withdraw: The purpose of this module to withdraw money from the account 3) Deposit: The purpose of this module to deposit money to the account 4) Balance Enquiry: Using this module the user can check his/her account balance and the loan amount to pay if any. SOFTWARE REQUIRMENTS  Microsoft Visual Basic 6.0  Rational Rose  Microsoft Access HARDWARE REQUIRMENTS  128MB RAM  Pentium III Processor 97
  • 98. USE CASE DIAGRAM Login Transaction User Database Withdraw Balance Enquiry CLASS DIAGRAM 98
  • 99. ACTIVITY DIAGRAM Login Pin Change Withdraw Balance Enquiry Logout 99
  • 100. SEQUENCE DIAGRAM User System Database Login Validate details Valid user Login sucess Withdraw Reduce Amount New Balance Send Cash Balance Enquiry Retrive Balance Return Balance Return details Pin Change Update Details Updation Success Pin Changed 100
  • 101. COLLABRATION DIAGRAM 1: Login 5: Withdraw 9: Balance Enquiry 13: Pin Change User System 4: Login sucess 8: Send Cash 12: Return details 16: Pin Changed 3: Valid user 7: New Balance 11: Return Balance 15: Updation Success 2: Validate details 6: Reduce Amount 10: Retrive Balance 14: Update Details Database COMPONENT DIAGRAM Customer ATM Card Databas Bank e DEPLOYMENT DIAGRAM User ATM Access System Databe 101
  • 102. IMPLEMENTATION Form1 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As String Dim b As Integer Dim c As Boolean c = False cn.Open "dsn=atm" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With rs.MoveFirst While Not rs.EOF a = rs.Fields("AccNO") b = rs.Fields("PIN") If (Text1.Text = a And Val(Text2.Text) = b) Then c = True Form2.Show Form1.Hide End If rs.MoveNext Wend If (c = False) Then MsgBox ("Enter Correct AccNo and PIN") End If End Sub 102
  • 103. Form2 Private Sub Command1_Click() Form3.Show Unload Me End Sub Private Sub Command2_Click() Form4.Show Unload Me End Sub Private Sub Command3_Click() Form5.Show Unload Me End Sub Private Sub Command4_Click() Unload Form1 Unload Me End Sub Private Sub Form_Load() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As String cn.Open "dsn=atm" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With 103
  • 104. rs.MoveFirst While Not rs.EOF a = rs.Fields("AccNO") If (Form1.Text1.Text = a) Then Text1.Text = rs.Fields("UserName") Text2.Text = a End If rs.MoveNext Wend End Sub Form3 Private Sub Command1_Click() Form2.Show Unload Me End Sub Private Sub Command2_Click() Unload Form1 Unload Me End Sub Private Sub Form_Load() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As String cn.Open "dsn=atm" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With rs.MoveFirst While Not rs.EOF a = rs.Fields("AccNO") 104
  • 105. If (Form1.Text1.Text = a) Then Text1.Text = rs.Fields("Balance") End If rs.MoveNext Wend End Sub Form4 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As String Dim b As Integer Dim c As Boolean c = False cn.Open "dsn=atm" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With rs.MoveFirst While Not rs.EOF a = rs.Fields("AccNO") If (Form1.Text1.Text = a) Then If (Val(Text1.Text) = rs.Fields("PIN")) Then If (Val(Text2.Text) = Val(Text3.Text)) Then rs("PIN") = Val(Text2.Text) rs.Update MsgBox ("Pin Change Success") c = True Text1.Text = "" Text2.Text = "" 105
  • 106. Text3.Text = "" End If End If End If rs.MoveNext Wend If (c = False) Then MsgBox ("Pin Change not Success") End If End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub Private Sub Command3_Click() Unload Form1 Unload Me End Sub Form5 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As String Dim b As Long Dim c As Boolean c = False cn.Open "dsn=atm" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With 106
  • 107. rs.MoveFirst While Not rs.EOF a = rs.Fields("AccNO") b = rs.Fields("Balance") If (a = Form1.Text1.Text And Val(Text1.Text) < b) Then rs.Fields("Balance") = b - Val(Text1.Text) c = True MsgBox ("Collect the cash") Text1.Text = "" End If rs.MoveNext Wend If (c = False) Then MsgBox ("Not sufficient Balance") End If End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub Private Sub Command3_Click() Unload Form1 Unload Me End Sub CONCLUSION: This project was carried out in a sequential manner to design and implement the “ATM System”. Thus the outcome of the project is efficient. The ATM System caters the varied requirements of the user to perform various options. 107
  • 108. Ex No:11 PAYROLL SYSTEM Date: AIM: To analyze, design and develop code for Payroll system using Rational Rose software. PROBLEM STATEMENT To compute the gross pay of a person using the Payroll system software and to add new details to the existing database and update it, using visual basic 6.0 and MS Access 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. 2) Pay slip form: Fill in the form with details such as employee id, employee name, department, experience, and basic pay in the text boxes and submit using CALCULATE command button Update it in the database using UPDATE command button. 3) Database form: Updated database would be present. We can search for the required Pay details using SEARCH command button SOFTWARE REQURIEMENTS:  Microsoft Visual Basic 6.0  Rational Rose  Microsoft Access. HARDWARE REQURIMENTS: 128MB RAM Pentium III Processor USECASE DIAGRAM 108
  • 110. ACTIVITY DIAGRAM Payroll Employee Salary Detail Emp payroll Official detail Basic PF Other 110
  • 111. SEQUENCE DIAGRAM Employee System Employee Database Login Valid Enter Employee Details Store In Database Return Details Display details Ask For Salary Slip Ask For Basic Pay,PF Return Details Calculate & Display Salary Exit 111
  • 112. COLLABRATION DIAGRAM 1: Login 3: Enter Employee Details 7: Ask For Salary Slip Employee System 2: Valid 6: Display details 10: Calculate & Display Salary 11: Exit 5: Return Details 9: Return Details 4: Store In Database 8: Ask For Basic Pay,PF Employee Database COMPONENT DIAGRAM Employee PayRoll Database DEPLOYMENT DIAGRAM: Employee PayRoll Access System Databe 112
  • 113. IMPLEMENTATION: Form1: Private Sub Command1_Click() Dim a As Boolean a = False If (Text1.Text = "admin" And Text2.Text = "admin") Then a = True Form2.Show Unload Me End If If (a = False) Then MsgBox ("Enter Correct Username and Password") End If End Sub Form2 Private Sub Command1_Click() Form3.Show Unload Me End Sub 113
  • 114. Private Sub Command2_Click() Form4.Show Unload Me End Sub Private Sub Command3_Click() Form5.Show Unload Me End Sub Private Sub Command4_Click() Unload Me End Sub Form3 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=payroll" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic 114
  • 115. .Open "select * from Details" End With rs.MoveFirst While Not rs.EOF If (Val(Text1.Text) = rs(0)) Then Text2.Text = rs(1) Text3.Text = rs(2) Text4.Text = rs(3) Text5.Text = rs(4) Text6.Text = rs(5) Text7.Text = rs(6) Text8.Text = rs(7) a = True End If rs.MoveNext Wend If (a = False) Then MsgBox ("Enter correct ID") End If End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub Private Sub Command3_Click() Unload Me End Sub Form4 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset cn.Open "dsn=payroll" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With With rs .AddNew 115
  • 116. .Fields(0) = Text1.Text .Fields(1) = Text2.Text .Fields(2) = Text3.Text .Fields(3) = Val(Text4.Text) .Fields(4) = Val(Text5.Text) .Fields(5) = Val(Text6.Text) .Fields(6) = Val(Text7.Text) .Fields(7) = Val(Text8.Text) .Update End With Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" Text7.Text = "" Text8.Text = "" End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub Private Sub Command3_Click() Unload Me End Sub 116
  • 117. Private Sub Text3_Change() Text4.Text = Val(Text3.Text) * 0.25 Text5.Text = Val(Text3.Text) * 0.1 Text6.Text = Val(Text3.Text) * 0.12 Text8.Text = Val(Text3.Text) + Val(Text4.Text) + Val(Text5.Text) - Val(Text6.Text) + Val(Text7.Text) End Sub Form5 Private Sub Command1_Click() Dim cn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim a As Boolean a = False cn.Open "dsn=payroll" rs.ActiveConnection = cn With rs .CursorType = adOpenStatic .CursorLocation = adUseClient .LockType = adLockOptimistic .Open "select * from Details" End With rs.MoveFirst While Not rs.EOF If (Val(Text1.Text) = rs(0)) Then rs.Delete rs.Update a = True End If rs.MoveNext Wend 117
  • 118. If (a = False) Then MsgBox ("Enter correct ID") End If End Sub Private Sub Command2_Click() Form2.Show Unload Me End Sub Private Sub Command3_Click() Unload Me End Sub CONCLUSION: This project was carried out in a sequential manner to design and implement the “Payroll System”. Thus the outcome of the project is efficient. The Payroll System caters the varied requirements of the user to perform various options. 118