All Codings

Embed Size (px)

Citation preview

  • 8/6/2019 All Codings

    1/68

    CASE TOOL: Rational Suite Enterprise

    Object Oriented System Development Cycle:

    1. Planning - Rational Administrator

    2. Analysis - Rational RequisitePro

    3. Design - Rational Rose

    4. Implementation

    5. Testing - Rational Robot

    6. Documentation - Rational SODA

    PLANNING - Problem Analysis, project planning and through study of the problem.Creating a project using Rational Administrator

    Task 1: Create a new project by Using Rational Administrator

    Procedure:

    1. Choose Rational Administrator from Rational Suite Enterprise.2. Right click on the projects tree and creates a new project.

    3. For the new project created, the assets for requirement ie. RequisitePro and test

    Data stork assets need to be created.4. Once the assets have created, the project in the Rational Administrator is

    connected to RequisitePro and Test Data store.

    5. The template used for creating requirements in Use Case Template.

    6. Once the project is available with administrator, it can be connected to any othertool from there.

    Now a New Project has been created.

    Task 2: Creations of New Users and New Groups

    Procedure:

    1. From the Rational Administrator, the Trest Data Store connected to createdproject contains trees for Test Users and Groups.

    2. Any New users could be inserted by right clicking the trees correspondingly.

    3. Each user should be assigned to cache or more groups that is mandatory only theprivileges of groups those users privileges.

    4. The groups can also be assigned Administrative Privileges.

    5. Now, after assigning the users to groups the project is full fledged assets to

    proceed with requirement analysis.

  • 8/6/2019 All Codings

    2/68

    ANALYSIS- Software Requirement Analysis

    Steps involved and select option in the following sequence manner:

    Task 3: To analyze a project created in administrator for its requirements using Rational

    RequisitePro.

    Procedure:

    1. RequisitcPro is an efficient tool for requirement analysis.

    2. Open the project created in Rational Administrator in the Exclusive mode.3. Choose the requirement types for the project.

    4. Configure the documents and the document types.

    5. Confirm the attributes of the project.6. Finally, enumerate the requirements that are satisfied by the project selected.

    Now a project created in Rational Administrator has been opened in RequisitePro forrequirement analysis.

    Task 4: To create a new package, document and requirement views for the automated

    created project.

    Procedure:

    1. A package calls package name is created for the project this package holds all

    the documents and views necessary for the users verification.

    2. Under the package package name a document called document names created.

    This is used to preserve all the revision history of the project.3. Under document document name; four different kinds of views are created for

    the requirements.

    4. The views provide an inherent list of the requirement attributes and thetraceability of requirements.

    Now new package, document and views are created for requirements of automated

    project.

    DESIGN-Unified Modeling Language (UML) Notations

    Steps involved and select option in the following sequence manner:

    Design model diagrams:

    1. Class Diagram2. Use Case Diagram

    3. Activity Diagram

    4. Sequence Diagram5. Collaboration Diagram

  • 8/6/2019 All Codings

    3/68

    Class Diagram:

    It represents the class structure of a system including the relationships between classes

    and inheritance structure.

    The Class diagram is used to describe the externally observed behaviour of the system.In

    Class diagrams:

    A Class is drawn as rectangle with three components.

    The top component holds the name of the class.

    The next holds the attributes of the class.

    The last holds the operations of the class.

    Further the class could be associated with multiplicity, generalizations and

    associations.

    Steps involved and select option in the following sequence mannar:

    Use components and draw diagrams:

    Class Name

    Attributes

    Operations

  • 8/6/2019 All Codings

    4/68

    Use Case Diagram:

    A graph of actors, a set of use cases enclosed by a system boundary communication

    (participation) associations between the actors and the use cases and generalizationamong the use cases.

    In use case diagrams the following conventions are used:

    Use Cases are represented as ovals.

    The actors are repreesentented as figures or boxes with external actor to the

    left of the use case and internal actors to the right.

    The interactions between the use cases are noted by the dotted lines.

    The interactions between the cases and the actors are noted by block lines.

    Procedure:

    1. Identify distinct actors and use cases.(any real situation)2. Place external actors to left of use case and internal actors to the right. Relation

    between actor and uses is represented as block arrows and between use cases as

    dashed arrows.3. In case of association between use cases, explicitly verify the association type viz,

    dervies, users, extends, includes.

    1. Go to menu2. Browse

    3. Use Case Diagram

    4. Use Case View

    5. Ok

    Select Actor-internal(Left),External(Right)

    Use Case

    Dependency

  • 8/6/2019 All Codings

    5/68

    Activity Diagram:

    A variation or special case of a state machine in which the states are activitiesrepresentation the performance of operations and the transitions are triggered by the

    completion of operations.

    The purpose of an activity diagram is providing a view of flows and what is going oninside a use case or among several use classes. In Activity Diagram:

    The states are activities representing the performance of operations and the

    transitions.

    The transitions are triggered by the completion of the operations.

    An activity is shown as a round box.

    An outgoing solid arrow attached to an activity symbol indicates a transitions

    triggered by the completion of the activity.

    Transitions with conditions imply the branching off of control. if conditions arenot disjoint the branch is not deterministic.

    Joint concurrency control is expressed by multiple arrows entering the

    synchronization bar.

    Decisions are represented as diamonds.

    Procedure:

    1. Identify distinct activities and stages.

    2. In case of any decisions provide correct alternatives.3. It is mandatory for an activity diagram to have start end points.

    Browse

    State machine

  • 8/6/2019 All Codings

    6/68

    Sequence Diagram:

    An easy and intuitive way of describing the behaviors of a system by viewing the

    interaction between the system and its environment.

    It shows the objects participating in the interactions by their life lines and the messages

    they exchange, arranged in a time sequence. A sequence Diagram has 2 dimensions:

    Vertical Dimensional represent the time.

    A horizontal dimension represents the different objects.

    The lifeline reprents the objects existence during the interaction

    In sequence diagram:

    The object is shown as the box at the top of the dashed vertical line

    A role is a slot for an object with in a collaboration that describes the type ofobject that may play the role and its relationships to other roles.

    An object role is shown as a vertical dashed line, the lifeline.

    Procedure:

    Identify the initiator of the process

    Associate each actor is represented as a rectangle.

    The sequence of flow from one to another is denoted by transistions that carry the

    name of the operation to be done to reach the state or actor.

    The actors are separated by the vertical dashed lines and sequence flow is

    indicated through arrows.

    Browse

    Interaction

    Sequence

  • 8/6/2019 All Codings

    7/68

    Collaboration Diagram:

    Represents a collaboration, which is a set objects related in a particular contex, andinteraction, which is a set of messages exchanged among the objects with in

    collaborations to achieve a desired outcome.

    Procedure:

    This is nothing but a numbered transition of sequence diagram in a fixed order.

    1. The transition are denoted by a number followed by operation name

    2. Press F5 to get collaboration diagram from its corresponding sequence diagram.

    *if press F5 on sequence diagram, collaboration diagram will be generated.

    Task 7: To integrate RequisitePro with Rational Rose.

    Rational Rose: it is an automated tool for software design. It is mainly based on UMLdiagrams.

    Procedure:

    1. Choose any requirement in the requisitePro

    2. From the requirements menu click Associate to Rose use case

    3. Configure the view of the model file i.e,use case view or logical view4. save the model file with extension.mdl

    TESTING - Test Plan, testing strategies.

    DOCUMENTATION - use Rational SODA

  • 8/6/2019 All Codings

    8/68

    STUDENT MARK ANALYSING SYSTEM

    AIM:

    To develop software for the purpose of analyzing students marks.

    PROBLEM ANALYSIS AND PROJECT PLANNING:

    This project aims at developing a project for student mark analyzing system. It

    consists the student details depending upon their admission number.

    From this project all members can get the details about the students and their

    performance.

    The details of students with their performance are given. When the marks are

    stored in the data base the system calculates the total for each student & checks for the

    minimum percentage. When the total percentage is calculated the rank can be computed.

    The personal details of the student like name, department, address, and exam no

    and year can also be known.

    Students can view their marks by entering their name and password, they can

    view their marks. The strength of each department in every year can also be known.Student can also know their percentage, marks, rank.

    New students can be added and the pass out students can be deleted from the

    database from the application itself.

    Therefore this system analyzes the marks of the students who need to know their

    performance.

  • 8/6/2019 All Codings

    9/68

  • 8/6/2019 All Codings

    10/68

    STUDENT MARK ANALYSING SYSTEM

    FORM1 (Login form)

    SUBMIT:

    Private Sub Command1_Click()If Text1.Text = Text2.Text Then

    Form5.Show

    End IfEnd Sub

    FORM2(Personal details)

    ADD:

    Private Sub Command1_Click()Data1.Recordset.AddNew

    End Sub

    DELETE:

    Private Sub Command3_Click()

    Data1.Recordset.Delete

    End Sub

    BACK:

    Private Sub Command4_Click()Form5.Show

    End Sub

    FORM3(Student details)

    CALC:

    Private Sub Command1_Click()

    Text8.Text = (Val(Text2.Text) + Val(Text3.Text) + Val(Text4.Text) + Val(Text5.Text) +Val(Text6.Text) + Val(Text7.Text)) / 6

    If (Text2.Text >= 45 And Text3.Text >= 45 And Text4.Text >= 45 And Text5.Text >=

    45 And Text6.Text >= 45 And Text7.Text >= 45) Then

    Text9.Text = "PASS"Else

    Text9.Text = "FAIL"

    End IfEnd Sub

  • 8/6/2019 All Codings

    11/68

    BACK:

    Private Sub Command2_Click()

    Form5.ShowEnd Sub

    FORM4(Report form)

    BACK:

    Private Sub Command1_Click()

    Form5.Show

    End Sub

    EXIT:

    Private Sub Command2_Click()Form1.Show

    Me.Hide

    End Sub

    FORM5(Menu form)

    DISPLAY:

    Private Sub DISPLAY_Click()

    Form3.Show

    End Sub

    PERSONAL:

    Private Sub PERSONAL_Click()Form2.Show

    End Sub

    REPORT:

    Private Sub REPORT_Click()

    Form4.ShowEnd Sub

  • 8/6/2019 All Codings

    12/68

    PAY ROLL SYSTEMAIM:

    To develop a software for the purpose of analyzing the payroll system.

    PROBLEM ANALYSING AND PROJECT PLANNING:

    This project aims at developing a project for the payroll for an employee.

    The system contains employees details depending upon their employee number.

    We can know the details of the employees.

    The details of the employees with skills are given separately, depending upon their

    designation their salary will be provided.

    When the skill is calculated, their salary will be computed by the system for the

    employees.

    Employers can view their details by entering employee number. We can also the

    strength of the employees in the field.

    Each employee is having HRA, DA, MA, etc. We can view all the employee

    details with their net salary.

    Only we can see the employees details. From this we can get secured details of all

    the employees.

    Therefore this system computes the payroll and details of all

    The employees.

  • 8/6/2019 All Codings

    13/68

    S.No Test

    description

    Test

    Procedure

    Test input Executed

    result

    Actual

    result

    Status

    1 Checking thepassword

    Enter thepassword

    Password=enter Accepted Accepted Pass

    2 Checking the

    password

    Enter the

    password

    Password=***** Accepted Not

    Accepted

    Failed

  • 8/6/2019 All Codings

    14/68

    PAYROLL SYSTEM

    FORM 1 : (LOGIN FORM)

    ENTRY:

    Private Sub Command1_Click()

    a = InputBox("Enter Password")If a = "enter" Then

    Form2.Show

    ElseMsgBox ("wrong password")

    End If

    End Sub

    QUIT:

    Private Sub Command3_Click()

    EndEnd Sub

    FORM 2: (EMPLOYEE DETAILS)

    PERSONAL DETAILS:

    Private Sub Command1_Click()

    Form4.Show

    End Sub

    SALARY DETAILS:

    Private Sub Command2_Click()Form3.Show

    End Sub

    ADD:

    Private Sub Command3_Click()

    Data1.Recordset.AddNew

    End Sub

    DELETE:

    Private Sub Command4_Click()Data1.Recordset.Delete

  • 8/6/2019 All Codings

    15/68

    End Sub

    EXIT:

    Private Sub Command6_Click()

    Form1.Show

    End Sub

    FORM 3: (SALARY DETAILS)

    EXIT:

    Private Sub Command3_Click()Unload Form3

    End Sub

    COMPUTE:

    Private Sub Command5_Click()

    Text1.Text = 5 / 100 * Val(Text6.Text)

    Text2.Text = 3 / 100 * Val(Text6.Text)Text3.Text = 2 / 100 * Val(Text6.Text)

    Text7.Text = Val(Text6.Text) - Val(Text1.Text) - Val(Text2.Text) - Val(Text3.Text)

    End Sub

    FORM 4: (PERSONAL DETAILS )

    ADD:

    Private Sub Command1_Click()Data1.Recordset.AddNew

    End Sub

    DELETE:

    Private Sub Command2_Click()

    Data1.Recordset.DeleteEnd Sub

    EXIT:

    Private Sub Command3_Click()

    Unload Form4

    End Sub

  • 8/6/2019 All Codings

    16/68

  • 8/6/2019 All Codings

    17/68

    SL TestDescription

    Test Test Input ExpectedResult

    Actual Result Status

    1. Check whether

    the team isselected

    Select any one of

    the Team

    Team A

    Team BTeam C

    Accepted

    in thatTeam

    Accepted that

    Team

    Pass

    2. Check whether the team is

    selected

    Select any one ofthe Team

    No team isselected

    Acceptedin that

    Team

    Not Accepted Fail

    3. Check for the

    topic selected

    Select any topic Select

    APTITUD

    E

    or SIMPLEENGLISH

    Accept

    that Topic

    Topic Accepted Pass

    4. Check for thetopic selected

    Select any topic No topic isselected

    Acceptthat

    Not accepted Fail

    5. Check whether all the

    questions are

    answered

    Click finished Answer allthe

    questions

    Finished Finished Pass

    6. Check whether

    all the

    questions are

    answered

    Click finished All the

    questions

    are not

    answer

    Finished Incomplete Fail

  • 8/6/2019 All Codings

    18/68

    QUIZ SYSTEM

    FORM1 : (Login)

    ENTRY:

    Private Sub Command1_Click()

    a = InputBox("Enter The Password...", "Quiz World")If a = "project" Then

    form2.Show

    Form1.HideElse

    MsgBox " Wrong Password - Please Try Again ", vbDefaultButton1 + vbExclamation, "Quiz

    World "End If

    End Sub

    FORM2: (Team Selection)

    NEXT:

    Private Sub Command1_Click()

    If (Option1 = True) ThenForm3.Show

    form2.Hide

    Else

    If (Option2 = True) ThenForm3.Show

    form2.Hide

    ElseIf (Option3 = True) Then

    Form3.Show

    form2.HideElse

    MsgBox " Select the Team ", vbOKOnly + vbInformation + vbSystemModal, " Quiz World"

    End IfEnd If

    End If

    Option1 = ClearOption2 = Clear

    Option3 = Clear

    End Sub

    BACK :

    Private Sub Command3_Click()

    form2.HideForm1.Show

  • 8/6/2019 All Codings

    19/68

    End Sub

    QUIT :

    Private Sub Command2_Click()If (MsgBox(" Are you Sure Want to close?", vbYesNo + vbSystemModal +

    vbExclamation, "Quiz World") = vbYes) ThenEnd

    End If

    End Sub

    Private Sub Form_ Activate ()

    WindowState = 2Option1 = Clear

    End Sub

    FORM3 : (Topic Selection)

    NEXT:

    Private Sub Command2_Click()

    If (Option1 = True) ThenForm4.Label1 = Label2.Caption

    Form5.Label1 = Label2.Caption

    Form4.ShowForm3.Hide

    Else

    If (Option2 = True) Then

    Form4.Label1 = Label3.CaptionForm6.Label1 = Label2.Caption

    Form4.Show

    Form3.HideElse

    MsgBox " Select the TOPIC ", vbOKOnly + vbInformation + vbSystemModal, " Quiz World "

    End IfEnd If

    Option1 = Clear

    Option2 = ClearOption3 = Clear

    End Sub

    BACK:

    Private Sub Command1_Click()

    Form3.Hide

    form2.ShowEnd Sub

    QUIT:

    Private Sub Command3_Click()

  • 8/6/2019 All Codings

    20/68

    If (MsgBox(" Are you Sure Want to close?", vbYesNo + vbSystemModal +

    vbExclamation, "Quiz World") = vbYes) Then

    EndEnd If

    End Sub

    FORM4 : (Topic Display)

    START:Private Sub Command1_Click()

    If (Form3.Label2 = Form4.Label1) ThenForm5.Show

    Else

    Form6.ShowEnd If

    Form4.Hide

    End Sub

    FORM5 : (Questions for 1st Topic)

    Score for 1

    st

    Question:Private Sub Command1_Click()

    If (Option2 = True) Then

    Text1.Text = 50

    ElseText1.Text = 0

    End If

    Option1.Enabled = FalseOption2.Enabled = False

    Option3.Enabled = False

    End Sub

    Score for 2nd Question:

    Private Sub Command2_Click()

    If (Option6 = True) ThenText2.Text = 50

    Else

    Text2.Text = 0End If

    Option4.Enabled = False

    Option5.Enabled = FalseOption6.Enabled = False

    End Sub

    Score for 3rd Question:

    Private Sub Command3_Click()

    If (Option9 = True) ThenText3.Text = 50

    Else

    Text3.Text = 0End If

  • 8/6/2019 All Codings

    21/68

    Option7.Enabled = False

    Option8.Enabled = False

    Option9.Enabled = FalseEnd Sub

    Total Score:

    Private Sub Command4_Click()

    Text4.Text = Val(Text1.Text) + Val(Text2.Text) + Val(Text3.Text)MsgBox "Questions are over, Thanks for attending Quiz . Go to Main Menu or Quit",

    vbInformation, "Quiz World"End Sub

    Quit:

    Private Sub Command6_Click()

    If (MsgBox(" Are you Sure Want to close?", vbYesNo + vbSystemModal +

    vbExclamation, "Quiz World") = vbYes) ThenEnd

    End If

    End Sub

    Main Menu:

    Private Sub Command5_Click()

    Form5.Hideform2.Show

    End Sub

    Form Refresh:

    Private Sub Form_Activate()

    Option1.Enabled = True

    Option2.Enabled = TrueOption3.Enabled = True

    Option4.Enabled = True

    Option5.Enabled = TrueOption6.Enabled = True

    Option7.Enabled = True

    Option8.Enabled = TrueOption9.Enabled = True

    Option1 = ClearOption2 = Clear

    Option3 = Clear

    Option4 = ClearOption5 = Clear

    Option6 = Clear

    Option7 = Clear

    Option8 = ClearOption9 = Clear

    Text1.Text = " "

    Text2.Text = " "Text3.Text = " "

  • 8/6/2019 All Codings

    22/68

    Text4.Text = " "

    End Sub

    (Form 5 & Form6 is same)

    FORM6 : (Questions for 2nd

    Topic)Score for 1st Question:

    Private Sub Command1_Click()If (Option2 = True) Then

    Text1.Text = 50

    ElseText1.Text = 0

    End If

    Option1.Enabled = FalseOption2.Enabled = False

    Option3.Enabled = False

    End Sub

    Score for 2nd Question:

    Private Sub Command2_Click()

    If (Option6 = True) ThenText2.Text = 50

    Else

    Text2.Text = 0End If

    Option4.Enabled = False

    Option5.Enabled = False

    Option6.Enabled = FalseEnd Sub

    Score for 3rd Question:

    Private Sub Command3_Click()

    If (Option7 = True) Then

    Text3.Text = 50Else

    Text3.Text = 0

    End IfOption7.Enabled = False

    Option8.Enabled = False

    Option9.Enabled = FalseEnd Sub

    Total Score:

    Private Sub Command4_Click()

    Text4.Text = Val(Text1.Text) + Val(Text2.Text) + Val(Text3.Text)

    MsgBox "Questions are over, Thanks for attending Quiz. Go to Main Menu or Quit",vbInformation, "Quiz World"

  • 8/6/2019 All Codings

    23/68

    End Sub

    Quit:

    Private Sub Command6_Click()If (MsgBox(" Are you Sure Want to close?", vbYesNo + vbSystemModal +

    vbExclamation, "Quiz World") = vbYes) ThenEnd

    End If

    End Sub

    Main Menu:

    Private Sub Command5_Click()

    Form6.Hideform2.Show

    End Sub

    Form Refresh:

    Private Sub Form_Activate()Option1.Enabled = True

    Option2.Enabled = True

    Option3.Enabled = True

    Option4.Enabled = TrueOption5.Enabled = True

    Option6.Enabled = True

    Option7.Enabled = TrueOption8.Enabled = True

    Option9.Enabled = True

    Option1 = ClearOption2 = Clear

    Option3 = Clear

    Option4 = ClearOption5 = Clear

    Option6 = Clear

    Option7 = ClearOption8 = Clear

    Option9 = Clear

    Text1.Text = " "

    Text2.Text = " "Text3.Text = " "

    Text4.Text = " "

    End Sub

  • 8/6/2019 All Codings

    24/68

    STOCK MAINTENANCE SYSTEM

    AIM:

    To develop a software for the purpose of maintaining the stock ofcomputers.

    PROBLEM ANALYSIS AND PROJECT PLANNING:

    This project aims at developing a project for maintaining the stock of

    computer details. This system contains details such as purchase details, sales details,

    supplier details, customer details and current stock details in a company.

    The purchase details include details about product ID, product name, net

    amount and supplier name. These details can be updated then and there. The salesdetails include details about item no, item name, net amount and customer details.

    These details can also be further added and deleted. The supplier details such as

    supplier ID, supplier name, address and other details were included.

    The details of the stock of computers including varieties such as Hewlett Packet,

    Lenovo, Samsung, HCL, etc are given. The purchase and sales, date and month are

    issued. The customer requirements are satisfied as a whole. From the table of stockmaintenance we can know which stocks are in the stores, which are sold out.

    The profit can be calculated by the price sold and the price while buying. We canonly know the details about the stock maintained. We can keep secure details of the

    stocks. This system computes the maximum price of the stock and also the profit.

  • 8/6/2019 All Codings

    25/68

  • 8/6/2019 All Codings

    26/68

    STOCK MAINTENANCE

    FORM1 (Entry form)

    PURCHASE DETAILS:

    Private Sub Command1_Click()

    a = InputBox("Enter Password")

    If a = "mnsn" ThenForm2.Show

    Else

    MsgBox " Wrong password "End If

    End Sub

    SALES DETAILS:

    Private Sub Command2_Click()

    a = InputBox("Enter Password")

    If a = "mnsn" ThenForm3.Show

    Else

    MsgBox " Wrong password "

    End IfEnd Sub

    SUPPLIER DETAILS:

    Private Sub Command3_Click()

    a = InputBox("Enter Password")

    If a = "mnsn" ThenForm5.Show

    Else

    MsgBox " Wrong password "End If

    End Sub

    STOCK DETAILS:

    Private Sub Command4_Click()

    a = InputBox("Enter Password")

    If a = "mnsn" ThenForm6.Show

    Else

    MsgBox " Wrong password "End If

  • 8/6/2019 All Codings

    27/68

    End Sub

    EXIT:

    Private Sub Command5_Click()

    Unload Form1End Sub

    FORM2 (Purchase details)

    ADD:

    Private Sub Command1_Click()Dim D As Database

    Dim R As Recordset

    Set D = OpenDatabase("H:\mnsn.mdb")

    Set R = D.OpenRecordset("purchase")

    R.AddNewR.Fields(0) = Text1

    R.Fields(1) = Text2

    R.Fields(2) = Text3R.Fields(3) = Text4

    R.Fields(4) = Text5

    R.Fields(5) = Text6

    R.UpdateEnd Sub

    DELETE:

    Private Sub Command2_Click()

    Data1.Recordset.Delete

    End Sub

    UPDATE:

    Private Sub Command3_Click()Data1.Recordset.Update

    End Sub

    EXIT:

    Private Sub Command4_Click()

    Unload Form2

    End Sub

  • 8/6/2019 All Codings

    28/68

    FORM3 (Sales details)

    CUSTOMER DETAILS:

    Private Sub Command1_Click()

    a = InputBox("Enter Password")If a = "cust" Then

    Form4.Show

    ElseMsgBox " Wrong password "

    End If

    End Sub

    ADD:

    Private Sub Command2_Click()

    Dim D As Database

    Dim R As Recordset

    Set D = OpenDatabase("H:\mnsn.mdb")Set R = D.OpenRecordset("sales")

    R.AddNewR.Fields(0) = Text1

    R.Fields(1) = Text2

    R.Fields(2) = Text3R.Fields(3) = Text4

    R.Fields(4) = Text5

    R.UpdateEnd Sub

    DELETE:

    Private Sub Command3_Click()

    Data1.Recordset.Delete

    End Sub

    EDIT:

    Private Sub Command4_Click()

    Data1.Recordset.EditEnd Sub

  • 8/6/2019 All Codings

    29/68

    EXIT:

    Private Sub Command5_Click()Unload Form3

    End Sub

    FORM4 (Customer details)

    ADD:

    Private Sub Command1_Click()

    Dim D As DatabaseDim R As Recordset

    Set D = OpenDatabase("H:\mnsn.mdb")Set R = D.OpenRecordset("customer")

    R.AddNew

    R.Fields(0) = Text1R.Fields(1) = Text2

    R.Fields(2) = Text3

    R.Fields(3) = Text4R.Fields(4) = Text5

    R.Fields(5) = Text6

    R.Update

    End Sub

    DELETE:

    Private Sub Command2_Click()Data1.Recordset.Delete

    End Sub

    EDIT:

    Private Sub Command3_Click()

    Data1.Recordset.EditEnd Sub

    EXIT:

    Private Sub Command4_Click()

    Unload Form4

    End Sub

  • 8/6/2019 All Codings

    30/68

  • 8/6/2019 All Codings

    31/68

    FORM6 (Stock details)

    ADD:

    Private Sub Command1_Click()Dim D As Database

    Dim R As Recordset

    Set D = OpenDatabase("H:\mnsn.mdb")Set R = D.OpenRecordset("stock")

    R.AddNewR.Fields(0) = Text1

    R.Fields(1) = Text2

    R.Fields(2) = Text3

    R.Fields(3) = Text4R.Fields(4) = Text5

    R.Update

    End Sub

    DELETE:

    Private Sub Command2_Click()Data1.Recordset.Delete

    End Sub

    UPDATE:

    Private Sub Command3_Click()

    Data1.Recordset.UpdateEnd Sub

    EXIT:

    Private Sub Command4_Click()Unload Form6

    End Sub

  • 8/6/2019 All Codings

    32/68

    ATM

  • 8/6/2019 All Codings

    33/68

    Enter into Atm

    Enter the a/c

    no,Password

    check the

    password

    Select A/c

    type

    Enter the

    amount

    Check the

    Balance

    SelectTransaction

    Get the amount

    Balance is available

    Balance not available

    Correct password

    Password is not correct

  • 8/6/2019 All Codings

    34/68

    ATM

    name

    place

    serial no

    model

    Check the balance()

    Transact the amount()

    Customer.

    name

    address

    a/c no

    a/c type

    Enter the password()

    choose the type()get the amount()

    ATM machine

    name

    location

    serial no

    year

    model

  • 8/6/2019 All Codings

    35/68

  • 8/6/2019 All Codings

    36/68

    Customer Atm

    Machine

    Datbase

    1: Enter into atm2: Enter the a/c no,password

    3: Request to check the password

    4: Check the Password

    5: Enter the Amount

    6: Request to check balance

    7: Check the balance

    8: Given the money

    9: Get the money

    10: Give the Transaction slip

  • 8/6/2019 All Codings

    37/68

  • 8/6/2019 All Codings

    38/68

    Course registration

    Assign seat()

    Assign course()

    assign branch()

    Student.

    name

    addresss

    place

    admission()

    Admission cell.

    location

    time

    Analyse the mark()

    Analyse the course()

    assign the branch()

  • 8/6/2019 All Codings

    39/68

  • 8/6/2019 All Codings

    40/68

  • 8/6/2019 All Codings

    41/68

    Get the

    Application

    Fill the

    Application

    Get back the

    Application

    Analyse the

    mark

    ssign the

    course, branch

    Get the Seat

    Eligible

    Not eligible

  • 8/6/2019 All Codings

    42/68

    PAY

    Pay Roll System

    institution name

    Address

    since

    Assign salary()

    add the hra,da()

    detection lic,loan()

    staff

    name

    age

    address

    qualification

    experiance

    get the salary()

    Salary department

    place

    Assign salary()

    increment()

    detection()

  • 8/6/2019 All Codings

    43/68

    Institution

    Salary Section

    Employee

    Join into the instution

    Allocate the salary

    Assign the Bascic salary

    Add the hra,da

    Reduce the loan,pf

    Given the net salary

    Get the net salary

  • 8/6/2019 All Codings

    44/68

  • 8/6/2019 All Codings

    45/68

  • 8/6/2019 All Codings

    46/68

  • 8/6/2019 All Codings

    47/68

  • 8/6/2019 All Codings

    48/68

  • 8/6/2019 All Codings

    49/68

  • 8/6/2019 All Codings

    50/68

    Supplier

    Customer Purcheser

    1: order the itms

    2: Analyse the itms in stock

    3: order into supplier

    4: give the order items

    5: Deliver the items

    6: Pay the amount

  • 8/6/2019 All Codings

    51/68

    STUDENT

    View the result

    Examiner

    Exam cell

    Student

    write the Exam

    Evaluate the paper

    Calculate the mark

    Analyse the mark

    Calculate the average

    Calculate the Grade

    Display the result

  • 8/6/2019 All Codings

    52/68

  • 8/6/2019 All Codings

    53/68

    Staff Institution

    Salary

    Section

    4: Add the hra,da5: Reduce the loan.pf

    1: join in institution

    2: Assign the salary

    3: given order to allocate the salary6: given the net salary

    7: get the salry

  • 8/6/2019 All Codings

    54/68

  • 8/6/2019 All Codings

    55/68

    Join in

    institution

    Assign the

    Basic salary

    Add the hra,da

    Reduce the loan

    ,lic

    Get the net

    salary

  • 8/6/2019 All Codings

    56/68

  • 8/6/2019 All Codings

    57/68

  • 8/6/2019 All Codings

    58/68

  • 8/6/2019 All Codings

    59/68

  • 8/6/2019 All Codings

    60/68

  • 8/6/2019 All Codings

    61/68

  • 8/6/2019 All Codings

    62/68

  • 8/6/2019 All Codings

    63/68

  • 8/6/2019 All Codings

    64/68

    TICKET

    Open the Web page

    Server

    Enter the uses name,password

    Verify the name,password

    Enter the details

    Check the availability Reservation

    Database

    Reserve the t icket

    Pay amount through net

    Customer.

    Get the ticket

  • 8/6/2019 All Codings

    65/68

  • 8/6/2019 All Codings

    66/68

  • 8/6/2019 All Codings

    67/68

  • 8/6/2019 All Codings

    68/68

    login web page

    Open the web

    page

    Enter the

    details

    check the

    availability

    enter the details

    pay the amount

    Ticket is availability

    Ticket is not availability