+ All Categories
Home > Documents > CASE TOOL LAB MANUAL

CASE TOOL LAB MANUAL

Date post: 14-Apr-2016
Category:
Upload: priya-raji
View: 34 times
Download: 0 times
Share this document with a friend
Description:
ANNA UNIVERSITY IT FIFTH SEMESTER CASE TOOL LAB MANUAL REGULATION 2013
139
CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN 1 DEPARTMENT OF IT OBJECT ORIENTED ANALYSIS DESIGN LAB MANUAL IT6513-CASE TOOLS LAB YEAR/SEM: III/IV REGULATION 2013
Transcript

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

1

DEPARTMENT OF IT

OBJECT ORIENTED ANALYSIS DESIGN

LAB MANUAL

IT6513-CASE TOOLS LAB

YEAR/SEM: III/IV

REGULATION 2013

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

2

SYLLABUS

IT6513 CASE TOOLS LABORATORY L T P C

0 0 3 2

Develop software for an application using typical Case Tool, following

Software

Engineering methodology as given below:

1. Problem Statement Thorough study of the problem – Identify project scope,

Objectives and infrastructure.

2. Business modeling and requirements specification: The specification

language Unified Modeling Language (UML), will be used.

3. UML - Use work products – data dictionary, use case diagrams and activity

diagrams, build and test, class diagrams, sequence diagrams, collaboration

diagrams and add interface to class diagrams.

4. Software Implementation Coding - Use tools for automatic code generation

from system specifications.

5. Change Management –Program, Data and Documentation management

6. Software Testing - Prepare test plan, perform validation testing, coverage

analysis, memory leaks, develop test case hierarchy, Site check and site monitor.

7. Software Documentation and Reverse Engineering - Apply Reverse

Engineering approach and compare with the forward engineering approach.

Prepare documents and reports

Total: 45 hrs.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

3

SUDHARSAN ENGINEERING COLLEGE

SATHIYAMANGALAM

DEPARTMENT OF MCA

CA5205-CASE TOOLS LAB

LIST OF EXPERIMENTS

Year/Sem: II /III DATE :09.07.10

DEPT :MCA

1. Develop a Stock Maintainence Software.

2. Develop a Online Quiz System Software.

3. Develop a ATM Software.

4. Develop a Library Information System Software.

5. Develop a Payroll System Software.

6. Develop a Railway Reservation System Software.

7. Develop a Course Registration System Software.

8. Develop a Student Information System Software.

9. Develop a Expert System Software.

R.YUVARANI

STAFF-INCHARGE HoD/MCA

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

4

ONLINE QUIZ SYSTEM

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

5

ONLINE QUIZ SYSTEM

AIM:

To develop the online quiz system by using visual basic as front end and MS-

access as back end.

PROGRAM ANALYSIS AND PROJECT PLANNING

PURPOSE:

The purpose of the SRS is to fully describe the functionality of online quiz

system identified and it also describe non-functional requirements and design

control and other factors.

PROJECT SCOPE:

The SRS applies to the online quiz system. Initially the project is going to be

implement interact level and later the organization has an idea to upgrade in internet

level the project merit in guide.

OBJECTIVES:

Easy to use

Modern way of learning.

Including the students power to answer.

HARDWARE REQUIREMENTS:

1. Intel Motherboard With Pentium Processor

2. RAM 256MB(minimum)

3. Hard disk 40GB(minimum)

SOFTWARE REQUIREMENTS:

1. Microsoft VisualBasic6.0

2. Microsoft Access

3. Rational Rose

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

6

SOFTWARE REQUIRMENT ANALYSIS:

OVERALL DESCRIPTION: The product will take with inspiration auto used system.All the function

provide by the students,staff and system administration.

Online Testing.

Random generation of questions.

Multimedia representation of question and answer if needed.

INTENDED AUDIENCE:

Administrator

Staff

Student

PRODUCT FUNCTIONS:

ADMINISTRATOR: Administrator has ability to register the student to provide user-id and

password.

STAFF:

Prepare question for exam and set the parameter add subject,modify the test.

STUDENT:

Under takes online test the must be able to answer the question and get the

marks,the students must have a user ID and password

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

7

ONLINE QUIZ SYSTEM

USE CASE DIAGRAM:

Authentication

Question setup

Quiz

user

score

Admin

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

8

CLASS DIAGRAM:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

9

SEQUENCE DIAGRAM:

user admin database

enter id

check id

id entered

check if admin or usercheck result

display question

answeringverify answer

verification result

mark calculation

display score

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

10

COLLABORATION DIAGRAM:

user

admin

databas

e

4: check if admin or user

10: mark calculation

1: enter id6: display question11: display score

2: id entered7: answering

3: check id8: verify answer

5: check result9: verification result

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

11

VB SOURCE CODE Form1.frm

Dim db As Database

Dim rs As Recordset

Private Sub Command1_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0) = Trim(Text1.Text) Then

If Data1.Recordset.Fields(1) = Trim(Text2.Text) Then

Form2.Show

Unload Me

Else

MsgBox ("Password Is Incorrect")

Exit Do

End If

End If

Data1.Recordset.MoveNext

Loop

End Sub

Private Sub Command2_Click()

End

End Sub

Private Sub Form_Load()

Set db = OpenDatabase("E:\ArunMani - Regrunp\TOTAL

COLLECTIONS\Login Backup\CASE PRINTOUT\CASE

PRINTOUT\quiz\QUIZ.mdb")

Set rs = db.OpenRecordset("quiz")

End Sub

Form2.frm

Private Sub Command1_Click()

Form1.Show

Unload Me

End Sub

Private Sub Command2_Click()

Form3.Show

Unload Me

End Sub

Private Sub Form_Activate()

Option1.Value = False

Option2.Value = False

Option3.Value = False

End Sub

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

12

Private Sub Option1_Click()

Form5.Label3.Caption = Option1.Caption

Form5.Label4.Caption = "wrong"

Form5.Label5.Caption = 0

End Sub

Private Sub Option2_Click()

Form5.Label3.Caption = Option2.Caption

Form5.Label4.Caption = "wrong"

Form5.Label5.Caption = 0

End Sub

Private Sub Option3_Click()

Form5.Label3.Caption = Option3.Caption

Form5.Label4.Caption = "correct"

Form5.Label5.Caption = 5

End Sub

Form3.frm:

Private Sub Command1_Click()

Form2.Show

Unload Me

End Sub

Private Sub Command2_Click()

Form4.Show

Unload Me

End Sub

Private Sub Form_Activate()

Option1.Value = False

Option2.Value = False

Option3.Value = False

End Sub

Private Sub Option1_Click()

Form5.Label6.Caption = Option1.Caption

Form5.Label7.Caption = "wrong"

Form5.Label8.Caption = 0

End Sub

Private Sub Option2_Click()

Form5.Label6.Caption = Option2.Caption

Form5.Label7.Caption = "correct"

Form5.Label8.Caption = 5

End Sub

Private Sub Option3_Click()

Form5.Label6.Caption = Option3.Caption

Form5.Label7.Caption = "wrong"

Form5.Label8.Caption = 0

End Sub

Form4.frm:

Private Sub Command1_Click()

Form3.Show

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

13

Unload Me

End Sub

Private Sub Command2_Click()

Form5.Show

Unload Me

End Sub

Private Sub Form_Activate()

Option1.Value = False

Option2.Value = False

Option3.Value = False

End Sub

Private Sub Option1_Click()

Form5.Label9.Caption = Option1.Caption

Form5.Label10.Caption = "Correct"

Form5.Label11.Caption = 5

End Sub

Private Sub Option2_Click()

Form5.Label9.Caption = Option2.Caption

Form5.Label10.Caption = "Wrong"

Form5.Label11.Caption = 0

End Sub

Private Sub Option3_Click()

Form5.Label9.Caption = Option3.Caption

Form5.Label10.Caption = "Wrong"

Form5.Label11.Caption = 0

End Sub

Form5.frm:

Private Sub Command1_Click()

End

End Sub

Private Sub Command2_Click()

Label13.Caption = Val(Label5.Caption) + Val(Label8.Caption) +

Val(Label11.Caption)

If Val(Label13.Caption) >= 10 Then

MsgBox "Congratulations", vbInformation

Else

MsgBox ("Better Luck Next Time")

End If

End Sub

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

14

OUTPUT FORM

Login form : (Form1.frm)

Question 1 : (Form2.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

15

Question 2 : (Form3.frm)

Question 3 : (Form4.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

16

Results : (Form5.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

17

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

18

RESULT:

Thus the Payroll system was developed by using visual basic in front end and

MS-Access in back end.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

19

TICKET RESERVATION SYSTEM

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

20

TICKET RESERVATION SYSTEM

AIM:

To create a simple and easier method of reserving train tickets.

OBJECTIVE:

The main objective of our railway reservation system is to serve as a very

effective and premium portal for the reservation of railways.You can know the train

timings,train routes,ticket availability,and much more in just a few clicks.

INFORMATION DESCRIPTION:

DETAILED DESCRIPTION OF PROJECT:

Search for the required train.

Check for the availability of the ticket.

If available reserve the ticket.

Else search for another train.

HARDWARE DESCRIPTION:

1.Pentium Processor

2. Intel Motherboard

3. RAM 256MB(minimum)

4. Hard disk 40GB(minimum)

SOFTWARE DESCRIPTION:

4. Microsoft VisualBasic6.0

5. Microsoft Access

6. Rational Rose

HUMAN INTERFACE DESCRIPTION:

Interface going to be used is a user friendly interface,it is an online interface

which will satisfy the users needs.

FUNCTIONAL DESCRIPTION:

PERFORMANCE CHARACTERISTICS:

Fast access

Easy access for end users.

Simple steps for reservation and cancellation.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

21

DATABASE REQUIREMENTS:

Details of Indian trains.

Fare of trains according to classes.

Percentage of concessions according to persons such as

students,senior citizens etc..,

Above database are stored in MS-Access.

NON FUNCTIONAL REQUIREMENTS:

AVAILABILITY:

Available to all systems around the clock.

Available in any environment

Suites for everyone that is no credit card needed.

Just enter the bank name and account no for payment.

MAINTAINABILITY:

Regular updates of database

Backup of database is maintained to avoid the loss of data due

to power failure.

Less memory space required.

BEHAVIOUR DESCRIPTION:

This project has mainly two functions:-

1.Reservation

Easy and fast steps to reserve a ticket.

Before reserving we can check the availability,timings etc..,

2.Cancellation

Easy and few steps to cancel the tickets.

The money will be automatically refunded in the bank account.

Specified at the time of reservation.

The history of reservation is maintained.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

22

TICKET RESERVATION SYSTEM

USECASE DIAGRAM:

USER DETAILS

TRAIN MASTER DETAILS

RESERVATION/CANCELLATION

CHECK AVAILABILITY

ADMIN

CONFIRMATION

USER

CLASS DIAGRAM:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

23

SEQUENCE DIAGRAM:

ADMIN USER DATABASE

USER ENQUIRY

RESERVATION

CHECK AVAILABILITY

NO OF SEATS

ALLOTMENT

CONFIRMATION

UPDATION OF SEATS

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

24

COLLABORATION DIAGRAM:

ADMIN USER

DATABA

SE

3: CHECK AVAILABILITY7: UPDATION OF SEATS

4: NO OF SEATS

1: USER ENQUIRY2: RESERVATION6: CONFIRMATION

5: ALLOTMENT

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

25

VB SOURCE CODE Form1.frm: Private Sub Command1_Click() If Combo1.Text = "" Then MsgBox "Choose a Train" Else Form2.Show Form1.Hide End If End Sub Private Sub Form_Load() Combo1.AddItem "Pallavan" Combo1.AddItem "Vaigai" Combo1.AddItem "Hawra" Combo1.AddItem "Valluvan" Combo1.AddItem "Theni" End Sub Form2.frm: Private Sub Command1_Click() Form3.Show Form2.Hide End Sub Private Sub Command2_Click() Form4.Show Form2.Hide End Sub Private Sub Command3_Click() Form5.Show Form2.Hide End Sub Private Sub Command4_Click() End End Sub Private Sub Command5_Click()

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

26

Form1.Show Form2.Hide End Sub Private Sub Form_Load() Text1.Text = Form1.Combo1.Text If Text1.Text = "Pallavan" Then Form2.Text2.Text = "10.00" Form2.Text3.Text = "10.30" ElseIf Text1.Text = "Vaigai" Then Form2.Text2.Text = "18.00" Form2.Text3.Text = "18.30" ElseIf Text1.Text = "Hawra" Then Form2.Text2.Text = "12.30" Form2.Text3.Text = "13.00" ElseIf Text1.Text = "Valluvan" Then Form2.Text2.Text = "14.00" Form2.Text3.Text = "16.30" ElseIf Text1.Text = "Theni" Then Form2.Text2.Text = "19.00" Form2.Text3.Text = "23.00" End If Data1.Refresh Data1.Recordset.MoveFirst Do While Not Data1.Recordset.EOF If Data1.Recordset.Fields(0) = Trim(Text1.Text) Then Text4.Text = Data1.Recordset.Fields(3) Text5.Text = Data1.Recordset.Fields(4) End If Data1.Recordset.MoveNext Loop End Sub Form3.frm: Dim a, b, c As Integer Private Sub Command2_Click() Form3.Hide Form2.Show End Sub Private Sub Command1_Click() a = Data1.Recordset.RecordCount Data1.Refresh Data1.Recordset.AddNew Data1.Recordset.Fields(0) = Text1.Text

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

27

Data1.Recordset.Fields(1) = Text2.Text If b = 1 Then Data1.Recordset.Fields(2) = Option1.Caption ElseIf b = 2 Then Data1.Recordset.Fields(2) = Option2.Caption End If Data1.Recordset.Fields(3) = Text3.Text If c = 1 Then Data1.Recordset.Fields(4) = Option3.Caption ElseIf c = 2 Then Data1.Recordset.Fields(4) = Option4.Caption End If Data1.Recordset.Fields(6) = Form2.Text1.Text a = a + 1 Data1.Recordset.Fields(5) = a Data1.Recordset.Update MsgBox "your Seat Reserved" MsgBox a, , "YOUR CODE" End Sub Private Sub Option1_Click() b = 1 End Sub Private Sub Option2_Click() b = 2 End Sub Private Sub Option3_Click() c = 1 End Sub Private Sub Option4_Click() c = 2 End Sub Form4.frm: Dim a As Boolean Private Sub Command1_Click() a = False Data1.Refresh Data1.Recordset.MoveFirst Do While Not Data1.Recordset.EOF If Data1.Recordset.Fields(0) = Trim(Text1.Text) Then

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

28

If Data1.Recordset.Fields(5) = Trim(Text2.Text) Then a = True Frame1.Visible = True Text3.Text = Data1.Recordset.Fields(0) Text4.Text = Data1.Recordset.Fields(1) If Data1.Recordset.Fields(2) = Trim("Male") Then Option1.Value = True Option2.Value = False ElseIf Data1.Recordset.Fields(2) = Trim("Female") Then Option2.Value = True Option1.Value = False End If Text5.Text = Data1.Recordset.Fields(3) If Data1.Recordset.Fields(4) = Trim("A/C") Then Option4.Value = True Option3.Value = False ElseIf Data1.Recordset.Fields(4) = Trim("Ordinary") Then Option4.Value = False Option3.Value = True End If End If End If Data1.Recordset.MoveNext Loop If Not a Then MsgBox "You didnot reserve any seats" End If End Sub Private Sub Command2_Click() Form3.Show Form4.Hide End Sub Form5.frm: Dim a As Boolean Private Sub Command1_Click() a = False Data1.Refresh Data1.Recordset.MoveFirst Do While Not Data1.Recordset.EOF If Text1.Text = Data1.Recordset.Fields(0).Value And Text1.Text = Data1.Recordset.Fields(5).Value Then a = True MsgBox "Record found.Do u want to cancel the ticket", vbOKCancel

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

29

Data1.Recordset.Delete Data1.Recordset.Update End If Data1.Recordset.MoveNext Loop If Not a Then MsgBox "Ticket cancelled" End If End Sub Private Sub Command2_Click() End End Sub

OUTPUT FORMS

T r a i n S e l e c t i o n : ( F o r m 1 . f r m )

T r a i n T i m i n g s : ( F o r m 2 . f r m )

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

30

R e s e r v a t i o n : ( F o r m 3 . f r m )

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

31

C a n c e l l a t i o n : ( F o r m 5 . f r m )

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

32

C o n f i r m a t i o n : ( F o r m 4 . f r m )

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

33

RESULT: Thus the Ticket reservation system was developed by using visual basic in front

end and MS-Access in back end.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

34

STUDENT’S INFORMATION SYSTEM

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

35

STUDENT’S INFORMATION SYSTEM

INTRODUCTION:

GOAL:

Software development process involves four modules

analysis,designing,coding and testing of the software.Our goal is to develop software for

storing student’s information,which we have named as student’s information system.

OBJECTIVE:

Our objective is to first understand the software to be developed,analyze

the process and finally implement the concepts to develop software along with the

considerations for various user levels,to provide a secured and a reliable software to store

the details of the student’s studying in our institution.

INFORMATION DESCRIPTION:

DETAILED DESCRIPTION:

In this project development,we will have a database as a back end to store

the details of the student’s,which will include,

1.Student name

2.Register number

3.Department

4.Year

5.Address & ph.no

6.Marks

We will have three different user:administrators,staff and

student’s.They will be provided with different access levels.

The administrator will be allowed to ADD,EDIT AND VIEW the

student’s information.The staff members will be allowed to EDIT AND

VIEW student’s records.The students will be allowed only to VIEW the records.

HARDWARE DESCRIPTION:

1. Intel Motherboard with Pentium Processor

2. RAM 256MB(minimum)

3. Hard disk 40GB(minimum)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

36

SOFTWARE DESCRIPTION:

Microsoft VisualBasic6.0

Microsoft Access

Rational Rose

FUNCTIONAL DESCRIPTION:

PERFORMANCE CHARACTERISTICS:

In this project,the users will be students,staff members and

administrators.The operations involved will be

Addition of records

Edition of records

Deletion of records

Viewing of records

The supreme access will be provided to the administrator who will be

allowed to perform all the operations.

DATABASE REQUIREMENTS:

We will use MS Access as a back end to store our information.The

database will be linked in the forms created using VB.

NON-FUNCTIONAL DESCRIPTION:

RELIABILITY:

The software is designed considering the reliability of ATM system.

AVAILABILITY:

This software will be available to all the users inside the campus.

SECURITY:

This software will provide a good security by providing

authentication.The users are allowed to access the database after their user id and

password gets authenticated.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

37

MAINTAINABILITY:

Easier to maintain and update the database.

STUDENT MARK ANALYSIS SYSTEM

USECASE DIAGRAM:

authentication

student

percalculationadmin

reports

student1

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

38

CLASS DIAGRAM:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

39

SEQUENCE DIAGRAM:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

40

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

41

COLLABORATION DIAGRAM:

ADMIN db

student

2: check7: search9: calculate

1: user id & password6: mark analysis

3: checking status8: mark analysis

4: enter reg no10: report

5: reg no

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

42

VB SOURCE CODE

Login : (Form1.frm)

Private Sub Command1_Click()

If Trim(Text1.Text) = "admin" And Trim(Text2.Text) = "sec"

Then

Form2.Show

Unload Me

Else

If Trim(Text1.Text) = "staff" And Trim(Text2.Text) = "sec"

Then

Form3.Show

Unload Me

Else

If Trim(Text1.Text) = "student" And Trim(Text2.Text) =

"cse" Then

Form4.Show

Unload Me

Else

MsgBox "Check username & password"

End If

End If

End If

End Sub

Private Sub Command2_Click()

End

End Sub

Details : (Form2.frm)

Private Sub Command1_Click()

Data1.Recordset.AddNew

Data1.Recordset.Fields(0) = Text1.Text

Data1.Recordset.Fields(1) = Text2.Text

Data1.Recordset.Fields(2) = Text3.Text

Data1.Recordset.Fields(3) = Text4.Text

Data1.Recordset.Fields(4) = Text5.Text

Data1.Recordset.Fields(5) = Text6.Text

Data1.Recordset.Update

MsgBox "RECORD ADDED"

End Sub

Private Sub Command2_Click()

Dim b As String

Data1.Recordset.MoveFirst

a = False

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0) = Trim(Text1.Text) Then

MsgBox "RECORD FOUND"

a = True

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

43

MsgBox "Are you sure want to delete", vbOKCancel

If vbOK Then

Data1.Recordset.Delete

MsgBox "RECORD DELETED"

Form2.Show

ElseIf vbCancel Then

Form2.Show

End If

Exit Do

End If

Data1.Recordset.MoveNext

Loop

If Not a Then

MsgBox "RECORD NOT FOUND"

End If

End Sub

Private Sub Command3_Click()

Form4.Show

Unload Me

End Sub

Private Sub Command4_Click()

End

End Sub

Private Sub Form_Load()

Dim a As Boolean

End Sub

Search : (Form4.frm)

Private Sub Command1_Click()

Data1.Refresh

fnd = False

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

fnd = True

If Data1.Recordset.Fields(0) = Trim(Text1) Then

Frame2.Visible = True

Text3.Text = Data1.Recordset.Fields(2)

Text4.Text = Data1.Recordset.Fields(3)

Text5.Text = Data1.Recordset.Fields(4)

Text6.Text = Data1.Recordset.Fields(5)

End If

Data1.Recordset.MoveNext

Loop

If Not fnd Then

MsgBox "CHECK NAME AND NO"

End If

End Sub

Private Sub Command2_Click()

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

44

End

End Sub

O U T P U T F O R M S L o g i n : ( F o r m 1 . f r m )

D e t a i l s : ( F o r m 2 . f r m )

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

45

S e a r c h : ( F o r m 4 . f r m )

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

46

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

47

RESULT: Thus the Student information system was developed by using visual basic

in front end and MS-Access in back end.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

48

PAYROLL SYSTEM

PAYROLL SYSTEM

AIM:

To develop the payroll system by using visual basic as front end and MS-access as

back end.

PROGRAM ANALYSIS AND PROJECT PLANNING

PURPOSE:

The purpose of the program analysis and project planning is to fully describe the

functionality of payroll system identified and it also describe non-functional requirements

and design control and other factors.

PROJECT SCOPE:

The program analysis and project planning applies to the payroll system.Initially

the project is going to be implement interact level and later the organization has an idea

to upgrade in internet level the project merit include this project might suppresses the

complication in calculating payroll for human resources in large organization.

OBJECTIVES:

Easy to use

More robust

To reduce the manual operation in calculating the payroll

HARDWARE REQUIREMENTS:

1)Intel Motherboard with Pentium Processor

2)RAM 256MB(minimum)

3)Hard disk 40GB(minimum)

SOFTWARE REQUIREMENTS:

1)Microsoft VisualBasic6.0

2)Microsoft Access

3) Rational Rose

SOFTWARE REQUIRMENT ANALYSIS:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

49

The following sub sections describe the usage of the payroll

system.There are three modules.

Use entry

Verification of password

Employee salary calculation

INTENDED AUDIENCE:

Employee

Administrator

PRODUCT FUNCTIONS:

Here short briefing on payroll system.It has the following four

modules.The modules are:-

1. USER ENTRY:

The user has to provide the user name and the pin number.The pin is the four

digit number which is also called a secret key known to the user.

2.VERIFICATION OF PASSWORD:

The password is matched with one already present in the data base is the

password is scanned.If the password is correct the user is logged in else the false message

is generated.

3. EMPLOYEE SALARY CALCULATION:

In the database, name of the each employee will be stored with all needed

informations.Depending upon that information the salary will be calculated for employee.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

50

PAYROLL SYSTEM

USECASE DIAGRAM:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

51

employees database

salary calculation

authentication

clerk

manager

account officer

reports

employee

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

52

CLASS DIAGRAM:

SEQUENCE DIAGRAM:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

53

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

54

COLLABORATION DIAGRAM:

user reports

databas

e

salary

calculation

2: checking for valid id4: update monthly details

5: if id is valid

9: cal sal details12: pay slip generation

13: display the pay slip

1: check emp id6: monthly attendance

14: logout database

3: user is authenticated15: logout successfully

7: request for monthly details10: update the salary in monthly

8: read monthly details database

11: transfer the salary

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

55

VB SOURCE CODE

Login Form : (Form1.frm)

Private Sub Command1_Click()

If (Text1.Text = "admin" And Text2.Text = "sec") Then

Form2.Show

Else

MsgBox "Please enter the correct username and pwd"

End If

End Sub

Private Sub Command2_Click()

Text1.Text = ""

Text2.Text = ""

End Sub

Choice Form : (Form2.frm)

Private Sub Command1_Click()

Form3.Show

Unload Me

End Sub

Private Sub Command2_Click()

Form3.Visible = False

End Sub

Payslip : (Form3.frm)

Private Sub Command1_Click()

Data1.Recordset.MoveFirst

For i = 0 To Data1.Recordset.RecordCount - 1

If Text1.Text = Data1.Recordset.Fields(5) Then

Frame1.Visible = True

Text2.Text = Data1.Recordset.Fields(0)

Text3.Text = Data1.Recordset.Fields(1)

Text4.Text = Data1.Recordset.Fields(2)

Text5.Text = Data1.Recordset.Fields(3)

Text6.Text = Data1.Recordset.Fields(4)

Text8.Text = Data1.Recordset.Fields(5)

Text9.Text = Data1.Recordset.Fields(6)

Text10.Text = Data1.Recordset.Fields(7)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

56

Text11.Text = Data1.Recordset.Fields(8)

Text12.Text = Data1.Recordset.Fields(9)

End If

Data1.Recordset.MoveNext

Next

End Sub

Private Sub Command2_Click()

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

Text6.Text = ""

Text7.Text = ""

Text8.Text = ""

Text9.Text = ""

Text10.Text = ""

Text11.Text = ""

Text12.Text = ""

End Sub

Private Sub Command3_Click()

Text7.Text = ((Val(Text4.Text) + Val(Text5.Text) +

Val(Text6.Text)) - (Val(Text10.Text) +

Val(Text11.Text) + Val(Text12.Text)))

End Sub

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

57

OUTPUT FORM

Login Form : (Form1.frm)

Choice : (Form2.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

58

PaySlip : (Form3.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

59

RESULT:

Thus the Payroll system was developed by using visual basic in front end and

MS-Access in back end.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

60

LIBRARY INFORMATION SYSTEM

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

61

LIBRARY INFORMATION SYSTEM

INTRODUCTION:

GOAL:

The main goal of library information system is to view all the information

about the books as well as information relevant to the library.

OBJECTIVE:

Our objective is to create library information system,which consists of

modules each of which performs its own function efficiently.

INFORMATION DESCRIPTION:

DETAILED DESCRIPTION:

Basically the users of the library information system are categorized into

two groups.They are Administrator and User. Administrator is the one who has the

control over the whole system.He can add,delete,view information as well as borrow

some books.The password control separates him from other users.

The user can only view the information about the books and borrow books

from the library for certain period of time if he has enough library cards.After that period

he has to return those books back to the library to avoid fine.

HARDWARE DESCRIPTION:

1. Intel Motherboard with Pentium Processor

2. RAM 256MB(minimum)

3. Hard disk 40GB(minimum)

SOFTWARE DESCRIPTION:

7. Microsoft VisualBasic6.0

8. Microsoft Access

9. Rational Rose

INTERFACE DESCRIPTION:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

62

To interact with the system the user has to have certain

things.Username,Password,Bookname,etc.The Username is unique all over the

system.The password separates the user from the administrator.To view the information

certain attributes has to be given like Bookname etc.

FUNCTIONAL DESCRIPTION:

PERFORMANCE CHARACTERISTICS:

The overall performance of the system mainly depends upon the

server,Network and the managing data resources.To achieve higher performance the

speed of the server and the Network must be greater. Also we have to manage the

database efficiently.

DATABASE REQUIREMENTS:

For the library information system we have to maintain two separate

databases,one for storing Username and the Password and the other for book details.The

first database must have two columns and the other must have at least five columns.We

use MS Access to create those databases.

NON-FUNCTIONAL REQUIREMENTS:

AVAILABILITY:

The software consists of separate modules for the administrator to

add,delete information about the books.

SECURITY:

The whole data in the system is password protected;no one can access that

information without rights. Only user and admininstrator can access that information.

BEHAVIOURAL DESCRIPTION:

The user can login to the system and can view the information about the

books,by giving any one of attributes.The result will be displayed separately.The

administrator can login to the system and view the information about the books and he

can add or delete the book details to the system.Also he can issue books and cards also by

verifying the ID.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

63

LIBRARY MANAGEMENT SYSTEM

USECASE DIAGRAM:

authentication

specification of book

make reservation

user

remove reservation

lend book

return book

librarian 1

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

64

CLASS DIAGRAM:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

65

SEQUENCE DIAGRAM:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

66

member librariyan server

enter reg no

type of req

take book

book name

check

check

success

book is reserved

terminate

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

67

COLLBORATION DIAGRAM:

member

librariyan

server

6: check

1: enter reg no3: take book9: terminate

2: type of req4: book name

8: book is reserved

5: check

7: success

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

68

VB SOURCE CODE Form1.frm

Private Sub Command1_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0) = Text1 And

Data1.Recordset.Fields(1) = Text2 Then

i = 1

Form2.Show

Unload Me

Else

Exit Do

End If

Data1.Recordset.MoveNext

Loop

If Not (i = 1) Then

MsgBox "error"

End If

End Sub

Private Sub Command2_Click()

End

End Sub

Private Sub Form_Load()

Dim i As Integer

End Sub

Form2.frm

Private Sub Command1_Click()

Form3.Show

Me.Hide

End Sub

Private Sub Command2_Click()

Form4.Show

Me.Hide

End Sub

Private Sub Command3_Click()

Form5.Show

Me.Hide

End Sub

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

69

Private Sub FORM11_Click()

Form1.Show

Me.Hide

End Sub

Form3.frm

Private Sub Command1_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0) = Text1 Then

i = 1

Text2 = Data1.Recordset.Fields(0)

Text3 = Data1.Recordset.Fields(2)

End If

Data1.Recordset.MoveNext

Loop

If Not (i = 1) Then

MsgBox "BOOK IS NOT AVAILABLE"

End If

End Sub

Private Sub Command2_Click()

Dim i As Integer

J = 0

Data1.Recordset.MoveFirst

While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0) = Text2 And

Data1.Recordset.Fields(2) > 0 Then

Data3.Recordset.AddNew

J = 1

Data1.Recordset.Edit

Data1.Recordset.Fields(2) = Data1.Recordset.Fields(2)

- 1

Data3.Recordset.Fields(0) = Text2

Data3.Recordset.Fields(1) = Text4

Data3.Recordset.Fields(2) = Text2

Data3.Recordset.Fields(3) = Text5

Data3.Recordset.Fields(4) = Text6

Data1.Recordset.Update

Data3.Recordset.Update

MsgBox "GOT THE BOOK"

End If

Data1.Recordset.MoveNext

Wend

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

70

If Not J = 1 Then

MsgBox "BOOK IS NOT AVAILABLE"

End If

End Sub

Private Sub Command3_Click()

Me.Hide

Form2.Show

End Sub

Private Sub Form_Load()

Dim i As Integer

End Sub

Form4.frm

Private Sub Command1_Click()

Data1.Recordset.MoveFirst

While Not Data1.Recordset.EOF

If Text1 = Data1.Recordset.Fields(0) And Text6 =

Data1.Recordset.Fields(1) Then

Text2 = Data1.Recordset.Fields(1)

Text3 = Data1.Recordset.Fields(2)

Text4 = Data1.Recordset.Fields(4)

End If

Data1.Recordset.MoveNext

Wend

End Sub

Private Sub Command2_Click()

Data1.Recordset.MoveFirst

While Not Data1.Recordset.EOF

If Text1 = Data1.Recordset.Fields(2) Then

Data1.Recordset.Edit

Text2 = Data1.Recordset.Fields(1)

Text3 = Data1.Recordset.Fields(2)

Text4 = Data1.Recordset.Fields(4)

Data1.Recordset.Fields(3) = Text7

Data1.Recordset.Fields(4) = 10 +

Data1.Recordset.Fields(3)

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Wend

MsgBox "Book Renewed"

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

71

End Sub

Private Sub FORM13_Click()

Me.Hide

Form2.Show

End Sub

Form5.frm

Private Sub Command1_Click()

Dim J As Integer

J = 0

Data1.Recordset.MoveFirst

While Not Data1.Recordset.EOF

If Text1 = Data1.Recordset.Fields(2) And Text2 =

Data1.Recordset.Fields(1) Then

J = 1

Data1.Recordset.Edit

Data1.Recordset.Delete

MsgBox " Book Returned"

End If

Data1.Recordset.MoveNext

Wend

Data2.Recordset.MoveFirst

While Not Data1.Recordset.EOF

If Data2.Recordset.Fields(0) = Text1 Then

Data2.Recordset.Edit

Data2.Recordset.Fields(2) =

Data1.Recordset.Fields(2) + 1

Data2.Recordset.Update

End If

Data2.Recordset.MoveNext

Wend

If Not J = 1 Then

MsgBox "BOOK IS NOT AVAILABLE"

End If

End Sub

Private Sub Command2_Click()

Me.Hide

Form2.Show

End Sub

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

72

OUTPUT FORM

Login Form : (Form1.frm)

Choice Form : (Form2.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

73

Borrow Book : (Form3.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

74

Renewal : (Form4.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

75

Return : (Form5.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

76

RESULT:

Thus the Library information system was developed by using visual basic

in front end and MS-Access in back end.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

77

COURSE REGISTRATION SYSTEM

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

78

COURSE REGISTRATION SYSTEM

AIM:

To develop the course registration system by using visual basic as front end and

MS-access as back end.

PROGRAM ANALYSIS AND PROJECT PLANNING

PURPOSE:

The purpose of the program analysis and project planning is to fully describe the

functionality of course registration system identified and it also describe non-functional

requirements and design control and other factors.

PROJECT SCOPE:

The program analysis and project planning applies to the course registration

system.Initially the project is going to be implement interact level and later the

organization has an idea to upgrade in internet level the project merit include this project

might suppresses the complication in manual course registration.

OBJECTIVES:

It reduces the workload of institutions and students,by the system

registration will not offer the physical appearance of the applier.

It consumes more time.

HARDWARE REQUIREMENTS:

4. Pentium Processor

5. Intel Motherboard

6. RAM 256MB(minimum)

7. Hard disk 40GB(minimum)

SOFTWARE REQUIREMENTS:

10. Microsoft VisualBasic6.0

11. Microsoft Access

12. Rational Rose

SOFTWARE REQUIRMENT ANALYSIS:

The following sub sections describe the usage of the payroll

system.There are five modules.

Use entry

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

79

Verification of password

Student details

Select the college

Select the desired course

INTENDED AUDIENCE:

Student

Administrator

PRODUCT FUNCTIONS:

Here short briefing on course registration.It has the following five

modules. The modules are:-

1. USER ENTRY:

The user has to provide the user name and the pin number.The pin is the four

digit number, which is also called a secret key known to the user.

2.VERIFICATION OF PASSWORD:

The password is matched with one already present in the data base is the

password is scanned.If the password is correct the user is logged in else the false message

is generated.

3. STUDENT DETAILS:

The student will enter their personal details and their academic

details.Depending upon that information the desired college and course will be registered

for each student.

4.COLLEGE DETAILS:

Using the database,name of each college will be stored and displayed.

5.COURSE DETAILS:

Available course in each college will be displayed.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

80

COURSE REGISTRATION SYSTEM

USECASE DIAGRAM:

available course

seat details

database

manager

registration course selection

student details

universityupdate

college details

student

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

81

CLASS DIAGRAM:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

82

SEQUENCE DIAGRAM:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

83

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

84

COLLABORATION DIAGRAM:

student universit

y

college

9: check the status of the student

1: enter the user name and password3: send details

5: enter the name

2: enter the mark4: enter the college name

6: verify the college

10: update student details

7: send college details0

8: select the college and department

VB SOURCE CODE

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

85

Form1.frm:

Private Sub Command1_Click()

If Trim(Text1.Text) = "admin" And Trim(Text2.Text) = "sec" Then

Frame1.Visible = True

Else

MsgBox "enter valid id"

End If

End Sub

Private Sub Command2_Click()

If Text3.Text = " " Or Text4.Text = " " Or Text5.Text = " " Then

MsgBox "enter details "

Else

Form2.Show

End If

Form2.Text1.Text = Text3.Text

Form2.Text2.Text = Text4.Text

Form2.Text3.Text = Text5.Text

End Sub

Private Sub Command3_Click()

End

End Sub

Private Sub Form_Load()

Me.Left = 250

Me.WindowState = 2

End Sub

Form2.frm:

Private Sub Combo1_Click()

Select Case (Combo1.ListIndex)

Case 0

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0) = "sudharsan engineering college" Then

Call info

End If

Data1.Recordset.MoveNext

Loop

Case 1

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0) = "JJ college of engineering" Then

Call info

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

86

End If

Data1.Recordset.MoveNext

Loop

Case 2

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0) = "PSNA engineering college" Then

Call info

End If

Data1.Recordset.MoveNext

Loop

Case 3

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0) = "CIT engineering college" Then

Call info

End If

Data1.Recordset.MoveNext

Loop

Case 4

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0) = "GUINDY engineering college" Then

Call info

End If

Data1.Recordset.MoveNext

Loop

End Select

End Sub

Private Sub Form_Load()

Me.WindowState = 2

End Sub

Public Sub info()

Text4.Text = Data1.Recordset.Fields(0).Value

Text5.Text = Data1.Recordset.Fields(1).Value

Text6.Text = Data1.Recordset.Fields(2).Value

Text7.Text = Data1.Recordset.Fields(3).Value

Text8.Text = Data1.Recordset.Fields(4).Value

Text9.Text = Data1.Recordset.Fields(5).Value

Text10.Text = Data1.Recordset.Fields(6).Value

Text11.Text = Data1.Recordset.Fields(7).Value

Text12.Text = Data1.Recordset.Fields(8).Value

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

87

Text13.Text = Data1.Recordset.Fields(9).Value

Text14.Text = Data1.Recordset.Fields(10).Value

Text15.Text = Data1.Recordset.Fields(11).Value

Text16.Text = Data1.Recordset.Fields(12).Value

Text17.Text = Data1.Recordset.Fields(13).Value

Text18.Text = Data1.Recordset.Fields(14).Value

Text19.Text = Data1.Recordset.Fields(15).Value

End Sub

Private Sub Text10_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

Data1.Recordset.Edit

Text10.Text = Val(Text10.Text) - 1

Data1.Recordset.Fields(6).Value = Text10.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "it"

End Sub

Private Sub Text11_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

Data1.Recordset.Edit

Text11.Text = Val(Text11.Text) - 1

Data1.Recordset.Fields(7).Value = Text11.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "it"

End Sub

Private Sub Text12_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

Data1.Recordset.Edit

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

88

Text12.Text = Val(Text12.Text) - 1

Data1.Recordset.Fields(8).Value = Text12.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "it"

End Sub

Private Sub Text13_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

Data1.Recordset.Edit

Text13.Text = Val(Text13.Text) - 1

Data1.Recordset.Fields(9).Value = Text13.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "it"

End Sub

Private Sub Text14_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

Data1.Recordset.Edit

Text14.Text = Val(Text14.Text) - 1

Data1.Recordset.Fields(10).Value = Text14.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "eee"

End Sub

Private Sub Text15_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

89

Data1.Recordset.Edit

Text15.Text = Val(Text15.Text) - 1

Data1.Recordset.Fields(11).Value = Text15.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "eee"

End Sub

Private Sub Text16_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

Data1.Recordset.Edit

Text16.Text = Val(Text16.Text) - 1

Data1.Recordset.Fields(12).Value = Text16.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "eee"

End Sub

Private Sub Text17_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

Data1.Recordset.Edit

Text17.Text = Val(Text17.Text) - 1

Data1.Recordset.Fields(13).Value = Text17.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "eee"

End Sub

Private Sub Text18_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

90

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

Data1.Recordset.Edit

Text18.Text = Val(Text18.Text) - 1

Data1.Recordset.Fields(14).Value = Text18.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "eee"

End Sub

Private Sub Text19_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

Data1.Recordset.Edit

Text19.Text = Val(Text19.Text) - 1

Data1.Recordset.Fields(15).Value = Text19.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "eee"

End Sub

Private Sub Text5_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

Data1.Recordset.Edit

Text5.Text = Val(Text5.Text) - 1

Data1.Recordset.Fields(1).Value = Text5.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "cse"

End Sub

Private Sub Text6_Click()

Data1.Recordset.MoveFirst

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

91

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

Data1.Recordset.Edit

Text6.Text = Val(Text6.Text) - 1

Data1.Recordset.Fields(2).Value = Text6.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "cse"

End Sub

Private Sub Text7_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

Data1.Recordset.Edit

Text7.Text = Val(Text7.Text) - 1

Data1.Recordset.Fields(3).Value = Text7.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "cse"

End Sub

Private Sub Text8_Click()

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

Data1.Recordset.Edit

Text8.Text = Val(Text8.Text) - 1

Data1.Recordset.Fields(4).Value = Text8.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "cse"

End Sub

Private Sub Text9_Click()

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

92

Data1.Recordset.MoveFirst

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0).Value = Combo1.Text Then

Data1.Recordset.Edit

Text9.Text = Val(Text9.Text) - 1

Data1.Recordset.Fields(5).Value = Text9.Text

Data1.Recordset.Update

End If

Data1.Recordset.MoveNext

Loop

Form3.Show

Form3.Text2.Text = "it"

End Sub

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

93

OUTPUT FORMS

Login Form : (Form1.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

94

Course Details : (Form2.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

95

Acknowledgement Form : (Form3.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

96

RESULT:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

97

Thus the Course registration system was developed by using visual basic in front

end and MS-Access in back end.

STOCK MAINTENANCE

SYSTEM

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

98

STOCK MAINTENANCE SYSTEM

AIM

To develop the stock maintenance project. It can be used to maintain the details about

a stock contained by some company.

PROJECT DESCRIPTION

Stock maintenance project mainly used to store the stock details and retrieve the

data. Stock entry forms are used to update the databases. The sale form can be used to

view the sales details. The company return form can be used to show the details of

defective products. Item details can be used to show the current status of the stock. The

exit buttons closes the forms of the project.

HARDWARE REQUIREMENTS

Pentium IV Processor

Intel Motherboard

RAM(256 MB)

HARD DISK(20GB)

SOFTWARE REQUIREMENTS

Rational Rose

Microsoft VB 6.0

MS-Access

MODULES

Authentication

Stock entry

Sales Details

Order Details

Item Details

MODULE DESCRIPTION

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

99

1. Authentication Get the username and password validate it accordingly.

2. Stock Entry

Product purchased details are entered through this form. It can be used

to enter the item code name, bought cost, company name and no. of items. The data is

then stored in the database.

3. Stock Details

In this module its used to store the sales product details and also show

the sales details.

4. Order Details

Order details form can be used to generate orders and view previous

stored order details.

5. Item Details

Show the current details of the stock details.

NON FUNCTIONALITY

SECURITY

It is a source project because it contains user id and password.

MAINTAINABILITY

Authorized user only can access it, thus it is easily maintainable.

AVAILABILITY

It is available for all type of companies (i.e.) large scale or small scale.

FLEXIBILITY

It is a user friendly project. More modules can be easily added, thus it is

quite flexible.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

100

STOCK MAINTANANCE SYSTEM

UseCase Diagram:

Authentication

Item

Purchase details

Delivery report

User

Quality remaining

User

Class Diagram:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

101

Sequence Diagram:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

102

admin stock user

username and password

check

checking status

order the item

checking for the order

processing

report the order

delivery status

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

103

Collaboration Diagram:

admin stock

user

2: check6: processing

1: username and password5: checking for the order

3: checking status7: report the order

8: delivery status 4: order the item

VB SOURCE CODE

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

104

Form1.frm

Private Sub Command1_Click()

If (Text1.Text = "Ramesh" And Text2.Text =

"sec") Then

Unload Me

Form11.Show

Else

MsgBox "Wrong Password"

End If

End Sub

Private Sub Command2_Click()

End

End Sub

Form11.frm

Private Sub Command1_Click()

Form111.Show

Form11.Visible = False

End Sub

Private Sub Command2_Click()

Form112.Show

Form11.Visible = False

End Sub

Private Sub Command3_Click()

Form113.Show

Form11.Visible = False

End Sub

Private Sub Command4_Click()

Form2.Show

Form11.Visible = False

End Sub

Private Sub Command5_Click()

Form8.Show

Form2.Visible = False

End Sub

Form111.frm

Private Sub Command1_Click()

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

105

MsgBox ("ADD DATA")

Data1.Recordset.MoveLast

Data1.Recordset.AddNew

Data1.Recordset.Fields(0) = Form111.Text1.Text

Data1.Recordset.Fields(1) = Form111.Text2.Text

Data1.Recordset.Fields(2) = Form111.Text3.Text

Data1.Recordset.Fields(3) = Form111.Text4.Text

Data1.Recordset.Fields(4) = Form111.Text5.Text

Data1.Recordset.Update

End Sub

Private Sub Command2_Click()

Data1.Recordset.Delete

Data1.Recordset.MoveNext

MsgBox ("DATA DELETED")

End Sub

Private Sub Command3_Click()

Data1.Refresh

End Sub

Private Sub Command4_Click()

Data1.UpdateRecord

Data1.Recordset.Bookmark =

Data1.Recordset.LastModified

MsgBox ("DATA UPDATE")

End Sub

Private Sub Command5_Click()

Form11.Show

Form111.Hide

End Sub

Form112.frm

Private Sub Command1_Click()

MsgBox ("ADD DATA")

Data1.Recordset.AddNew

Data1.Recordset.Fields(0) = Form112.Text1.Text

Data1.Recordset.Fields(1) = Form112.Text2.Text

Data1.Recordset.Fields(2) = Form112.Text3.Text

Data1.Recordset.Fields(3) = Form112.Text4.Text

Data1.Recordset.Fields(4) = Form112.Text5.Text

Data1.Recordset.Update

End Sub

Private Sub Command2_Click()

Form11.Show

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

106

Me.Hide

End Sub

Private Sub Command3_Click()

Form112.Text1.Text = ""

Form112.Text2.Text = ""

Form112.Text3.Text = ""

Form112.Text4.Text = ""

Form112.Text5.Text = ""

End Sub

Form113.frm

Private Sub Command2_Click()

Data1.Recordset.Delete

Data1.Recordset.MoveNext

MsgBox ("DATA DELETED")

End Sub

Private Sub Command3_Click()

Data1.Refresh

End Sub

Private Sub Command4_Click()

Data1.UpdateRecord

Data1.Recordset.Bookmark = Data1.Recordset.LastModified

MsgBox ("DATA UPDATED")

End Sub

Private Sub Command5_Click()

Form2.Show

Form1.Text1 = " "

Form1.Text2 = " "

End Sub

Private Sub Command6_Click()

MsgBox ("ADD DATA")

Data1.Recordset.AddNew

Data1.Recordset.Fields(0) = Form113.Text1.Text

Data1.Recordset.Fields(1) = Form113.Text2.Text

Data1.Recordset.Fields(2) = Form113.Text3.Text

Data1.Recordset.Fields(3) = Form113.Text4.Text

Data1.Recordset.Fields(4) = Form113.Text5.Text

Data1.Recordset.Fields(5) = Form113.Text6.Text

Data1.Recordset.Fields(6) = Form113.Text7.Text

Data1.Recordset.Update

End Sub

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

107

Form2.frm

Private Sub Command1_Click()

Form21.Show

Form11.Hide

End Sub

Private Sub Command2_Click()

Form22.Show

Form11.Hide

End Sub

Private Sub Command3_Click()

Form11.Show

Form22.Hide

End Sub

Form21.frm

Private Sub Command1_Click()

Data1.Recordset.MoveLast

Data1.Recordset.AddNew

Data1.Recordset.Fields(0) = Text1.Text

Data1.Recordset.Fields(1) = Text2.Text

Data1.Recordset.Fields(2) = Text3.Text

Data1.Recordset.Fields(3) = Text4.Text

Data1.Recordset.Fields(4) = Text5.Text

Data1.Recordset.Update

Data1.Recordset.MoveNext

MsgBox "ordered"

End Sub

Private Sub Command2_Click()

Form2.Show

Form21.Hide

End Sub

Form22.frm

Private Sub Command2_Click()

Form2.Show

Form22.Hide

End Sub

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

108

OUTPUT FORM

Login Form : (Form1.frm)

Choice : (Form11.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

109

Items : (Form111.frm)

Ordered Items : (Form112.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

110

Order Items : (Form21.frm)

Ordered Delivery System : (Form2.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

111

Results:

Thus Stock maintenance project was successfully completed.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

112

ATM SYSTEM

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

113

ATM SYSTEM

INTRODUCTION:

GOAL:

Software development process involves four modules:

analysis,designing,coding and testing of the software.Our goal is to develop software for

ATM system interaction,which is available to all users.this ATM system is easy to access

and is available all over India with 24 hours of service.

OBJECTIVE:

Our objective is to understand the software to be developed,analyze the

process and finally implement the concepts to develop software.The primary objective is

to implement ATM system.

1.only bank clients can access ATM with their card.

2.Others users are not allowed to access ATM.

INFORMATION DESCRIPTION:

DETAILED DESCRIPTION:

The client must be able to deposit amount to and withdraw amount from their

account using ATM system.Each transaction must be recorded and the client must be

able to review all transaction performed against given amount.

When the client inserts the ATM card,the approval process is enabled.The

system asks to enter the pin code.If code is valid,the client’s account is available.If the

code is invalid,an appropriate message is displayed to the client.

When the client’s account is available,the screen displays four features for the

client.One is to check the transaction made.Second to deposit amount.Third is to

withdraw amount and the final option is to save the transaction.

The client may need to deposit the amount and select this feature.This feature

gets input from the client.It asks for the amount to be deposited and the deposit is in the

way of cash.

The client can also withdraw the amount. The withdraw amount screen asks

for the amount to be withdrawn. This verifies the amount to check whether the amount is

available or not.If it is available,it asks to eject cash and perform ejection.If it is not

available,then the appropriate message is displayed.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

114

The client then,can save the transaction.The system creates the record of the

transaction.This is made whenever amount is deposited or withdrawn.A printed slip is

ejected for the client to know about their transaction.

The client can also check the transaction.The system displays the account

information and the transaction history.The client can also have a print of account

information.

After the client’s transaction is over,he/she requests to eject the card.The

ATM system process is over.

HARDWARE DESCRIPTION:

1. Intel Motherboard with Pentium Processor

2. RAM 256MB(minimum)

3. Hard disk 40GB(minimum)

SOFTWARE DESCRIPTION:

13. Microsoft VisualBasic6.0

14. Microsoft Access

15. Rational Rose

INTERFACE DESCRIPTION:

We will design a user interface,which will be user interactive and will be

designed in such a way that it will get all the required details and will check for

validation.After authentication,the access will be given to the users.

FUNCTIONAL DESCRIPTION:

PERFORMANCE CHARACTERISTICS:

The ATM system is designed for clients will allow withdrawal of up to

Rs.15,000/=only.The amount exceeding that will not be allowed.Transaction slip will

give the details of account balance,account number and last date of transaction.

DATABASE REQUIREMENTS:

A database required for ATM system that include client name,account

number,pin number,balance,transaction and last transaction.This is maintained by

creating a database in MS Access.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

115

NON- FUNCTIONAL REQUIREMENTS:

RELIABILITY:

Yes,the software is designed considering the reliability of the ATM system.

AVAILABILITY:

Yes, ATM system is made available for clients with 24-hour service all over

India.

SECURITY:

Yes,ATM systems are more secured,as PIN numbers are known only to

those clients who access it.

MAINTAINABILITY:

Yes,easier the maintenance and update the database.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

116

AUTOMATIC TELLER MACHINE

USECASE DIAGRAM:

user

Enter pin

Withdraw

Deposit

Checktransaction

atm

admin1check

CLASS DIAGRAM:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

117

SEQUENCE DIAGRAM:

atm ADMIN

check pin no

pin valid/invalid

check account

display status

check amount

display status

update account

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

118

COLLABORATION DIAGRAM:

atm ADMIN

1: check pin no

3: check account

5: check amount

7: update account

2: pin valid/invalid

4: display status

6: display status

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

119

VB SOURCE CODE

Choice.frm

Private Sub Command1_Click()

User.Show

Unload Me

End Sub

Private Sub Command3_Click()

Unload Me

End Sub

User.frm

Private Sub Command1_Click()

Withdraw.Show

Unload Me

End Sub

Private Sub Command3_Click()

ViewBalance.Show

Unload Me

End Sub

ViewBalance.frm

Dim db As Database

Dim rs As Recordset

Private Sub Command1_Click()

rs.MoveFirst

Do Until rs.EOF

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

Text3.Text = rs(2)

a = rs(2)

End If

rs.MoveNext

Loop

End Sub

Private Sub Command3_Click()

User.Show

Unload Me

End Sub

Private Sub Command4_Click()

Unload Me

End Sub

Private Sub Form_Load()

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

120

Set db = OpenDatabase("E:\PRINT OUT OOAD\CASE PRINTOUT\CASE

PRINTOUT\Automatioc Teller Machine\ATM.mdb")

Set rs = db.OpenRecordset("USER")

End Sub

Withdraw.frm

Dim db As Database

Dim rs As Recordset

Dim a As Double

Private Sub Command1_Click()

Command2.Enabled = True

rs.MoveFirst

Do Until rs.EOF

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

Text3.Text = rs(2)

a = rs(2)

End If

rs.MoveNext

Loop

End Sub

Private Sub Command2_Click()

rs.MoveFirst

Do Until rs.EOF

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

a = rs(2)

rs.Edit

rs(2) = a - Text2.Text

Text3.Text = rs(2)

Text2.Text = ""

rs.Update

MsgBox "Amount Withdrawed"

End If

rs.MoveNext

Loop

End Sub

Private Sub Command3_Click()

User.Show

Unload Me

End Sub

Private Sub Command4_Click()

Unload Me

End Sub

Private Sub Form_Load()

Set db = OpenDatabase("E:\PRINT OUT OOAD\CASE PRINTOUT\CASE

PRINTOUT\Automatioc Teller Machine\ATM.mdb")

Set rs = db.OpenRecordset("USER")

End Sub

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

121

OUTPUT FORM

Form 1 : (Choice.frm)

Form 2 : (User.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

122

Form 3 : (Withdraw.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

123

Form 4 : (ViewBalance.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

124

RESULT: Thus the ATM System was developed by using visual basic in front end

and MS-Access in back end.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

125

EXPERT SYSTEM

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

126

EXPERT SYSTEM

AIM:

To develop an expert system using visual basic in front end and MS

Access as back end.

PROGRAM ANALYSIS AND PROJECT PLANNING:

PURPOSE:

The expert system takes inspiration Medical Transcription system as a

system where the doctors reward the patient’s disease and display the reports

corresponding to their disease.

PROJECT SCOPE:

The Doctor Patient and system provide all the function

Login

Updating Patient Details

Billing

Medicine Catalog

SOFTWARE REQUIREMENT ANALYSIS:

INTENDED AUDIENCE:

Patient

Doctor

Administrator

PRODUCT FUNCTIONS:

ENTER SYMPTOMS:

Here the patient goes to the doctor his/her treatment and tells the

symptoms to the doctor.Then the doctor takes about the disease and prescribes few

medicines some instructions.

MEDICINE CATALOG:

Patient gets that the medicine from the medical shop and the entires are

entered in the database.

GENERATION OF REPORTS:

All the details about the patient and his/her disease are finally entered in

the database.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

127

DOCTOR FORM:

For getting patient name and symptoms and display reports.

OFFICIAL FORM:

For getting patient details and billing.

PATIENT DATABASE:

For updating patient and increment acquire.

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

128

EXPERT SYSTEM

USECASE DIAGRAM:

View The Bill and Report

Doctor

Maintain Patient Details

Issue Bill Report

OfficialMaintain Doctor

Billing System

Login

Patient

Diagonsis DiseaseMedicine_Catalog

Medicine Catalog Up Pattern

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

129

CLASS DIAGRAM:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

130

SEQEUENCE DIAGRAM:

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

131

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

132

COLLABORATION DIAGRAM:

admin patient

front

panel

patient

db

doctor

form

medical

catalog

3:

5: Add Patient Details

6: Get Details From Patient Name

7: Get Symptomps

8: Display Report

1: Enter Username & Password2: Validate Username & Password

4: Enter The Symptomps

9: Send Disease Name

VB SOURCE CODE Form 1.frm

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

133

Dim a As Boolean

Private Sub Command1_Click()

Data1.Refresh

Data1.Recordset.MoveFirst

a = False

Do While Not Data1.Recordset.EOF

If Data1.Recordset.Fields(0) = Trim(Text1.Text) And

Data1.Recordset.Fields(1) = Trim(Text2.Text) Then

a = True

Text2.Text = Data1.Recordset.Fields(2)

Text3.Text = Data1.Recordset.Fields(3)

Text4.Text = Data1.Recordset.Fields(4)

Form3.Text4.Text = Data1.Recordset.Fields(5)

Exit Do

End If

Data1.Recordset.MoveNext

Loop

If Not a Then

MsgBox "Not consulted any doctor"

Form2.Show

End If

End Sub

Private Sub Command2_Click()

End

End Sub

Private Sub Command3_Click()

Form3.Show

End Sub

Form2.frm

Private Sub Command1_Click()

Form1.Show

End Sub

Private Sub Command2_Click()

Data1.Recordset.MoveLast

Data1.Recordset.AddNew

Data1.Recordset.Fields(0) = Text1.Text

Data1.Recordset.Fields(1) = Text2.Text

Data1.Recordset.Fields(2) = Text3.Text

Data1.Recordset.Fields(3) = Text4.Text

Data1.Recordset.Fields(4) = Text5.Text

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

134

Data1.Recordset.Fields(5) = Text6.Text

Data1.Recordset.Update

MsgBox "DATA ADDED"

End Sub

Form3.frm

Option Explicit

Private Sub Command1_Click()

If Text2.Text = "fever" Then

Text3.Text = "Paracetamol"

Form4.Text4.Text = "50"

ElseIf Text2.Text = "headache" Then

Text3.Text = "cold act"

Form4.Text4.Text = "25"

ElseIf Text2.Text = "vomit" Then

Text3.Text = "vomitstop"

Form4.Text4.Text = "75"

ElseIf Text2.Text = "acidity" Then

Text3.Text = "Gelucil"

Form4.Text4.Text = "60"

ElseIf Text2.Text = "stomachpain" Then

Text3.Text = "Bolex"

Form4.Text4.Text = "25"

ElseIf Text2.Text = "cold" Then

Text3.Text = "Action500"

Form4.Text4.Text = "70"

Else

MsgBox "Enter proper disease"

End If

End Sub

Private Sub Command2_Click()

End

End Sub

Private Sub Command3_Click()

Form4.Show

End Sub

Private Sub Form_Load()

Text1.Text = Date

End Sub

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

135

Form4.frm

Private Sub Command1_Click()

Form5.Show

End Sub

Private Sub Form_Load()

Text1.Text = Form1.Text1.Text

Text2.Text = Form3.Text2.Text

Text3.Text = Form3.Text3.Text

End Sub

Form5.frm

Option Explicit

Private Sub Command1_Click()

MsgBox "GET WELL SOON"

End

End Sub

Private Sub Form_Load()

Text2.Text = Form4.Text4.Text

Text1.Text = "100"

End Sub

OUTPUT FORMS

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

136

Patient Details : (Form1.frm)

Medicine Details : (Form2.frm)

Bill Amount : (Form3.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

137

Consulting Fee : (Form5.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

138

Details : (Form2.frm)

CSEITQUESTIONS.BLOGSPOT.IN | CSEITQUESTIONS.BLOGSPOT.IN

139

RESULT:

Thus the Expert system was developed by using visual basic in front end

and MS-Access in back end.


Recommended