SUDHARSAN ENGINEERING COLLEGE SATHIYAMANGALAM DEPARTMENT OF MCA

LAB MANUAL CA5205-CASE TOOLS LAB YEAR/SEM: II/III ACADEMIC YEAR(2010-2011) BATCH:(2009-2012) SUBMITTED BY R.YUVARANI

1

SYLLABUS CA5205 CASE TOOLS LABORATORY
LTPC 0032

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.

2

SUDHARSAN ENGINEERING COLLEGE SATHIYAMANGALAM
DEPARTMENT OF MCA

CA5205-CASE TOOLS LAB LIST OF EXPERIMENTS

Year/Sem: II /III DEPT :MCA

DATE :09.07.10

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.
3

R.9. Develop a Expert System Software.YUVARANI STAFF-INCHARGE HoD/MCA ONLINE QUIZ SYSTEM 4 .

Intel Motherboard With Pentium Processor 2. 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. OBJECTIVES:    Easy to use Modern way of learning. 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.ONLINE QUIZ SYSTEM AIM: To develop the online quiz system by using visual basic as front end and MS-access as back end. Including the students power to answer. RAM 256MB(minimum) 3. Hard disk 40GB(minimum) SOFTWARE REQUIREMENTS: 1. HARDWARE REQUIREMENTS: 1. Microsoft VisualBasic6.0 5 .

INTENDED AUDIENCE: • Administrator • Staff • Student PRODUCT FUNCTIONS: ADMINISTRATOR: Administrator has ability to register the student to provide user-id and password. Microsoft Access 3. STAFF: Prepare question for exam and set the parameter add subject.  Online Testing. Rational Rose SOFTWARE REQUIRMENT ANALYSIS: OVERALL DESCRIPTION: The product will take with inspiration auto used system.staff and system administration.  Multimedia representation of question and answer if needed.the students must have a user ID and password 6 .  Random generation of questions.modify the test. STUDENT: Under takes online test the must be able to answer the question and get the marks.2.All the function provide by the students.

ONLINE QUIZ SYSTEM USE CASE DIAGRAM: Authentication Question setup user Admin Quiz score 7 .

CLASS DIAGRAM:
questionsetup question : string option1 : string option2 : string option 3 : string option 4 : string add() edit() update()

Admin1 name : string password : string check()

user1 id : int answering() submit()

score display()

8

SEQUENCE DIAGRAM:

user enter id

admin

database

id entered check id

check if admin or user check result display question answering

verify answer verification result

mark calculation

display score

9

COLLABORATION DIAGRAM:
4: check if admin or user

user 3: check id 8: verify answer

databas e 2: id entered 7: answering

10: mark calculation 1: enter id 6: display question 11: display score admin 5: check result 9: verification result

10

frm Private Sub Command1_Click() Form1.Recordset.MoveFirst Do While Not Data1.Fields(0) = Trim(Text1.Text) Then Form2.Show Unload Me End Sub 11 .Regrunp\TOTAL COLLECTIONS\Login Backup\CASE PRINTOUT\CASE PRINTOUT\quiz\QUIZ.mdb") Set rs = db.Recordset.Recordset.EOF If Data1.Recordset.VB SOURCE CODE Form1.OpenRecordset("quiz") End Sub Form2.Text) Then If Data1.Fields(1) = Trim(Text2.MoveNext Loop End Sub Private Sub Command2_Click() End End Sub Private Sub Form_Load() Set db = OpenDatabase("E:\ArunMani .frm Dim db As Database Dim rs As Recordset Private Sub Command1_Click() Data1.Show Unload Me Else MsgBox ("Password Is Incorrect") Exit Do End If End If Data1.Recordset.Show Unload Me End Sub Private Sub Command2_Click() Form3.

Label4.Value = False Option2.Caption Form5.Label3.Label4.Caption = 5 End Sub 12 .Label6.Private Sub Form_Activate() Option1.Caption = 0 End Sub Private Sub Option3_Click() Form5.Label5.Caption Form5.Caption Form5.Caption = "correct" Form5.Value = False Option3.Label8.Show Unload Me End Sub Private Sub Form_Activate() Option1.Value = False End Sub Private Sub Option1_Click() Form5.Caption = 5 End Sub Form3.Caption = 0 End Sub Private Sub Option2_Click() Form5.Label8.Caption = Option2.Caption = Option1.Label7.Caption = "wrong" Form5.Label3.frm: Private Sub Command1_Click() Form2.Label3.Caption = "wrong" Form5.Value = False End Sub Private Sub Option1_Click() Form5.Label5.Caption = 0 End Sub Private Sub Option2_Click() Form5.Label4.Label7.Show Unload Me End Sub Private Sub Command2_Click() Form4.Caption = Option1.Caption = Option3.Caption = "wrong" Form5.Caption = Option2.Caption Form5.Value = False Option3.Label5.Caption = "correct" Form5.Label6.Caption Form5.Value = False Option2.

Caption = Option2.Value = False End Sub Private Sub Option1_Click() Form5.Caption = Val(Label5.Caption = Option1.Label6.Caption Form5.Caption = "wrong" Form5.Label7.Caption = 0 End Sub Form4.Caption) If Val(Label13.Caption = Option3.Caption) >= 10 Then MsgBox "Congratulations".Label11.Label9.Label9.Label11.Label10.Caption Form5.Caption = "Wrong" Form5.Caption Form5.frm: Private Sub Command1_Click() Form3.Value = False Option2.Caption = "Correct" Form5.Label9.Label10.Label11.Private Sub Option3_Click() Form5.frm: Private Sub Command1_Click() End End Sub Private Sub Command2_Click() Label13.Caption) + Val(Label8.Caption) + Val(Label11.Show Unload Me End Sub Private Sub Command2_Click() Form5.Caption = 0 End Sub Form5.Show Unload Me End Sub Private Sub Form_Activate() Option1.Label10. vbInformation Else MsgBox ("Better Luck Next Time") End If 13 .Caption Form5.Caption = 0 End Sub Private Sub Option3_Click() Form5.Value = False Option3.Caption = 5 End Sub Private Sub Option2_Click() Form5.Caption = Option3.Label8.Caption = "Wrong" Form5.

frm) 14 .End Sub OUTPUT FORM Login form : (Form1.frm) Question 1 : (Form2.

Question 2 : (Form3.frm) Question 3 : (Form4.frm) 15 .

frm) 16 .Results : (Form5.

17 .

18 .RESULT: Thus the Payroll system was developed by using visual basic in front end and MSAccess in back end.

TICKET RESERVATION SYSTEM 19 .

INFORMATION DESCRIPTION: DETAILED DESCRIPTION OF PROJECT:     Search for the required train. HARDWARE DESCRIPTION: 1. Hard disk 40GB(minimum) SOFTWARE DESCRIPTION: 4.0 5.it is an online interface which will satisfy the users needs. Check for the availability of the ticket. RAM 256MB(minimum) 4.TICKET RESERVATION SYSTEM AIM: To create a simple and easier method of reserving train tickets. Rational Rose HUMAN INTERFACE DESCRIPTION: Interface going to be used is a user friendly interface. Else search for another train. Microsoft Access 6.You can know the train timings. If available reserve the ticket.and much more in just a few clicks. Intel Motherboard 3. FUNCTIONAL DESCRIPTION: PERFORMANCE CHARACTERISTICS:  Fast access 20 .Pentium Processor 2. OBJECTIVE: The main objective of our railway reservation system is to serve as a very effective and premium portal for the reservation of railways.train routes.ticket availability. Microsoft VisualBasic6.

senior citizens etc. The history of reservation is maintained..timings etc. 2. Above database are stored in MS-Access. 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. 21 . Percentage of concessions according to persons such as students. BEHAVIOUR DESCRIPTION: This project has mainly two functions:1. Specified at the time of reservation. The money will be automatically refunded in the bank account.Reservation  Easy and fast steps to reserve a ticket. DATABASE REQUIREMENTS: • • • • Details of Indian trains. Fare of trains according to classes.. NON FUNCTIONAL REQUIREMENTS: AVAILABILITY: Available to all systems around the clock.  Simple steps for reservation and cancellation.. Easy access for end users.Cancellation     Easy and few steps to cancel the tickets.. Available in any environment Suites for everyone that is no credit card needed. Less memory space required.  Before reserving we can check the availability.

TICKET RESERVATION SYSTEM USECASE DIAGRAM: USER DETAILS TRAIN MASTER DETAILS ADMIN RESERVATION/CANCELLATION USER CHECK AVAILABILITY CONFIRMATION CLASS DIAGRAM: 22 .

ADMIN1 ADMINID : INT VERIFICATION() ALLOTMENT() CANCELLATION() CLIENT NAME : STRING PLACE : STRING TIMING : DATE RESERVATION() CANCELLATION() DATABASE TRAINNO : INT CUSTOMERNAME : STRING TIMING : DATE AVAILABLESEAT : INT CHECKING() UPDATE() SEQUENCE DIAGRAM: 23 .

ADMIN USER DATABASE USER ENQUIRY RESERVATION CHECK AVAILABILITY NO OF SEATS ALLOTMENT CONFIRMATION UPDATION OF SEATS COLLABORATION DIAGRAM: 24 .

5: ALLOTMENT ADMIN 1: USER ENQUIRY 2: RESERVATION 6: CONFIRMATION USER 3: CHECK AVAILABILITY 7: UPDATION OF SEATS 4: NO OF SEATS DATABA SE 25 .

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

Recordset.30" Form2.Text3.Fields(0) = Trim(Text1.frm: Dim a.Text = "16.EOF If Data1.Text = Data1.30" ElseIf Text1.Combo1.Show End Sub Private Sub Command1_Click() a = Data1.Text = Form1.Text = "Theni" Then Form2. c As Integer Private Sub Command2_Click() Form3.Recordset.Text = "10.Text = "18.00" Form2.00" End If Data1.MoveNext Loop End Sub Form3.Text2.Fields(4) End If Data1.Text2.Text = Data1.Text = "10.Recordset.Text = "Hawra" Then Form2.Text2.Fields(0) = Text1.Text = "19.Text Data1.Hide Form2.Recordset.Private Sub Form_Load() Text1.Text3.Text3.Recordset.Text = "Vaigai" Then Form2.Text = "14.30" ElseIf Text1.Text = "Valluvan" Then Form2.Recordset.Text If b = 1 Then 27 .00" Form2.Text) Then Text4.30" ElseIf Text1.Text2.Text = "12.Text If Text1.00" Form2.Text = "18.Text = "13.Recordset.00" ElseIf Text1.Recordset.Refresh Data1.Fields(1) = Text2.00" Form2.Fields(3) Text5.Text3.Text3.Recordset.Text2. b.Refresh Data1.Text = "Pallavan" Then Form2.RecordCount Data1.Text = "23.MoveFirst Do While Not Data1.Recordset.AddNew Data1.

Fields(5) = Trim(Text2.Data1.Fields(5) = a Data1.Update MsgBox "your Seat Reserved" MsgBox a.Fields(2) = Option1.Recordset.Caption End If Data1.Text If c = 1 Then Data1.EOF If Data1.Recordset.Recordset.Recordset.Caption ElseIf c = 2 Then Data1. "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.Fields(0) = Trim(Text1.Recordset.Fields(4) = Option3.frm: Dim a As Boolean Private Sub Command1_Click() a = False Data1.Refresh Data1.Recordset.Text) Then If Data1. .Text a=a+1 Data1.Fields(3) = Text3.Recordset.MoveFirst Do While Not Data1.Recordset.Fields(2) = Option2.Text) Then 28 .Recordset.Recordset.Fields(4) = Option4.Fields(6) = Form2.Recordset.Caption End If Data1.Recordset.Caption ElseIf b = 2 Then Data1.Text1.

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

Recordset.Data1.frm) Train Timings : (Form2.frm) 30 .MoveNext Loop If Not a Then MsgBox "Ticket cancelled" End If End Sub Private Sub Command2_Click() End End Sub OUTPUT FORMS Train Selection : (Form1.Recordset.Update End If Data1.Delete Data1.Recordset.

frm) 31 .Reservation : (Form3.

frm) 32 .Cancellation : (Form5.

frm) 33 .Confirmation : (Form4.

34 .RESULT: Thus the Ticket reservation system was developed by using visual basic in front end and MS-Access in back end.

STUDENT’S INFORMATION SYSTEM 35 .

staff and student’s.The students will be allowed only to VIEW the records.Our goal is to develop software for storing student’s information.designing. 1. 36 . OBJECTIVE: Our objective is to first understand the software to be developed.which will include.to provide a secured and a reliable software to store the details of the student’s studying in our institution.analyze the process and finally implement the concepts to develop software along with the considerations for various user levels.Department 4.They will be provided with different access levels.coding and testing of the software. The administrator will be allowed to ADD.Student name 2.The staff members will be allowed to EDIT AND VIEW student’s records.Year 5.Marks We will have three different user:administrators.STUDENT’S INFORMATION SYSTEM INTRODUCTION: GOAL: Software development process involves four modules analysis.we will have a database as a back end to store the details of the student’s.no 6.which we have named as student’s information system.Address & ph.EDIT AND VIEW the student’s information. INFORMATION DESCRIPTION: DETAILED DESCRIPTION: In this project development.Register number 3.

The database will be linked in the forms created using VB.the users will be students.0 Microsoft Access Rational Rose FUNCTIONAL DESCRIPTION: PERFORMANCE CHARACTERISTICS: In this project. RAM 256MB(minimum) 3.staff members and administrators. Intel Motherboard with Pentium Processor 2. DATABASE REQUIREMENTS: We will use MS Access as a back end to store our information.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. Hard disk 40GB(minimum) SOFTWARE DESCRIPTION: Microsoft VisualBasic6.HARDWARE DESCRIPTION: 1. NON-FUNCTIONAL DESCRIPTION: RELIABILITY: The software is designed considering the reliability of ATM system. SECURITY: 37 . AVAILABILITY: This software will be available to all the users inside the campus.

The users are allowed to access the database after their user id and password gets authenticated. MAINTAINABILITY: Easier to maintain and update the database.This software will provide a good security by providing authentication. STUDENT MARK ANALYSIS SYSTEM USECASE DIAGRAM: authentication student admin percalculation student1 reports 38 .

CLASS DIAGRAM: student name : string regno : int department : string year : int batch : int dob : date address : string phoneno : int student detail() marks subject name : string marks : int student name : string admin1 userid : string pwd : string authentication() markdetail() percalculation pass : string fail : string destination : string firstclass : string secondclass : string result() report totalmarks : int percentage : int studentmarks(each) : int student marks : int report() 39 .

SEQUENCE DIAGRAM: 40 .

41 .

COLLABORATION DIAGRAM: 2: check 7: search 9: calculate 1: user id & password 6: mark analysis ADMIN 3: checking status 8: mark analysis db 4: enter reg no 10: report 5: reg no student 42 .

frm) Private Sub Command1_Click() Data1.EOF If Data1.Text) = "student" And Trim(Text2.Recordset.Recordset.Recordset.Recordset.Show Unload Me Else If Trim(Text1.Text) = "sec" Then Form2. vbOKCancel If vbOK Then 43 .Text Data1.Text) = "sec" Then Form3.Recordset.Text Data1.Text) Then MsgBox "RECORD FOUND" a = True MsgBox "Are you sure want to delete".Recordset.Recordset.Fields(0) = Text1.Fields(5) = Text6.frm) Private Sub Command1_Click() If Trim(Text1.Fields(0) = Trim(Text1.MoveFirst a = False Do While Not Data1.Text Data1.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.Text) = "staff" And Trim(Text2.Recordset.Text Data1.Show Unload Me Else If Trim(Text1.Text) = "cse" Then Form4.Fields(1) = Text2.Recordset.VB SOURCE CODE Login : (Form1.Fields(2) = Text3.Fields(3) = Text4.AddNew Data1.Update MsgBox "RECORD ADDED" End Sub Private Sub Command2_Click() Dim b As String Data1.Text Data1.Text) = "admin" And Trim(Text2.Text Data1.Recordset.Fields(4) = Text5.Recordset.

Show End If Exit Do End If Data1.Fields(4) Text6.Recordset.Fields(0) = Trim(Text1) Then Frame2.Fields(2) Text4.Data1.Recordset.Show ElseIf vbCancel Then Form2.Recordset.MoveFirst Do While Not Data1.MoveNext Loop If Not a Then MsgBox "RECORD NOT FOUND" End If End Sub Private Sub Command3_Click() Form4.EOF fnd = True If Data1.Text = Data1.Text = Data1.frm) Private Sub Command1_Click() Data1.Recordset.MoveNext Loop If Not fnd Then MsgBox "CHECK NAME AND NO" End If End Sub Private Sub Command2_Click() End End Sub 44 .Delete MsgBox "RECORD DELETED" Form2.Text = Data1.Fields(3) Text5.Refresh fnd = False Data1.Text = Data1.Recordset.Recordset.Recordset.Recordset.Recordset.Show Unload Me End Sub Private Sub Command4_Click() End End Sub Private Sub Form_Load() Dim a As Boolean End Sub Search : (Form4.Recordset.Fields(5) End If Data1.Visible = True Text3.

frm) 45 .OUTPUT FORMS Login : (Form1.frm) Details : (Form2.

frm) 46 .Search : (Form4.

RESULT: Thus the Student information system was developed by using visual basic in front end and MS-Access in back end. 47 .

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: 48 .

USER ENTRY: The user has to provide the user name and the pin number.It has the following four modules.There are three modules.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.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.The modules are:1.0 2)Microsoft Access 3) Rational Rose SOFTWARE REQUIRMENT ANALYSIS: The following sub sections describe the usage of the payroll system. 49 .  Use entry  Verification of password  Employee salary calculation INTENDED AUDIENCE: • Employee • Administrator PRODUCT FUNCTIONS: Here short briefing on payroll system.The pin is the four digit number which is also called a secret key known to the user. PROJECT SCOPE: The program analysis and project planning applies to the payroll system. 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.

VERIFICATION OF PASSWORD: The password is matched with one already present in the data base is the password is scanned. 3.Depending upon that information the salary will be calculated for employee.2. EMPLOYEE SALARY CALCULATION: In the database. PAYROLL SYSTEM USECASE DIAGRAM: 50 . name of the each employee will be stored with all needed informations.If the password is correct the user is logged in else the false message is generated.

authentication clerk employees database employee salary calculation manager reports account officer 51 .

CLASS DIAGRAM: accountofficer1 verify emp id & pwd verification() employee database emp name emp id date of join attendance loan() p.f() loss of pay() reports pay slip main slip salary calcutaion() manager1 verify emp id & pwd verification() clerk1 attendance emp id salary calculation() employee database() SEQUENCE DIAGRAM: 52 .

53 .

COLLABORATION DIAGRAM: 12: pay slip generation 9: cal sal details user 13: display the pay slip reports 11: transfer the salary salary calculation 1: check emp id 6: monthly attendance 14: logout database 8: read monthly details database 3: user is authenticated 15: logout successfully 7: request for monthly details 10: update the salary in monthly 2: checking for valid id 4: update monthly details 5: if id is valid databas e 54 .

Recordset.Fields(6) Text10.frm) Private Sub Command1_Click() If (Text1.Recordset.Recordset.VB SOURCE CODE Login Form : (Form1.Text = Data1.Fields(2) Text5.Text = Data1.Text = Data1.Fields(5) Text9.Text = Data1.Fields(0) Text3.Text = "" Text2.Recordset.Fields(4) Text8.Visible = True Text2.Text = Data1.Recordset.MoveFirst For i = 0 To Data1.Fields(3) Text6.Recordset.Text = "sec") Then Form2.Recordset.Text = "" End Sub Choice Form : (Form2.Recordset.Fields(1) Text4.Fields(7) 55 .Text = Data1.Visible = False End Sub Payslip : (Form3.Show Unload Me End Sub Private Sub Command2_Click() Form3.frm) Private Sub Command1_Click() Data1.Text = Data1.RecordCount .Recordset.Recordset.Recordset.Text = Data1.Text = "admin" And Text2.1 If Text1.Text = Data1.Show Else MsgBox "Please enter the correct username and pwd" End If End Sub Private Sub Command2_Click() Text1.frm) Private Sub Command1_Click() Form3.Fields(5) Then Frame1.

Text = "" Text4.Recordset.Text = "" End Sub Private Sub Command3_Click() Text7.Text11.Text = "" Text9.(Val(Text10.MoveNext Next End Sub Private Sub Command2_Click() Text1.Text = ((Val(Text4.Recordset.Text = Data1.Text = "" Text11.Text = "" Text3.Text = "" Text2.Fields(9) End If Data1.Text) + Val(Text6.Text = "" Text8.Text)) .Text = "" Text10.Text = "" Text5.Text) + Val(Text5.Text))) End Sub 56 .Fields(8) Text12.Text = Data1.Text = "" Text6.Text) + Val(Text12.Text = "" Text12.Text) + Val(Text11.Text = "" Text7.Recordset.

frm) Choice : (Form2.OUTPUT FORM Login Form : (Form1.frm) 57 .

PaySlip : (Form3.frm) 58 .

59 .RESULT: Thus the Payroll system was developed by using visual basic in front end and MSAccess in back end.

LIBRARY INFORMATION SYSTEM 60 .

Rational Rose 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.0 8. Hard disk 40GB(minimum) SOFTWARE DESCRIPTION: 7. INFORMATION DESCRIPTION: DETAILED DESCRIPTION: Basically the users of the library information system are categorized into two groups. Intel Motherboard with Pentium Processor 2.The password control separates him from other users.delete.which consists of modules each of which performs its own function efficiently. RAM 256MB(minimum) 3.They are Administrator and User.After that period he has to return those books back to the library to avoid fine. Administrator is the one who has the control over the whole system. Microsoft VisualBasic6. HARDWARE DESCRIPTION: 1. OBJECTIVE: Our objective is to create library information system. Microsoft Access 9.view information as well as borrow some books. 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.He can add.

DATABASE REQUIREMENTS: For the library information system we have to maintain two separate databases.The Username is unique all over the system. FUNCTIONAL DESCRIPTION: PERFORMANCE CHARACTERISTICS: The overall performance of the system mainly depends upon the server. SECURITY: The whole data in the system is password protected.The first database must have two columns and the other must have at least five columns.one for storing Username and the Password and the other for book details.INTERFACE DESCRIPTION: To interact with the system the user has to have certain things.by giving any one of attributes.The result will be displayed separately.delete information about the books.Username.The password separates the user from the administrator.We use MS Access to create those databases.To achieve higher performance the speed of the server and the Network must be greater. Only user and admininstrator can access that information. 62 .Also he can issue books and cards also by verifying the ID. NON-FUNCTIONAL REQUIREMENTS: AVAILABILITY: The software consists of separate modules for the administrator to add.etc.Password.To view the information certain attributes has to be given like Bookname etc.Network and the managing data resources.Bookname.no one can access that information without rights.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. BEHAVIOURAL DESCRIPTION: The user can login to the system and can view the information about the books. Also we have to manage the database efficiently.

LIBRARY MANAGEMENT SYSTEM USECASE DIAGRAM: authentication specification of book make reservation user librarian 1 remove reservation lend book return book 63 .

title : string b.ld : int aythor : string copies : int rescopies : int remcopies new title() rem title() add() 64 .CLASS DIAGRAM: admin item book id : string availability : boolean lss date : date new book() remove book() return book() reneval() validate() member mem id : string name : string new mem() remove mem() request() book name() title b.

SEQUENCE DIAGRAM: 65 .

member enter reg no librariyan server type of req take book book name check check success book is reserved terminate COLLBORATION DIAGRAM: 66 .

member 1: enter reg no 3: take book 9: terminate librariyan 2: type of req 4: book name 8: book is reserved 7: success 6: check 5: check server VB SOURCE CODE 67 .

Show Unload Me Else Exit Do End If Data1.frm Private Sub Command1_Click() Form3.Show Me.Fields(0) = Text1 And Data1.frm Private Sub Command1_Click() Data1.Recordset.Recordset.EOF If Data1.Recordset.Recordset.Show Me.Hide End Sub Private Sub Command3_Click() Form5.Recordset.Hide End Sub Private Sub FORM11_Click() 68 .MoveFirst Do While Not Data1.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.Hide End Sub Private Sub Command2_Click() Form4.Fields(1) = Text2 Then i = 1 Form2.Show Me.Form1.

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.frm Private Sub Command1_Click() Data1.1 Data3.Hide End Sub Form3.Form1.MoveFirst Do While Not Data1.Fields(0) = Text1 Then i = 1 Text2 = Data1.Recordset.Recordset.Fields(0) = Text2 Data3.Fields(2) = Text2 Data3.Recordset.Recordset.Recordset.Recordset.Fields(0) Text3 = Data1.Update MsgBox "GOT THE BOOK" End If Data1.Fields(2) End If Data1.Edit Data1.AddNew J = 1 Data1.Show Me.Recordset.MoveFirst While Not Data1.Recordset.Recordset.Recordset.Fields(0) = Text2 And Data1.Fields(2) > 0 Then Data3.MoveNext Wend If Not J = 1 Then 69 .Fields(2) = Data1.Fields(4) = Text6 Data1.Recordset.Update Data3.EOF If Data1.Fields(1) = Text4 Data3.Recordset.Fields(3) = Text5 Data3.Fields(2) .Recordset.Recordset.Recordset.Recordset.EOF If Data1.Recordset.Recordset.Recordset.Recordset.Recordset.

MoveNext Wend MsgBox "Book Renewed" End Sub 70 .Recordset.MsgBox "BOOK IS NOT AVAILABLE" End If End Sub Private Sub Command3_Click() Me.EOF If Text1 = Data1.Recordset.Recordset.EOF If Text1 = Data1.Recordset.Recordset.Recordset.Show End Sub Private Sub Form_Load() Dim i As Integer End Sub Form4.Recordset.Fields(3) = Text7 Data1.Fields(4) End If Data1.Recordset.Recordset.Recordset.MoveFirst While Not Data1.MoveNext Wend End Sub Private Sub Command2_Click() Data1.Recordset.Recordset.Recordset.Fields(1) Then Text2 = Data1.Recordset.Hide Form2.Recordset.Fields(0) And Text6 = Data1.Fields(2) Text4 = Data1.Recordset.Recordset.Recordset.Edit Text2 = Data1.MoveFirst While Not Data1.Update End If Data1.Fields(1) Text3 = Data1.Fields(2) Then Data1.Fields(4) Data1.Recordset.Recordset.Fields(3) Data1.frm Private Sub Command1_Click() Data1.Fields(4) = 10 + Data1.Fields(2) Text4 = Data1.Fields(1) Text3 = Data1.

Fields(1) Then J = 1 Data1.Show End Sub OUTPUT FORM 71 .Recordset.Recordset.Recordset.Fields(2) = Data1.Edit Data2.Hide Form2.frm Private Sub Command1_Click() Dim J As Integer J = 0 Data1.MoveFirst While Not Data1.Fields(2) + 1 Data2.MoveNext Wend If Not J = 1 Then MsgBox "BOOK IS NOT AVAILABLE" End If End Sub Private Sub Command2_Click() Me.Recordset.MoveNext Wend Data2.Hide Form2.Recordset.Recordset.EOF If Data2.Show End Sub Form5.Update End If Data2.Recordset.Recordset.MoveFirst While Not Data1.Recordset.Fields(2) And Text2 = Data1.Recordset.Private Sub FORM13_Click() Me.EOF If Text1 = Data1.Edit Data1.Delete MsgBox " Book Returned" End If Data1.Fields(0) = Text1 Then Data2.Recordset.Recordset.Recordset.Recordset.Recordset.

frm) Choice Form : (Form2.frm) Borrow Book : (Form3.frm) 72 .Login Form : (Form1.

frm) 73 .Renewal : (Form4.

Return : (Form5.frm) 74 .

75 .

RESULT: Thus the Library information system was developed by using visual basic in front end and MS-Access in back end. 76 .

COURSE REGISTRATION SYSTEM 77 .

Hard disk 40GB(minimum) SOFTWARE REQUIREMENTS: 10.  Use entry 78 . RAM 256MB(minimum) 7.COURSE REGISTRATION SYSTEM AIM: To develop the course registration system by using visual basic as front end and MSaccess 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.There are five modules. Intel Motherboard 6. OBJECTIVES:   It reduces the workload of institutions and students.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. HARDWARE REQUIREMENTS: 4. Rational Rose SOFTWARE REQUIRMENT ANALYSIS: The following sub sections describe the usage of the payroll system.0 11. Microsoft Access 12. It consumes more time. Microsoft VisualBasic6.by the system registration will not offer the physical appearance of the applier. Pentium Processor 5.

5. STUDENT DETAILS: The student will enter their personal details and their academic details. USER ENTRY: The user has to provide the user name and the pin number.The pin is the four digit number.If the password is correct the user is logged in else the false message is generated. 4.COURSE DETAILS: Available course in each college will be displayed. 79 .VERIFICATION OF PASSWORD: The password is matched with one already present in the data base is the password is scanned. 3.COLLEGE DETAILS: Using the database. Verification of password  Student details  Select the college  Select the desired course INTENDED AUDIENCE: • • Student Administrator PRODUCT FUNCTIONS: Here short briefing on course registration. which is also called a secret key known to the user.It has the following five modules.name of each college will be stored and displayed. 2. The modules are:1.Depending upon that information the desired college and course will be registered for each student.

COURSE REGISTRATION SYSTEM USECASE DIAGRAM: student details database manager college details available course university update seat details student registration course selection 80 .

CLASS DIAGRAM: user to login name : string password : string user login with name and password() student details name : string reg no : integer mark : integer address : string check the name() login check name : string password : string check the name and password() college details name : string location : string dept : string total seats : integer available details : integer store the data() decreace seats() student database name : string address : string college name : string dept : string gender : string update() 81 .

SEQUENCE DIAGRAM: 82 .

83 .

COLLABORATION DIAGRAM:
9: check the status of the student 1: enter the user name and password 3: send details 5: enter the name student 2: enter the mark 4: enter the college name universit y

10: update student details 8: select the college and department 6: verify the college 7: send college details0

college

VB SOURCE CODE
Form1.frm: 84

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 End If Data1.Recordset.MoveNext 85

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 Text13.Text = Data1.Recordset.Fields(9).Value Text14.Text = Data1.Recordset.Fields(10).Value Text15.Text = Data1.Recordset.Fields(11).Value 86

Text16.Fields(7).Value = Text12.Value Text17.Value = Combo1.Text2.Recordset.Recordset.1 Data1.1 Data1.Text = Data1.Value = Combo1.Recordset.Text = Val(Text10.Update End If 87 .1 Data1.MoveNext Loop Form3.Fields(15).Recordset.Recordset.Text = Data1.Value Text19.EOF If Data1.Value End Sub Private Sub Text10_Click() Data1.Recordset.Text) .Text = Val(Text11.Fields(12).Recordset.MoveFirst Do While Not Data1.EOF If Data1.Fields(0).Recordset.Text Data1.Fields(14).Text Then Data1.Text = Data1.MoveFirst Do While Not Data1.Text = Val(Text12.Recordset.Show Form3.Show Form3.Edit Text12.Text) .Value Text18.Edit Text10.Value = Text11.Recordset.Text = Data1.Text) .MoveNext Loop Form3.Update End If Data1.Fields(8).Fields(13).Recordset.Fields(6).Recordset.Text Data1.Recordset.Recordset.Recordset.Recordset.Fields(0).Recordset.Text = "it" End Sub Private Sub Text11_Click() Data1.Text2.Text = "it" End Sub Private Sub Text12_Click() Data1.MoveFirst Do While Not Data1.Recordset.Recordset.Text Then Data1.Value = Combo1.Update End If Data1.Recordset.Recordset.Recordset.Text Then Data1.Fields(0).Recordset.Value = Text10.EOF If Data1.Recordset.Edit Text11.Text Data1.

Text) .MoveNext Loop Form3.Recordset.Recordset.Value = Combo1.Recordset.Recordset.Update End If Data1.EOF If Data1.Text Data1.Text Data1.Text) .MoveFirst Do While Not Data1.Recordset.Text Then Data1.Value = Text15.Text Then Data1.Edit Text14.1 Data1.Text Data1.Show Form3.Text2.Text = "it" End Sub Private Sub Text14_Click() Data1.MoveFirst Do While Not Data1.Value = Text13.Fields(0).Recordset.Text2.Edit Text13.Recordset.Fields(0).Value = Combo1.Text) .EOF If Data1.MoveNext Loop Form3.Recordset.Data1.Fields(9).Recordset.Recordset.Show Form3.EOF If Data1.Recordset.Edit Text15.Fields(11).Fields(10).Text = Val(Text15.Text = "eee" End Sub Private Sub Text15_Click() Data1.Recordset.Recordset.Text = Val(Text14.Text Then Data1.Recordset.MoveFirst Do While Not Data1.Value = Combo1.Recordset.Recordset.Recordset.Text = Val(Text13.Text = "it" End Sub Private Sub Text13_Click() Data1.1 Data1.Recordset.Value = Text14.Recordset.Update End If 88 .Text2.1 Data1.Recordset.Recordset.MoveNext Loop Form3.Update End If Data1.Show Form3.Fields(0).

Fields(14).EOF If Data1.Recordset.Text Data1.Fields(0).EOF If Data1.Text Then Data1.Show Form3.Text) .MoveFirst Do While Not Data1.Update End If Data1.Recordset.Text Then Data1.1 Data1.Recordset.Text = Val(Text18.Show Form3.Fields(12).Fields(13).Text = "eee" End Sub Private Sub Text18_Click() Data1.Recordset.Text Data1.Recordset.Text2.Recordset.EOF If Data1.Show Form3.Text Data1.Text Then Data1.Recordset.Value = Combo1.Edit Text18.Text) .Text = "eee" End Sub Private Sub Text16_Click() Data1.Text2.Recordset.MoveNext Loop Form3.Recordset.MoveNext Loop Form3.Update End If Data1.Text = Val(Text16.Recordset.Value = Text18.Recordset.Recordset.Recordset.Update End If 89 .Text) .MoveFirst Do While Not Data1.MoveNext Loop Form3.Edit Text16.Fields(0).MoveFirst Do While Not Data1.1 Data1.Value = Combo1.Recordset.Value = Text17.Recordset.Value = Combo1.Fields(0).Text = Val(Text17.Recordset.Recordset.Recordset.Edit Text17.Recordset.1 Data1.Recordset.Recordset.Text = "eee" End Sub Private Sub Text17_Click() Data1.Text2.Data1.Value = Text16.

Value = Text6.Text2.Text Data1.Text Then Data1.Value = Combo1.Text Data1.Data1.Edit Text6.Show Form3.Recordset.MoveNext Loop Form3.Text) .Recordset.Value = Text5.Recordset.Text = "eee" End Sub Private Sub Text19_Click() Data1.Recordset.Text) .Fields(15).MoveFirst Do While Not Data1.Value = Combo1.Recordset.Fields(1).Text) .Fields(0).Recordset.MoveNext Loop Form3.Recordset.Update End If Data1.EOF If Data1.Text = Val(Text6.Text = "eee" End Sub Private Sub Text5_Click() Data1.Fields(0).Value = Combo1.Show Form3.Text = "cse" End Sub Private Sub Text6_Click() Data1.Recordset.Edit Text5.1 Data1.Text Then Data1.Text Then Data1.Text = Val(Text19.Recordset.Text = Val(Text5.Show Form3.MoveFirst Do While Not Data1.Update End If Data1.1 Data1.Text2.Recordset.MoveNext Loop Form3.Update End If 90 .Edit Text19.Recordset.EOF If Data1.Recordset.Recordset.Text Data1.Recordset.Recordset.Recordset.Fields(2).EOF If Data1.Recordset.1 Data1.MoveFirst Do While Not Data1.Value = Text19.Recordset.Text2.Recordset.Recordset.Fields(0).Recordset.

Show Form3.Value = Text8.Text2.Recordset.Recordset.MoveFirst Do While Not Data1.Recordset.Value = Combo1.Recordset.Recordset.EOF If Data1.MoveNext Loop Form3.Text = "cse" End Sub Private Sub Text9_Click() Data1.Recordset.Data1.Text2.Show Form3.1 Data1.Text = "cse" End Sub Private Sub Text7_Click() Data1.Fields(3).Edit Text9.Text Data1.Recordset.Text = "cse" End Sub Private Sub Text8_Click() Data1.Text) .Text Then Data1.Value = Combo1.MoveNext Loop Form3.Value = Combo1.MoveFirst Do While Not Data1.Update End If Data1.Recordset.Text Data1.Value = Text7.Recordset.Text = Val(Text9.Text2.Fields(0).Show Form3.Text) .Recordset.Recordset.Text = Val(Text7.Recordset.Text = Val(Text8.EOF If Data1.Fields(0).1 Data1.Edit Text7.EOF If Data1.Text Then Data1.Recordset.Recordset.Edit Text8.Recordset.Recordset.Fields(5).MoveNext Loop Form3.Update End If 91 .Text Then Data1.MoveFirst Do While Not Data1.Value = Text9.Recordset.1 Data1.Update End If Data1.Recordset.Recordset.Text) .Text Data1.Recordset.Fields(4).Recordset.Fields(0).

Recordset.MoveNext Loop Form3.Show Form3.Data1.Text = "it" End Sub OUTPUT FORMS Login Form : (Form1.Text2.frm) 92 .

frm) 93 .Course Details : (Form2.

Acknowledgement Form : (Form3.frm) 94 .

95 .

96 .RESULT: Thus the Course registration system was developed by using visual basic in front end and MS-Access in back end.

STOCK MAINTENANCE SYSTEM 97 .

Stock entry forms are used to update the databases. The sale form can be used to view the sales details. Item details can be used to show the current status of the stock.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. The company return form can be used to show the details of defective products. Stock Entry 98 . HARDWARE REQUIREMENTS     Pentium IV Processor Intel Motherboard RAM(256 MB) HARD DISK(20GB) SOFTWARE REQUIREMENTS  Rational Rose  Microsoft VB 6. The exit buttons closes the forms of the project. 2. Authentication Get the username and password validate it accordingly.0  MS-Access MODULES      Authentication Stock entry Sales Details Order Details Item Details MODULE DESCRIPTION 1.

Item Details Show the current details of the stock details. company name and no. thus it is quite flexible. Order Details Order details form can be used to generate orders and view previous stored order details. Stock Details In this module its used to store the sales product details and also show the sales details. More modules can be easily added.) large scale or small scale. 99 .e. AVAILABILITY It is available for all type of companies (i. FLEXIBILITY It is a user friendly project. 3. thus it is easily maintainable. MAINTAINABILITY Authorized user only can access it. bought cost.Product purchased details are entered through this form. NON FUNCTIONALITY SECURITY It is a source project because it contains user id and password. of items. The data is then stored in the database. 5. It can be used to enter the item code name. 4.

STOCK MAINTANANCE SYSTEM UseCase Diagram: Authentication Item User Purchase details User Delivery report Quality remaining Class Diagram: 100 .

Purchase ordernum orderdate w holesale retail purchase custom detail er purchased details() item inam e ino cost quantity discount brand item de tails() deliv report ery date tim e deliv ery() Adm in unam e pw d authentication() Q uantity balance() Sequence Diagram: 101 .

admin username and password stock user check checking status order the item checking for the order processing report the order delivery status Collaboration Diagram: 102 .

2: check 6: processing 1: username and password 5: checking for the order admin 3: checking status 7: report the order stock 8: delivery status 4: order the item user VB SOURCE CODE Form1.frm 103 .

Visible = False End Sub Private Sub Command3_Click() Form113.Text = "sec") Then Unload Me Form11.Show Form2.Show Form11.frm Private Sub Command1_Click() MsgBox ("ADD DATA") 104 .Visible = False End Sub Private Sub Command5_Click() Form8.frm Private Sub Command1_Click() Form111.Visible = False End Sub Private Sub Command4_Click() Form2.Visible = False End Sub Form111.Show Form11.Show Form11.Show Form11.Show Else MsgBox "Wrong Password" End If End Sub Private Sub Command2_Click() End End Sub Form11.Visible = False End Sub Private Sub Command2_Click() Form112.Private Sub Command1_Click() If (Text1.Text = "Ramesh" And Text2.

Text Form111.Data1.frm Private Sub Command1_Click() MsgBox ("ADD DATA") Data1.Recordset.Text4.Text Data1.AddNew Data1.Text Private Sub Command2_Click() Data1.Update End Sub Private Sub Command2_Click() Form11.Text Data1.Text Data1.Recordset.Bookmark = Data1.Text1.Recordset.Text Data1.LastModified MsgBox ("DATA UPDATE") End Sub Private Sub Command5_Click() Form11.Fields(4) = Form112.Recordset.Text3.Fields(3) Data1.Recordset.Text1.Recordset.Fields(4) Data1.Recordset.MoveLast Data1.Show Me.UpdateRecord Data1.Text4.Fields(3) = Form112.Text5.Recordset.Refresh End Sub Private Sub Command4_Click() Data1.Fields(1) Data1.Text2.Recordset.Recordset.Text2.Recordset.Update End Sub = = = = = Form111.Text3.Hide End Sub Form112.Recordset.Text Data1.Fields(1) = Form112.Text Form111.Show Form111.Recordset.Text5.Recordset.Fields(0) = Form112.Fields(2) = Form112.Delete Data1.Fields(0) Data1.MoveNext MsgBox ("DATA DELETED") End Sub Private Sub Command3_Click() Data1.Text Form111.Recordset.AddNew Data1.Fields(2) Data1.Text Form111.Recordset.Hide End Sub 105 .Recordset.Recordset.Recordset.

UpdateRecord Data1.Text5.Recordset.Private Sub Command3_Click() Form112.Text4.Text7.Text Data1.Text = "" Form112.Text1 = " " Form1.Text Data1.Text = "" Form112.Recordset.Text Data1.Text3.Delete Data1.Fields(3) = Form113.Recordset.Text Data1.Recordset.Update End Sub Form2.Text Data1.Recordset.Text2 = " " End Sub Private Sub Command6_Click() MsgBox ("ADD DATA") Data1.frm Private Sub Command2_Click() Data1.Recordset.Fields(5) = Form113.Recordset.Recordset.Text2.Text = "" Form112.Text2.AddNew Data1.Fields(2) = Form113.Text6.Fields(0) = Form113.Fields(4) = Form113.MoveNext MsgBox ("DATA DELETED") End Sub Private Sub Command3_Click() Data1.Recordset.LastModified MsgBox ("DATA UPDATED") End Sub Private Sub Command5_Click() Form2.Text1.Bookmark = Data1.Text Data1.Text3.frm Private Sub Command1_Click() 106 .Text Data1.Refresh End Sub Private Sub Command4_Click() Data1.Show Form1.Recordset.Text4.Fields(6) = Form113.Text1.Text = "" Form112.Recordset.Recordset.Text5.Recordset.Fields(1) = Form113.Text = "" End Sub Form113.

Text Data1.frm Private Sub Command2_Click() Form2.Recordset.AddNew Data1.Fields(4) = Text5.frm Private Sub Command1_Click() Data1.Recordset.Show Form11.Recordset.Text Data1.Recordset.Recordset.Fields(0) = Text1.Fields(1) = Text2.MoveNext MsgBox "ordered" End Sub Private Sub Command2_Click() Form2.Recordset.Form21.Fields(3) = Text4.MoveLast Data1.Hide End Sub Private Sub Command3_Click() Form11.Recordset.Text Data1.Update Data1.Show Form22.Hide End Sub Form22.Show Form11.Text Data1.Hide End Sub OUTPUT FORM 107 .Fields(2) = Text3.Recordset.Text Data1.Hide End Sub Form21.Recordset.Show Form22.Show Form21.Hide End Sub Private Sub Command2_Click() Form22.

frm) Choice : (Form11.frm) 108 .Login Form : (Form1.frm) Items : (Form111.

frm) Order Items : (Form21.frm) 109 .Ordered Items : (Form112.

frm) 110 .Ordered Delivery System : (Form2.

Results: Thus Stock maintenance project was successfully completed. 111 .

ATM SYSTEM 112 .

OBJECTIVE: Our objective is to understand the software to be developed.which is available to all users.an appropriate message is displayed to the client.this ATM system is easy to access and is available all over India with 24 hours of service.only bank clients can access ATM with their card. 113 .If the code is invalid.The system asks to enter the pin code.Third is to withdraw amount and the final option is to save the transaction.If code is valid.coding and testing of the software.Second to deposit amount.the client’s account is available.Others users are not allowed to access ATM. 2.The primary objective is to implement ATM system.One is to check the transaction made.the screen displays four features for the client.the approval process is enabled.Each transaction must be recorded and the client must be able to review all transaction performed against given amount.analyze the process and finally implement the concepts to develop software.Our goal is to develop software for ATM system interaction.ATM SYSTEM INTRODUCTION: GOAL: Software development process involves four modules: analysis. 1. INFORMATION DESCRIPTION: DETAILED DESCRIPTION: The client must be able to deposit amount to and withdraw amount from their account using ATM system.designing. When the client’s account is available. When the client inserts the ATM card.

If it is not available. The client can also withdraw the amount.The amount exceeding that will not be allowed. Microsoft VisualBasic6.then the appropriate message is displayed.0 14. The client can also check the transaction.The client can also have a print of account information. Hard disk 40GB(minimum) SOFTWARE DESCRIPTION: 13. HARDWARE DESCRIPTION: 1.If it is available.The system displays the account information and the transaction history. The withdraw amount screen asks for the amount to be withdrawn. Intel Motherboard with Pentium Processor 2.This feature gets input from the client.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.account number and last date of transaction.The ATM system process is over.the access will be given to the users.A printed slip is ejected for the client to know about their transaction.After authentication. RAM 256MB(minimum) 3. The client then.15. This verifies the amount to check whether the amount is available or not. FUNCTIONAL DESCRIPTION: PERFORMANCE CHARACTERISTICS: The ATM system is designed for clients will allow withdrawal of up to Rs.The system creates the record of the transaction.It asks for the amount to be deposited and the deposit is in the way of cash. After the client’s transaction is over. Rational Rose INTERFACE DESCRIPTION: We will design a user interface.000/=only.it asks to eject cash and perform ejection.The client may need to deposit the amount and select this feature.This is made whenever amount is deposited or withdrawn. Microsoft Access 15.he/she requests to eject the card. 114 .can save the transaction.Transaction slip will give the details of account balance.

DATABASE REQUIREMENTS: A database required for ATM system that include client name. NON.account number. MAINTAINABILITY: Yes.ATM systems are more secured.This is maintained by creating a database in MS Access. 115 .as PIN numbers are known only to those clients who access it. SECURITY: Yes. AVAILABILITY: Yes.pin number.the software is designed considering the reliability of the ATM system. ATM system is made available for clients with 24-hour service all over India.balance.FUNCTIONAL REQUIREMENTS: RELIABILITY: Yes.easier the maintenance and update the database.transaction and last transaction.

AUTOMATIC TELLER MACHINE USECASE DIAGRAM: Enter pin Withdraw user Deposit atm Checktransaction admin1 check CLASS DIAGRAM: 116 .

ATM pin no : number type of account : number name : string amount : number check pin() check amount() update amount() print slip() admin pin no : number type of account : number amount : number name : string pin valid/invalid() amount available() account avaliable() update account() SEQUENCE DIAGRAM: 117 .

atm ADMIN check pin no pin valid/invalid check account display status check amount display status update account COLLABORATION DIAGRAM: 118 .

Show 119 .1: check pin no 3: check account 5: check amount 7: update account atm 2: pin valid/invalid 4: display status 6: display status ADMIN VB SOURCE CODE Choice.frm Private Sub Command1_Click() User.

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() 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

120

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

OUTPUT FORM
Form 1 : (Choice.frm)

121

Form 2 : (User.frm)

Form 3 : (Withdraw.frm)

122

frm) 123 .Form 4 : (ViewBalance.

124 .RESULT: Thus the ATM System was developed by using visual basic in front end and MS-Access in back end.

EXPERT SYSTEM 125 .

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.EXPERT SYSTEM AIM: To develop an expert system using visual basic in front end and MS Access as back end. 126 .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. 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.

DOCTOR FORM: For getting patient name and symptoms and display reports.GENERATION OF REPORTS: All the details about the patient and his/her disease are finally entered in the database. 127 . OFFICIAL FORM: For getting patient details and billing. PATIENT DATABASE: For updating patient and increment acquire.

EXPERT SYSTEM USECASE DIAGRAM: View The Bill and Report Doctor Diagonsis Disease Medicine_Catalog Login Patient Medicine Catalog Up Pattern Maintain Patient Details Official Maintain Doctor Billing System Issue Bill Report 128 .

CLASS DIAGRAM: Front Panel symptoms medicine and diseases billing report username and report username and password patient name enter symptoms() display medicine and disease() display report() enter patient name() enter username and password() display billing() Medicine Controller symptoms name details details for patient report payment details enter symptoms name() get details() get details for patient() send report() display payment details() Medicine Catalog System medicine name disease name maintain medicine and disease name() update() Patient DB add patient details() add medicine and disease() 129 .

SEQEUENCE DIAGRAM: 130 .

131 .

COLLABORATION DIAGRAM: admin 6: Get Details From Patient Name patient db 4: Enter The Symptomps patient 5: Add Patient Details 7: Get Symptomps 9: Send Disease Name 8: Display Report 1: Enter Username & Password 2: Validate Username & Password 3: front panel doctor form medical catalog VB SOURCE CODE Form 1.frm 132 .

Text) Then a = True Text2.Text Data1.Recordset.EOF If Data1.Text4.Text Data1.Recordset.MoveFirst a = False Do While Not Data1.Recordset.Text Data1.Recordset.Text = Data1.Recordset.Recordset.Recordset.Text = Data1.Show End Sub Form2.Recordset.Fields(0) = Trim(Text1.Recordset.Fields(1) = Trim(Text2.Text = Data1.Recordset.Text 133 .Fields(2) Text3.Recordset.Text = Data1.Fields(5) Exit Do End If Data1.Fields(4) = Text5.Fields(3) = Text4.Recordset.Text) And Data1.Recordset.Recordset.frm Private Sub Command1_Click() Form1.Text Data1.Show End Sub Private Sub Command2_Click() Data1.Fields(2) = Text3.Recordset.Show End If End Sub Private Sub Command2_Click() End End Sub Private Sub Command3_Click() Form3.Dim a As Boolean Private Sub Command1_Click() Data1.MoveLast Data1.Fields(4) Form3.Fields(0) = Text1.Recordset.Fields(3) Text4.MoveNext Loop If Not a Then MsgBox "Not consulted any doctor" Form2.Fields(1) = Text2.AddNew Data1.Refresh Data1.

Text = "fever" Then Text3.Text = "stomachpain" Then Text3.Text = "cold" Then Text3.Recordset.Text = "vomitstop" Form4.Text4.Update MsgBox "DATA ADDED" End Sub Form3.Fields(5) = Text6.Text = "Paracetamol" Form4.Text = "60" ElseIf Text2.Recordset.Text = "50" ElseIf Text2.Text4.Text4.Text = "70" Else MsgBox "Enter proper disease" End If End Sub Private Sub Command2_Click() End End Sub Private Sub Command3_Click() Form4.Text = Date End Sub 134 .Data1.Text = "cold act" Form4.Text Data1.Text = "acidity" Then Text3.Show End Sub Private Sub Form_Load() Text1.Text = "Action500" Form4.Text = "Bolex" Form4.Text = "headache" Then Text3.Text = "Gelucil" Form4.Text = "25" ElseIf Text2.Text = "vomit" Then Text3.Text4.frm Option Explicit Private Sub Command1_Click() If Text2.Text = "25" ElseIf Text2.Text4.Text4.Text = "75" ElseIf Text2.

Text Text1.Text = "100" End Sub OUTPUT FORMS 135 .frm Option Explicit Private Sub Command1_Click() MsgBox "GET WELL SOON" End End Sub Private Sub Form_Load() Text2.Text = Form1.Text2.Show End Sub Private Sub Form_Load() Text1.Text Text2.Text4.frm Private Sub Command1_Click() Form5.Text End Sub Form5.Text = Form3.Text3.Form4.Text = Form4.Text = Form3.Text1.Text Text3.

frm) Medicine Details : (Form2.frm) 136 .frm) Bill Amount : (Form3.Patient Details : (Form1.

frm) 137 .Consulting Fee : (Form5.

Details : (Form2.frm) 138 .

139 .RESULT: Thus the Expert system was developed by using visual basic in front end and MS-Access in back end.

Sign up to vote on this title
UsefulNot useful