You are on page 1of 121

STUDENT MARK ANALYSIS SYSTEM

AIM: To create a UML diagram for MARK ANALYSIS system. ACTORS: 1. Student 2. Staff USE CASES: 1. Number of subject 2. Marks 3. Total 4. Grade 5. Average PROBLEM STATEMENT: Student marks analyzing system has to be developed for analyzing the marks obtained by the students who scored in Semester Examination The System should provide the following functionalities 1. The System obtains the following information (No of Subjects, Marks, Total, Percentage, Grade, Marks obtained in each subject and No of students in each section) from the faculty and generates report. 2. The total, average and grade of each student should be calculated and ranked based on total and pass in all the subject appeared. If a student fails in at least in one subject then he/she should be given rank. 3. The Final report should display the top 3 persons in each subject along with rank, percentage, Class, Pass/Fail Status for each student. The report should also contain information about no of students passed, failed, list of students who got more than 60% in each subject and overall list of students who got >=60% and so on. USE CASE DIAGRAM: Draw and drop the actors and use case from browser window into the diagram window. Associate the use cases and actors.

No of Subjects

Marks

Staff Total

Student

Percentage

Grade

CLASS DIAGRAM:
Staff No.of Subjects Marks Total Percentage Grade Reg.no Display() GetMarks() FindTotal() FindAVG() AsignGrade()

Students Name Reg.No CollegeCode Display Result()

ACTIVITY DIAGRAM: The activity diagram describes the sequencing of activities, with support for both conditional and parallel behavior. The various controls are placed into the diagram window to create activity diagram.

SEQUENCE DIAGRAM: Create a new package from the database and name it as a sequence diagram. From the toolbar, select the required tools and make corresponding connections.
Staff Marks Find Total & Average Assume Grade Student

1. No of Subjects

2. Read Marks 3. Find total & Avg 4. Find Grade 5. Store

6. Store Marks

COLLABORATION DIAGRAM: Press f5 on the sequence diagram the collaboration diagram is obtained. Save the diagram.

COMPONENT DIAGRAM:

DEPLOYMENT DIAGRAM:

DEVELOPING PROCESS OPEN SYSTEM:

CALENDER:

MASTER UPDATE:

HELPING:

UPDATE AND SEARCH:

SCORCE CODE: Private Sub Form_Load() Call txt0 Check24.Value = 1 '************ Text23.Text = Val(Text7.Text) + Val(Text8.Text) + Val(Text9.Text) + Val(Text10.Text) _ + Val(Text11.Text) + Val(Text12.Text) + Val(Text13.Text) + Val(Text14.Text) + Val(Text15.Text) + Val(Text16.Text) Text22.Enabled = False Text23.Enabled = False '************* Check18.Value = 1 Check19.Enabled = 0 Check1.Value = 1 Check3.Value = 1

Check5.Value = 1 Check6.Value = 1 Option1.Value = True Data3.Visible = False Text17.Visible = False Text18.Visible = False Text19.Visible = False Label40.Visible = False Label41.Visible = False Label42.Visible = False List4.AddItem "By Name" List4.AddItem "By Address" List4.AddItem "By Roll no" List4.AddItem "By Phone" List4.AddItem "By Class 10 marks" List4.AddItem "By Class 12 marks" List4.AddItem "By Semester 1 marks" List4.AddItem "By Semester 2 marks" List4.AddItem "By Semester 3 marks" List4.AddItem "By Semester 4 marks" List4.AddItem "By Semester 5 marks" List4.AddItem "By Semester 6 marks" List4.AddItem "By Semester 7 marks" List4.AddItem "By Semester 8 marks" List4.AddItem "By Sex" '------List4.AddItem "By Date of Birth" List4.AddItem "By Email" List4.AddItem "By Semester total" List4.AddItem "By overall total" Data1.Visible = False Data2.Visible = False Command3.Enabled = 0 Command4.Enabled = 0 Command10.Enabled = 0 Command7.Enabled = 0 Command8.Enabled = 0 List1.AddItem "M" List1.AddItem "F" 'Adodc1.Visible = False 'Text4.Text = Form2.Combo1.List(Form2.Combo1.ListIndex) 'Text5.Text = Form2.Combo2.List(Form2.Combo2.ListIndex) '========= Private Sub SSTab1_Click(PreviousTab As Integer) Data1.Refresh Data2.Refresh End Sub Private Sub Text1_Change() x = Len(Text1.Text) For i = 1 To x If UCase(Mid(Text1.Text, i, 1)) >= "A" And UCase(Mid(Text1.Text, i, 1)) <= "Z" Or _ Mid(Text1.Text, i, 1) = "." Or Mid(Text1.Text, i, 1) = " " Then

Else MsgBox "Enter only character" Text1.Text = "" End If Next End Sub Private Sub Text10_Change() If IsNumeric(Text10.Text) = False And Len(Text10.Text) >= 1 Then MsgBox "Enter only number" Text10.Text = "" End If Text22.Text = Val(Text9.Text) + Val(Text10.Text) _ + Val(Text11.Text) + Val(Text12.Text) + Val(Text13.Text) + Val(Text14.Text) + Val(Text15.Text) + Val(Text16.Text) End Sub Private Sub Text11_Change() If IsNumeric(Text11.Text) = False And Len(Text11.Text) >= 1 Then MsgBox "Enter only number" Text11.Text = "" End If Text22.Text = Val(Text9.Text) + Val(Text10.Text) _ + Val(Text11.Text) + Val(Text12.Text) + Val(Text13.Text) + Val(Text14.Text) + Val(Text15.Text) + Val(Text16.Text) End Sub ElseIf List4.Text = "By Roll no" Then x = Len(Text17.Text) For i = 1 To x If UCase(Mid(Text17.Text, i, 1)) >= 0 And UCase(Mid(Text17.Text, i, 1)) <= 9 Then Else MsgBox "Enter only INTEGER NUMBER" Text17.Text = "" End If Next Else If IsNumeric(Text17.Text) = False And Len(Text17.Text) >= 1 Then MsgBox "Enter only numbers" Text17.Text = "" End If End If End Sub Private Sub Text18_Change() If List4.Text = "By Date of Birth" Then y = Len(Text18.Text) For i = 1 To y If (UCase(Mid(Text18.Text, i, 1)) >= 0 And UCase(Mid(Text18.Text, i, 1)) <= 9) Or Mid(Text18.Text, i, 1) = "/" Then Else MsgBox "Enter only INTEGER NUMBER or / for DoB" Text18.Text = ""

End If Next '----ElseIf List4.Text = "By Roll no" Then x = Len(Text18.Text) For i = 1 To x If UCase(Mid(Text18.Text, i, 1)) >= 0 And UCase(Mid(Text18.Text, i, 1)) <= 9 Then Else MsgBox "Enter only INTEGER NUMBER" Text18.Text = "" End If Next Else If IsNumeric(Text18.Text) = False And Len(Text18.Text) >= 1 Then MsgBox "Enter only numbers" Text18.Text = "" End If End If End Sub Private Sub Text21_Change() x = Len(Text21.Text) For i = 1 To x If UCase(Mid(Text21.Text, i, 1)) >= 0 And UCase(Mid(Text21.Text, i, 1)) <= 9 Or _ Mid(Text21.Text, i, 1) = "." Or Mid(Text21.Text, i, 1) = "_" Or Mid(Text21.Text, i, 1) = "-" Or Mid(Text21.Text, i, 1) = "@" _ Or UCase(Mid(Text21.Text, i, 1)) >= "A" And UCase(Mid(Text21.Text, i, 1)) <= "Z" Then Else MsgBox "Enter only Valid Email Address" Text21.Text = "" End If Next End Sub Private Sub Text22_Change() Text22.Text = Val(Text9.Text) + Val(Text10.Text) _ + Val(Text11.Text) + Val(Text12.Text) + Val(Text13.Text) + Val(Text14.Text) + Val(Text15.Text) + Val(Text16.Text) Text23.Text = Val(Text7.Text) + Val(Text8.Text) + Val(Text22.Text) End Sub Private Sub Text23_Change() Text23.Text = Val(Text7.Text) + Val(Text8.Text) + Val(Text9.Text) + Val(Text10.Text) _ + Val(Text11.Text) + Val(Text12.Text) + Val(Text13.Text) + Val(Text14.Text) + Val(Text15.Text) + Val(Text16.Text) End Sub Private Sub Text3_Change() x = Len(Text3.Text) If x <= 7 Then For i = 1 To x If UCase(Mid(Text3.Text, i, 1)) >= 0 And UCase(Mid(Text3.Text, i, 1)) <= 9 Then Else

MsgBox "Enter only 6/7 digit NUMBER" Text3.Text = "" End If Next Else MsgBox "Cannot exceed 7 digit" Text3.Text = "" End If End Sub SOFTWARE TESTING OPEN SYSTEM:

ADD AND MODIFY:

CHANGE THE PASSWORD:

MASTER UPDATE:

CALCULATER AND CALLENDER:

CONCLUSION
Thus the system is developed using object oriented programming approach with the help of CASE tools.

QUIZ SYSTEM
AIM: To create a uml diagram for QUIZ application. ACTORS: 1. Interviewer 2. Participant 3. Scorer USE CASES: 1. Number of teams 2. Team name 3. Number of participants 4. Rules 5. Rounds 6. Question and Answers 7. Time 8. Marks 9. Results 10. Prize PROBLEM STATEMENT: Online Quiz System has to be developed for conducting Preliminary stage of a quiz. The System developed should contain the following features: 1. The number of participants, Teams, team Name and Rounds are bound to follow Rules. 2. The duration for quiz is determined. Where the Scorer will have to take care of them. 3. The number of questions should be 40 chosen randomly from the database in 3 different areas namely i) Technical ii) logical reasoning and iii) General Knowledge. 4. The questions should be of objective type with multiple options. For each correct answer the participant will receive 1 Point and for wrong answer, the participant will be out of the quiz competition. 5. At the end of the quiz the users score along with information whether he has been selected or not has to be displayed. 6. Once a Student has answered a question, he cant change the answer later. DEPLOYMENT DIAGRAM:

USE CASE DIAGRAM: Draw and drop the actors and use case from browser window into the diagram window. Associate the use cases and actors.

No of Teams

Team Name

No of Participant

No of Rounds

Rules

Prize

Interviewer Questions

Particiapnt

Result

Answer

Marks

Scorer

COMPONENT DIAGRAM:

CLASS DIAGRAM:

ACTIVITY DIAGRAM: The activity diagram describes the sequencing of activities, with support for both conditional and parallel behavior. The various controls are placed into the diagram window to create activity diagram.

Describe no of teams, no of participant, no of rounds, and team name

Enter Round

Ask Questions

Get Answer

No

Check Answer If Correct Assign Marks If Not Correct

Check End of Round

If Yes Declare Result

Award the Prize

SEQUENCE DIAGRAM: Create a new package from the database and name it as a sequence diagram. From the toolbar, select the required tools and make corresponding connections.

Interviewer

Participant

Marks

Rounds

Winner

1. Ask Question

2.Answer the Question

3. If Answer is Correct provide Mark

4. If Not Correct Ask Next Question

5. If Check End of Round

6.If Yes Announce Winner

7. If No Ask Next Question

COLLABORATION DIAGRAM: Press f5 on the sequence diagram the coloration diagram is obtained.

FORM DESIGN: LOG IN PAGE:

QUESTION:

PASSWORD CHANGING:

UPDATE:

SOURCE CODE: Private Sub mnuAbout_Click() frmAbout.Show (1) End Sub

Private Sub mnuCourse_Click() frmCourse.Show (1) End Sub Private Sub mnuDuplicateSQuestions_Click() frmDuplicateSQuestions.Show 1 End Sub Private Sub mnuExit_Click() End End Sub Private Sub mnuFaculty_Click() frmFaculty.Show (1) End Sub Private Sub mnuPassword_Click() frmUtilityChangePassword.Show (1) End Sub Private Sub mnuQuiz_Click() frmQuizForm.Show (1) End Sub Private Sub mnuQuizForm_Click() frmAllQuizForms.Show (1) End Sub Private Sub mnuDuplicateQuizForm_Click() FrmCopyQuizForm.Show (1) End Sub Private Sub mnuRunQuizServer_Click() frmQuizServerRun.Show (1) End Sub Private Sub mnuStudent_Click() frmStudent.Show (1) End Sub Private Sub mnuUtilitiescreateBAckup_Click() MyAppID = Shell(D:\Academic Head\quizserver\backup.bat) AppActivate MyAppID MsgBox Backup has just been created! End Sub Private Sub mnuUtilitiesUseBackup_Click() MyAppID = Shell(D:\Academic Head\quizserver\usebak.bat) AppActivate MyAppID MsgBox Backup has just been used! But please check the DOS window first. End Sub Private Sub mnuViewCourse_Click() frmAllCourses.Show (1) End Sub Private Sub mnuViewFaculty_Click()

frmAllFacultyMembers.Show (1) End Sub Private Sub mnuViewQuestions_Click() strCnQu = DSN=DSNSample;server=server;uid=sa;pwd=touch;database=OnlynQuiz Set strCn1Qu = New ADODB.Connection strCn1Qu.Open strCnQu Call Initialization_Question frmViewQuizForm.Show (1) End Sub Private Sub mnuViewFacultyEnglishViolators_Click() frmViewFAcultyViolators.Show (1) End Sub Private Sub mnuViewQuizResults_Click() strCnQ = DSN=DSNSample;server=server;uid=sa;pwd=touch;database=OnlynQuiz Set strCn1Q = New ADODB.Connection strCn1Q.Open strCnQ Call Initialization_Quiz strCnLimit = DSN=DSNSample;server=server;uid=sa;pwd=touch;database=OnlynQuiz Set strCn1Limit = New ADODB.Connection strCn1Limit.Open strCnLimit Call Initialization_Limit frmQuizResults.Show (1) End Sub Private Sub mnuViewStudentEnglishViolators_Click() frmViewStudentViolators.Show (1) End Sub Private Sub mnuViolatorsFaculty_Click() frmFacultyViolations.Show (1) End Sub Private Sub mnuViolatorsStudents_Click() frmStudentViolations.Show (1) End Sub Private Sub Timer1_Timer() Label4.Caption = Date & & Time End Sub Private Sub txtPassword_Change() If txtuserName.Text <> And txtPassword.Text <> Then Command1.Enabled = True End If End Sub Private Sub txtUserName_Change() If txtuserName.Text <> And txtPassword.Text <> Then Command1.Enabled = True

End If End Sub End Sub Private Sub List_allcourses_Click() txtFiremode.Text = List_AllCourses.Text End Sub Dim TargetNum As String Dim AddZero As String cmdCreate.Enabled = True ReDim ArrQuestions(Val(ComboTotalItems.Text), 8) RecordCtr = RecordCtr + 1 TargetNum = Left(txtFireMode1.Text, 2) With rsQuestion .MoveFirst .Find compositenumquestion= & Trim(ComboQuizForm.Text) & While Not .EOF If Left(TargetNum, 1) = 0 Then TargetNum = Right(TargetNum, 1) End If If !itemnumber = TargetNum Then VarRow = VarRow + 1 VarListCtr = VarListCtr + 1 If Len(Trim(VarListCtr)) = 1 Then AddZero = 0 Else AddZero = End If If VarRow < Val(ComboTotalItems.Text) Then VarRow = VarRow + 1 List2.AddItem AddZero & VarListCtr & Space(3 Len(VarListCtr)) & | & _ !question & Space(250 Len(!question)) & | & _ !Option1 & Space(50 Len(!Option1)) & | & _ !Option2 & Space(50 Len(!Option2)) & | & _ !Option3 & Space(50 Len(!Option3)) & | & _ !Option4 & Space(50 Len(!Option4)) & | & _ !Option5 & Space(50 Len(!Option5)) & | & _ !correctanswer & Space(50 Len(!correctanswer)) ArrQuestions(VarRow, 1) = VarListCtr ArrQuestions(VarRow, 2) = !question ArrQuestions(VarRow, 3) = !Option1 ArrQuestions(VarRow, 4) = !Option2 ArrQuestions(VarRow, 5) = !Option3 ArrQuestions(VarRow, 6) = !Option4 ArrQuestions(VarRow, 7) = !Option5 ArrQuestions(VarRow, 8) = !correctanswer Else MsgBox You have specified only & Val(ComboTotalItems.Text) & questions for the quizform!, vbExclamation End If .MoveNext .Find compositenumquestion= & Trim(ComboQuizForm.Text) &

Wend End With List1.SetFocus cmdCopy.Enabled = False End Sub SOFTWARE TESTING: LOGIN PAGE:

QUESTION:

PASSWORD CHANGING:

CONCLUSION
Thus the system is developed using object oriented programming approach with the help of CASE tools.

ONLINE TICKET RESERVATION

AIM: To create a UML diagram for ONLINE TICKET RESERVATION system. ACTORS: 1. Passenger 2. System USE CASES: 1. Enter the web site 2. Choose the destination 3. List of trains 4. User details 5. Choose the train 6. Number of seats 7. Credit card number 8. Ticket status 9. Confirmation 10. Exit PROBLEM STATEMENT: Online ticket reservation system has to be developed for railway department. The System developed should contain following features 1. The System should provide information about arrival and departure of trains along with information about stations through which it passes. 2. Search about train passing through stations can be obtained either by means of train no, train name or specifying the source and destination stations. 3. While displaying information about train, it has to provide following informations a) Stations through which train passes along with arrival and departure time. b) Availability of seats in different classes along with waiting list and RAC information. 3. While reserving ticket online the system obtain following informations from the user a) Passenger name, Sex, Age, Address T.Authority no for tatkal reservation b) Credit Card No, Bank Name c) Class through passenger is going to travel i.e First class or Second class or AC d) Train no and Train name, Date of Journey and number of tickets to be booked. 4. Based on the availability of tickets the ticket has to be issued. The ticked issued should contain the following informations PNR NO, Train No, Date, K.M., no of adults and children, Ticket No, Class, Ticket No, Coach, Seat/Berth, Sex, Age, T.Authority, Concession, Reservation fee, Total Cash, Train Name, Departure time. 6. Before issuing ticket the amount from customer account has to be transferred to railway account. 7. Cancellation of booked tickets should be available

USE CASE DIAGRAM: Draw and drop the actors and use case from browser window into the diagram window. Associate the use cases and actors.

Enter the Web Site

Select the Destination

List of Trains System Passenger Select the Train

User Details Exit

No of Seats

Ticket Status

Credit Card No

Confirmation

CLASS DIAGRAM:
DB Train Name Train No Source Destination ArrTime DepTime Class Fare Distance Getcustomerdetails() gettraveldetails() confirmation() reserveticket() display() Process()

Customer Customer Name DOB Sex Address Phone Giv edet() availability() getconfirm() reserv e() givecreditcardno() getticket()

Computer isavailable ticketno maintaindb() updatedb() reserveticket() deliv erticket()

ACTIVITY DIAGRAM: The activity diagram describes the sequencing of activities, with support for both conditional and parallel behavior. The various controls are placed into the diagram window to create activity diagram.

Login Web Site

Select the Destination

Select the Train No & No of Seats

Yes Is Available

No

Try Later Create Customer Details

Credit Card Number

Confirmation

Exit

COLLABORATION DIAGRAM: Press f5 on the sequence diagram the coloration diagram is obtained.

SEQUENCE DIAGRAM: Create a new package from the database and name it as a sequence diagram. From the toolbar, select the required tools and make corresponding connections.
Passenger System DB

1. Login Web Site

2. Select the Destination

3. List of Trains

4. Giv e User Details

5. Giv e Train No & No...

6. Credit Card No

7. Giv e Status 8. Reserve Ticket

9.Confirmation 10. Issue Ticket

COMPONENT DIAGRAM:

DB

Store & Update

Computer

DEPLOYMENT DIAGRAM:

FORM DESIGN:

SOURCE CODE: Private Sub Command1_Click() Form2.Hide Form1.Show End Sub Private Sub DET_Click() Form2.Hide Form6.Show rs.MoveFirst Do While (Not rs.EOF) If (UCase(Combo1.Text) = rs.Fields("tname")) Then Form6.Text1.Text = rs.Fields("tno") Form6.Text2.Text = rs.Fields("from") Form6.Text3.Text = rs.Fields("to") Form6.Text4.Text = rs.Fields("fcf") Form6.Text5.Text = rs.Fields("scf") Form6.Text6.Text = rs.Fields("tcf") Form6.Text7.Text = rs.Fields("fsa") Form6.Text8.Text = rs.Fields("ssa") Form6.Text9.Text = rs.Fields("tsa") Form6.Text10.Text = rs.Fields("time") Exit Do End If rs.MoveNext Loop End Sub Private Sub Form_Load() Form2.WindowState = 2 dt.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Ramesh\RRS.mdb;Persist Security Info=False"

rs.Open "TRAIN", dt, adOpenDynamic, adLockOptimistic rs.MoveFirst Do While (Not rs.EOF) Combo1.AddItem rs.Fields("TNAME") rs.MoveNext Loop Text1.Text = "" Check.Visible = False DET.Visible = False c=0 End Sub Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then Check.Visible = True DET.Visible = False Check.SetFocus End Sub FORM2: Private Sub Command1_Click(Index As Integer) Select Case Index Case 0 clearint Case 1 clearint Me.Hide End Select End Sub Private Sub clearint() For i = 0 To 11 Text1(i) = "" Next i Text1(0).SetFocus End Sub FORM3: Dim i As Integer Private Sub Command1_Click(Index As Integer) Select Case Index Case 0 If ch = 1 Then t(0).AddNew For i = 0 To 11 t(0)(i) = Text1(i) Next i t(0).Update MsgBox "One Record Added" Command1(2).SetFocus ElseIf ch = 2 Then t(0).Update MsgBox "One Record Updated" Command1(2).SetFocus

ElseIf ch = 3 Then clearint Me.Hide End If Case 1 clearint Case 2 clearint Me.Hide End Select End Sub

FORM4: Private Sub Form_Load() connectint Set t(0) = db.OpenRecordset("perdet") Set t(1) = db.OpenRecordset("loan") End Sub Private Sub Text1_LostFocus(Index As Integer) Select Case Index Case 0 If Text1(0) <> "" Then If t(0).RecordCount <> 0 Then t(0).MoveFirst Do While Not t(0).EOF If Text1(0) = t(0)(0) Then Text1(1) = t(0)(1) j=1 Exit Do End If t(0).MoveNext Loop If j = 0 Then MsgBox "This Employee Number Doesn't exists" Text1(0) = "" Text1(0).SetFocus End If End If End Select End Sub

SOFTWARE TESTING:

CONCLUSION:
Thus the system is developed using object oriented programming approach with the help of CASE tools.

EX.NO: DATE:

PAYROLL SYSTEM

AIM: To create a Employee Payroll System for manipulating payroll management by using

SRS DOCUMENTATION: INTRODUCTION: Purpose: This document gives detailed functional and non functional requirements for payroll maintained system. The purpose of this document is that the requirements mentioned in it should be utilized by software developer to implement the system. Scope: This system allows the employee record. With the help of the system we are able to maintain the all records of the employees in very detail. The system provides a cumulative report at every month end with detail description. Overview: The system provides an easy solution to the user to keep track of student attendance and statistics. GENERAL DESCRIPTION: Many companies today are choosing the option of outsourcing portions of their accounting duties to a payroll processing system. With the introduction of the computer and high-technology communications, now it is easier than ever to hire professionals to handle bookkeeping and other jobs within the business. And, these professionals may be geographically located anywhere in the world, because the Internet allows instant access to people, records, facts, and other vital communications. Choosing the right payroll processing system to meet the individual needs of any given business will be important. Companies researching and actively looking for a payroll administrative service will want to find a service that will be easy to work with and offer the latest technology options. Having access to employees pay, bonus, and other special income records can be crucial for managers. Businesses may even consider choosing a payroll service systems that offers financial advice and one that can analyze payroll records. User manual: The system should provide HELP option in which how to operate the system should be explained. Also hard copy of this document should be given to the user in a booklet form. FUNCTIONAL REQUIREMENTS: Description: The identity of the employees is verified and then entered their details with date and time. The system should display the details of the employee along with their name and address.

SOFTWARE INTERFACE: Software interface 1: attendance maintenance system. Software interface 2: The employee database should be transmitted to departmental database server. Software interface 3: report generators. PERFORMANCE REQUIREMENS: This system should work concurrently on multiple processors between the office hours. The system should support 50 users. The email should be send within one hour after the office time get over. The system should support taking details attendance of maximum 50 employee per department. DESIGN CONSTRAINTS: The system should be designed within 6 months. OTHER NON FUNCTIONAL ATTRIBUTES: Security The user should provide password and login on to the system. The password can be changed by the user. Reliability: Due to wireless connectivity, reliability cannot be guaranteed. Availability: System should be available during office hours. Maintainability: There should be a facility to add or delete or update details of employees for each month. Reusability: The same system will be used in each month. OPERATIONAL SCENARIOS: There will be employee database and employee database with all needed details. PRELIMINARY SCHEULE: The system has to be implemented within 6 months. DESIGN DIAGRAMS:
USE CASE DIAGRAM:

employee details

basic pay calculation System Employee

lop calculation

gross salary calculation

net pay calculation

CLASS DIAGRAM:

emp details name staf no dept address doj 1 pf checking()

basicpay ug pg 1 calc bp() 1

total pay basicpay da rsia 1 name2 1 caltp()

lop cl basic pay da 1 rsia 1 callop() grosssal lop tp 1 calgrsal() 1 1 calnetpay() net sal gross pay pf

COLLOBORATION DIAGRAM:

1: retrieve emp details employee emp details

2: basic pay calc based on ug pg basic pay

grosssal 3: add basic,DA,RSIA 10: intimate the employee

4: if lop not available gs=tp 7: netsal calc by deducting pf if any 8: netsal=grosssal if no pf totalpay

6: grosssal=tp-lop system 9: update details netsal 5: calculation of lop if lop available

lop

SEQUENCE DIAGRAM:
employee emp details basic pay totalpay lop grosssal netsal system

retrieve emp details basic pay calc based on ug pg add basic,DA,RSIA if lop not available gs=tp

calculation of lop if lop available grosssal=tp-lop netsal calc by deducting pf if any

netsal=grosssal if no pf

update details

intimate the employee

ACTIVITY DIAGRAM:

IMPLEMENTATION:

FORM DESIGN:

SOURCE CODE: FORM 1:


Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub cmdOK_Click() If txtUserName.Text = rs.Fields(0) And txtPassword.Text = rs.Fields(1) Then MDIForm1.Show Me.Hide End If End Sub Private Sub Command1_Click () Frame1.Visible = True End Sub Private Sub Command2_Click () rs.AddNew rs.Fields(0) = Text1.Text rs.Fields(1) = Text2.Text rs.Update MsgBox Save Frame1.Visible = False End Sub Private Sub Command3_Click () Form4.Show Me.Hide End Sub Private Sub Form_Activate() Set con = New ADODB.Connection Set rs = New ADODB.Recordset con.Open Provider=Microsoft.Jet.OLEDB.4.0; Data Source= & App.Path & \pas.mdb;Persist Security Info=False rs.Open pas, con, adOpenDynamic, adLockOptimistic Frame1.Visible = False Text1.Text = Text2.Text = End Sub

FORM 2: Private Sub Command1_Click () rs.AddNew rs.Fields(0) = Text1.Text If Option1 = True And Option2 = False Then rs.Fields(1) = Option1.Caption Else rs.Fields(1) = Option2.Caption End If rs.Fields(2) = Text2.Text Text3.Text = rs.Fields(3) rs.Fields(4) = Text4.Text rs.Fields(5) = Text5.Text rs.Update MsgBox added End Sub Private Sub Command2_Click()

MDIForm1.Show End Sub Private Sub Command3_Click() Text1.Text = Text2.Text = Text3.Text = Text4.Text = Text5.Text = End Sub Private Sub Form_Activate() Set con = New ADODB.Connection Set rs = New ADODB.Recordset con.Open Provider=Microsoft.Jet.OLEDB.4.0;Data Source= & App.Path & \db2.mdb;Persist Security Info=False rs.Open personal, con, adOpenDynamic, adLockOptimistic MsgBox connection successfully End Sub

FORM 3: Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Private Sub cmdexit_Click() End End Sub Private Sub Command1_Click() Text2.Text = Text1.Text = Text3.Text = Combo2.Text = Combo1.Text = Combo3.Text = rs.Fields.Refresh rs.Update If (Text2.Text = And Text1.Text = And Text3.Text = And Combo2.Text = And Combo1.Text = And Combo3.Text = ) Then MsgBox please search your details and modify your details Else rs.MoveFirst While Not rs.EOF If Text2.Text = rs.Fields(1) Then MsgBox ID already exist Exit Sub Else rs.MoveNext End If Wend rs.AddNew rs.Fields(0) = Text1.Text rs.Fields(1) = Text2.Text rs.Fields(2) = Text3.Text rs.Fields(3) = Combo1.Text rs.Fields(4) = Combo2.Text rs.Fields(5) = Combo3.Text

rs.Fields(6) = Val(Combo3.Text + (Combo3.Text * 12 / 100)) rs.Update MsgBox added Text2.Text = Text1.Text = Text3.Text = Combo2.Text = Combo1.Text = Combo3.Text = End If End Sub End Sub Private Sub Command3_Click() Dim I As Integer I = 1 For I = 1 To rs.Fields.Count If (rs.Fields(1) = Text2.Text) Then If (rs.BOF = False) And (rs.EOF = False) Then While Not rs.EOF If Trim(Ucase(rs.Fields(1))) = Text2.Text Then Text1.Text = rs.Fields(0) Text2.Text = rs.Fields(1) Text3.Text = rs.Fields(2) Combo2.Text = rs.Fields(3) Combo1.Text = rs.Fields(4) Combo3.Text = rs.Fields(5) Exit Sub Else rs.MoveNext End If Wend rs.Delete MsgBox (Record Deleted) MsgBox (no data deleted) If (rs.BOF = True) And (rs.EOF = True) Then MsgBox (no data found) End If Else MsgBox (no data deleted) End If Next i End Sub Private Sub Command6_Click() Command2.Enabled = True employeeid = InputBox(ENTER THE ID) If employeeid = Then Exit Sub End If rs.MoveFirst While Not rs.EOF If Trim(Ucase(rs.Fields(1))) = Trim(Ucase(employeeid)) Then Text1.Text = rs.Fields(0) Text2.Text = rs.Fields(1)

Text3.Text = rs.Fields(2) Combo2.Text = rs.Fields(3) Combo1.Text = rs.Fields(4) Combo3.Text = rs.Fields(5) Exit Sub End If rs.MoveNext Wend MsgBox No such Record, vbCritical If rs.BOF = True Then Text1.Text = 1 Else rs.MoveLast Text1.Text = Val(rs.Fields(0)) + 1 End If End Sub Private Sub Command8_Click() MDIForm1.Show End Sub Private Sub Form_Activate() Set con = New ADODB.Connection Set rs = New ADODB.Recordset con.Open Provider=Microsoft.Jet.OLEDB.4.0;Data Source= & App.Path & \db1.mdb;Persist Security Info=False rs.Open employee, con, adOpenDynamic, adLockOptimistic MsgBox connection successfully Text1.SetFocus Text2.Text = Text1.Text = Text3.Text = Combo2.Text = Combo1.Text = Combo3.Text = End Sub

OUTPUT SCREEN:

CONCLUSION:
Thus the system is developed using object oriented programming approach with the help of CASE tools.

COURSE REGISRTRATION SYSTEM AIM: To create a UML diagram of COURSE REGISTRATION system. ACTORS: 1. 2. 3. 4. Student Staff Registrar Database

USECASES: 1. 2. 3. 4. 5. 6. 7. 8. 9. Login id Registration form Update the grade of student Choose the subject Choose the courses Start registration Maintain student profile Close registration Maintain staff profile

PROBLEM STATEMENT: 1. Develop a new student registration system for your college. 2. The college would like a new client-server system to replace its much older system developed around mainframe technology. 3. The database is an Ingres relational database running on a DEC VAX. And the college has invested in an open SQL interface that allows access to this database from the Unix servers. 4. The new system will allow students to select four course offerings for the coming semester. In addition, each student will indicate two alternative choices in case the student cannot be assigned to a primary selection. 5. Course offerings will have a maximum of twenty students and a minimum of five students. A course offering with fewer than five students will be canceled.Students must be able to access the system during this time to add or drop courses. Once the registration process is completed for a student, the registration system sends information to the billing system so the student can be billed for the semester. 6. If a course fills up during the actual registration process, the student must be notified of the change before submitting the schedule for processing. 7. At the end of the semester, the student will be able to access the system to view an electronic report card. Since student grades are sensitive information, the system must employ extra security measures to prevent unauthorized access.

USE CASE DIAGRAM: Draw and drop the actors and use case from browser window into the diagram window. Associate the use cases and actors.

Login ID

Choose the Course

Chose the Subject

Registration Form

Staff Student

Start Registration

Maintain Staff Profile

Database maintain Student Profile

Registrar

Close Registration

Update the Grade

CLASS DIAGRAM:
DB Class StuID Stu Name StuADD StuCourse StuMarks Stuextra Courseavailable Feestructure Duration DOB AddRecord() Edit Record() DisplayRecord() Miscellenous()

STUDENT ID NAme Address Course Marks DOB Enterdetails() submitform()

REGFORM ISEliegible() Form ID Open Form() Check Eligiblity() Register() Assign ID()

ACTIVITY DIAGRAM: The activity diagram describes the sequencing of activities, with support for both conditional and parallel behavior. The various controls are placed into the diagram window to create activity diagram.

Login ID

Get Registration Form

Update the Grade

Select Courses & Subjects

Elgible Display Not Eligible Check Eligibility Not Eligible

Maintain Student Profile

Close Registration

COMPONENT DIAGRAM:
SERVER

Store & Update

Front Panel

SEQUENCE DIAGRAM:
Staff

Create a new package from the database and name it as a sequence diagram. From the toolbar, select the required tools and make corresponding connections.
Database Registrar Databse

1. Login ID 2. Get Form

3. Select Course 4.Select Subject

5. Submit Form 6. Check the Form 7. Maintain Staff Profile

8. Maintain Student Profile

9. If Not Eligible Display

10. Close Registration

COLLABORATION DIAGRAM: Press f5 on the sequence diagram the coloration diagram is obtained.

DEPLOYMENT DIAGRAM:

FORM DESIGN: HOME PAGE:

PRINT:

PRINT INFORMATION:

STUDENT AND MARK DETAILS:

SOURCE CODE: Private Sub Command6_Click() Form3.Show Unload Me End Sub Private Sub Command8_Click() Adodc1.Refresh End Sub Private Sub exit_Click() Dim iReply As Integer iReply = MsgBox("Are You Sure ?", vbYesNo + vbQuestion, "Exit") If iReply = vbYes Then End End If End Sub Private Sub Form_Activate() Text16.SetFocus End Sub Private Sub Form_Load() Adodc1.ConnectionString = ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & (App.Path & "\data.mdb")) Adodc1.RecordSource = "Select * From data order by matric desc"

Set DataGrid1.DataSource = Adodc1 DataGrid1.AllowUpdate = False SSTab1.Tab = 0 End Sub Private Sub form1_Click() SSTab1.Tab = 0 End Sub Private Sub home_Click() Form2.Show Unload Me End Sub Private Sub Option1_Click() If Option1.Value = True Then DataCombo1.Visible = True End If End Sub Private Sub Option2_Click() If Option2.Value = True Then DataCombo1.Visible = False Label17.Visible = False End If End Sub Private Sub print_Click() SSTab1.Tab = 2 End Sub Private Sub record_Click() SSTab1.Tab = 1 End Sub

Private Sub Text1_LostFocus() Text1.Text = UCase(Text1.Text) End Sub Private Sub Text10_LostFocus() Text10.Text = (Text10.Text) End Sub Private Sub Text11_LostFocus() Text11.Text = (Text11.Text) End Sub Private Sub Text12_LostFocus() Text12.Text = (Text12.Text) End Sub Private Sub Text13_LostFocus()

Text13.Text = (Text13.Text) End Sub Private Sub Text14_LostFocus() Text14.Text = (Text14.Text) End Sub Private Sub Text16_Change() Text17.Locked = False Text18.Locked = False Text19.Locked = False Adodc1.Recordset.MoveFirst Adodc1.Recordset.Find "matric like '" & Text16.Text & "'" If Adodc1.Recordset.EOF Then Command1.Caption = "&Add" Me.Caption = "Course Registration" Exit Sub Else Text1.Text = (Adodc1.Recordset.Fields(4)) Text2.Text = (Adodc1.Recordset.Fields(5)) Text3.Text = (Adodc1.Recordset.Fields(6)) Text4.Text = (Adodc1.Recordset.Fields(7)) Text5.Text = (Adodc1.Recordset.Fields(8)) Text6.Text = (Adodc1.Recordset.Fields(9)) Text7.Text = (Adodc1.Recordset.Fields(10)) Text8.Text = (Adodc1.Recordset.Fields(11)) Text9.Text = (Adodc1.Recordset.Fields(12)) Text10.Text = (Adodc1.Recordset.Fields(13)) Text11.Text = (Adodc1.Recordset.Fields(14)) Text12.Text = (Adodc1.Recordset.Fields(15)) Text13.Text = (Adodc1.Recordset.Fields(16)) Text14.Text = (Adodc1.Recordset.Fields(17)) Text15.Text = (Adodc1.Recordset.Fields(25)) Text17.Text = (Adodc1.Recordset.Fields(1)) Text18.Text = (Adodc1.Recordset.Fields(2)) Text19.Text = (Adodc1.Recordset.Fields(3)) Combo1.Text = (Adodc1.Recordset.Fields(18)) Combo2.Text = (Adodc1.Recordset.Fields(19)) Combo3.Text = (Adodc1.Recordset.Fields(20)) Combo4.Text = (Adodc1.Recordset.Fields(21)) Combo5.Text = (Adodc1.Recordset.Fields(22)) Combo6.Text = (Adodc1.Recordset.Fields(23)) Combo7.Text = (Adodc1.Recordset.Fields(24)) Command1.Caption = "&Save" Me.Caption = "Course Registration" Command2.Caption = "Reset" End If End Sub Private Sub Text16_LostFocus() Text16.Text = (Text16.Text) End Sub

Private Sub Text17_LostFocus() Text17.Text = (Text17.Text) End Sub Private Sub Text18_LostFocus() Text18.Text = (Text18.Text) End Sub Private Sub Text19_LostFocus() Text19.Text = (Text19.Text) End Sub Private Sub Text2_LostFocus() Text2.Text = UCase(Text2.Text) End Sub Private Sub Command1_Click() form1.Show Unload Me End Sub Private Sub Command6_Click() DataCombo1.Refresh DE1.rsCommand1.Filter = "" If Option2.Value = True Then DE1.rsCommand1.Filter = "" End If If Option1.Value = True Then If DataCombo1.Text = "" Then MsgBox "Please select a matric number.", vbExclamation, "Course Registration System" Exit Sub End If DE1.rsCommand1.Filter = "matric ='" & (DataCombo1.Text) & "'" End If DataReport1.Show DE1.rsCommand1.Close End Sub Private Sub Form_Load() Me.Top = 0 Me.Left = 0 Option1.Value = True Call matric1 DataCombo1.Refresh End Sub

Private Sub Option1_Click() If Option1.Value = True Then DataCombo1.Visible = True End If End Sub

SOFTWARE TESTING: HOME PAGE:

COURSE REGISTER:

PRINT:

CONCLUSION:
Thus the system is developed using object oriented programming approach with the help of CASE tools.

EXPERT SYSTEM AIM: To Create an Uml Diagram for an EXPERT SYSTEM. ACTORS: 1) User 2) Expert System USE CASE: 1) Fill Registration Form. 2) Login System. 3) Fill Query Form. 4) Prescribe Medicine. PROBLEM STATEMENT: An expert System has to be developed for prescribing medicines for given symptoms. The System should contain the following features 1. The user has to query the system by giving his name, age group, sex, symptoms, period (how long the user is having those symptoms). Based on these inputs, the system has to make a comparison with the symptoms in the database prescribing the medicine for the symptoms. 2. Only the Registered users can query the system. So there should be registration form and after registration the user has to be given username and password. If the user enters the correct password then the system has to redirect to query form. 3. In the query form, age group should be combo box and list of symptoms should be in the form of list box with options selecting multiple symptoms. While prescribing the medicine for the symptoms, corresponding disease, medicine name and medicine manufacturer name along with price has to be displayed. USE CASE DIAGRAM:

Fills Registration form

user

Login system

expertsystem

Fill Query form

prescribe medicine

CLASS DIAGRAM:

ACTIVITY DIAGRAM:
user expertsystem database

Fill the registration form Enters the Expert system [ yes ]

check the given details

update in the database

new user [ no ] [ login incorrect ]

Issues uername/password

login in the system

[ username/password ]

verify login information

[ login correct ] Filling the query form Provides query form

Submitting the query form [ syptoms matched ] view medicine details prescribing the medicines

compares with the database details

[ symptoms not matched ]

Symptoms not matched!!

SEQUENCE DIAGRAM:

COLLABORATION DIAGRAM:

COMPONENT DIAGRAM:
Expert system Database

user

login interface

Prescribes medicine

Fills the Query form

Fills the Registration form

DEPLOYMENT DIAGRAM:

FORM DESIGN:

SOURCE CODE: Dim StartX, StartY Dim Titles(40) As String Dim CommonWords(127) As String Dim OAspeech(10) As String Dim OACounter As Integer Dim EventIndex As Integer Dim subWindow As Integer Dim counter As Integer Private Sub Form_Click() picAnimate.Visible = False End Sub Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single) Source.Move X - StartX, Y - StartY If picInfo.Visible = True Then picInfo.Left = picChar.Left - (picInfo.Width / 2) picInfo.Top = picChar.Top - (picInfo.Height + 50) lblGreet.Top = picChar.Top lblGreet.Left = (picChar.Left - lblGreet.Width) + picChar.Width + 50 End If

If picResult.Visible = True Then picResult.Left = picChar.Left - (picResult.Width / 2) picResult.Top = picChar.Top - (picResult.Height + 50) lblGreet.Top = picChar.Top lblGreet.Left = (picChar.Left - lblGreet.Width) + picChar.Width + 50 End If End Sub Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) picEvents(0).Picture = IList.ListImages("admission1").Picture picEvents(1).Picture = IList.ListImages("enrolment1").Picture picEvents(2).Picture = IList.ListImages("scholarship1").Picture picEvents(3).Picture = IList.ListImages("general1").Picture picEvents(4).Picture = IList.ListImages("policy1").Picture picEvents(5).Picture = IList.ListImages("guidelines1").Picture End Sub Private Sub lblSubEvents_Click(Index As Integer) Dim count As Integer For count = 0 To 5 picEvents(count).Visible = False Next tmrAction.Enabled = True picAnimate.Visible = False tmrSlide.Enabled = True End Sub Private Sub lstTitles_DblClick() Dim count As Integer For count = 0 To 5 picEvents(count).Visible = False Next picAnimate.Visible = False tmrSlide.Enabled = True Select Case lstTitles.Text Case "Incoming freshmen students" Web.Navigate2 App.Path & "\html\Incoming freshmen students.htm" Case "Transferees" Web.Navigate2 App.Path & "\html\Transferees.htm" Case "Foreign students" Web.Navigate2 App.Path & "\html\Foreign students.htm" Case "Enrolment procedure" Web.Navigate2 App.Path & "\html\Enrolment procedure.htm" Case "Student load" Web.Navigate2 App.Path & "\html\Student load.htm" Case "Pre-requisites of subjects" Web.Navigate2 App.Path & "\html\Pre-requisites of subjects.htm" Case "Adding/Dropping of subjects" Web.Navigate2 App.Path & "\html\Adding_Dropping of subjects.htm" Case "Dropping of subjects before midterm" Web.Navigate2 App.Path & "\html\Dropping of subjects before midterm.htm" Case "Withdrawal of enrolment" Web.Navigate2 App.Path & "\html\Withdrawal of enrolment.htm"

Case "Shifting of course" Web.Navigate2 App.Path & "\html\Shifting of course.htm" Case "Discontinuance of studies / Leave of absense" Web.Navigate2 App.Path & "\html\Discontinuance of studies.htm" Case "Transfer credential" Web.Navigate2 App.Path & "\html\Transfer credential.htm" Case "Scholarship grants" Web.Navigate2 App.Path & "\html\Scholarship grants.htm" Case "Honors" Web.Navigate2 App.Path & "\html\Honors.htm" Case "Standard of conduct" Web.Navigate2 App.Path & "\html\Standard of conduct.htm" Case "Student organizations" Web.Navigate2 App.Path & "\html\Student organizations.htm" Case "Student activities" Web.Navigate2 App.Path & "\html\Student activities.htm" Case "Rules governing scholastic delinquency" Web.Navigate2 App.Path & "\html\Rules governing scholastic delinquency.htm" Case "Administration" Web.Navigate2 App.Path & "\html\Administration.htm" End Select End Sub

Private Sub picEvents_Click(Index As Integer) Dim count As Integer For count = 0 To 3 lblSubEvents(count).Left = 240 Next For count = 4 To 7 lblSubEvents(count).Left = 3000 Next Select Case Index Case 0 For count = 0 To 2 lblSubEvents(count).Caption = Titles(count) Next For count = 3 To 7 lblSubEvents(count).Caption = "" Next subWindow = 4000 Case 1 For count = 0 To 7 lblSubEvents(count).Caption = Titles(count + 3) Next subWindow = 7000 Case 2 For count = 0 To 3 lblSubEvents(count).Caption = Titles(count + 12) Next For count = 4 To 7 lblSubEvents(count).Caption = "" Next

subWindow = 4000 Case 3 For count = 0 To 7 lblSubEvents(count).Caption = Titles(count + 16) Next subWindow = 6000 End Select End Sub Private Sub picEvents_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single) Case 0 picEvents(0).Picture = IList.ListImages("admission2").Picture Case 1 picEvents(1).Picture = IList.ListImages("enrolment2").Picture Case 2 picEvents(2).Picture = IList.ListImages("scholarship2").Picture Case 3 picEvents(3).Picture = IList.ListImages("general2").Picture End Select End Sub

SOFTWARE TESTING:

CONCLUSION:
Thus the system is developed using object oriented programming approach with the help of CASE tools.

ATM APPLICATION
AIM: To create an uml diagram of atm application. ACTORS: 1. Client 2. Administrator USECASES: 1. Insert card 2. Enter pin no 3. Invalid pin 4. Type of transaction 5. Deposit amount 6. Withdrawal amount 7. Transaction completed 8. Remove the card 9. Exit 10. Carryout transaction PROBLEM STATEMENT: To develop an ATM System for HDFC Bank The system developed should contain the following features: 1. The Customer has to login into the system using Credit Card or Debit Card number and Pin Number. The system should check for validation. 2. The System queries the customer for the type of account either Savings Account or Current Account. After getting the type of account, the system shows the amount left. 3. The System then queries the customer for the required amount. The user enters the amount and gets the money. USECASE DIAGRAM: Draw and drop the actors and usecase from browser window into the diagram window. Associate the usecases and actors.

Insert Card Enter PIN Invalid PIN Approval

Deposit Amount Type of Transaction Client Administrator

Withdraw Amount Remove the Card Transaction Complted

Exit

CLASS DIAGRAM:

ACTIVITY DIAGRAM: The activity diagram describes the sequencing of activities, with support for both conditional and parallel behavior. The various controls are placed into the diagram window to create activity diagram.

Insert Card

Display Invalid

Enter PIN No

Check PIN No Invalid

Valid

Deposit Withdrawal Withdrawal Amount Check Type of Transaction Deposit Amount

Approval

Transaction Completed

Exit

SEQUENCE DIAGRAM: Create a new package from the database and name it as a sequence diagram. From the toolbar, select the required tools and make corresponding connections
Client ATM Administrator Bank

1. Insert Card

2. Enter PIN No 3. Send PIN No 4. Verify PIN No

5. Validate Message

6. Get Transaction Type

7. Get Amount 8. Send Amount 9. Update Account

10. Success 11. Transaction Completed

COLLABORATION DIAGRAM: Press f5 on the sequence diagram the coloration diagram is obtained. Save the diagram.

COMPONENT DIAGRAM:
ATM Serv er

Update

Front Panel

DEPLOYMENT DIAGRAM:

FORM DESIGN:

SOURCE CODE: Option Explicit Dim strWithAmt As String Dim Response As Integer Private Sub cmdCancel_Click() Unload Me Me.Hide strWithAmt = "Do you want to perform another operation?" Response = MsgBox(strWithAmt, vbYesNo + vbInformation, " A.T.M Services... ") If Response = vbYes Then frmWel.fraTransaction.Visible = True frmWel.fraAcctType.Visible = False Else End End If End Sub Private Sub cmdOk_Click() Unload Me Me.Hide strWithAmt = "Do you want to perform another operation?" Response = MsgBox(strWithAmt, vbYesNo + vbInformation, " A.T.M Services... ") If Response = vbYes Then frmWel.fraTransaction.Visible = True frmWel.fraAcctType.Visible = False Else End End If End Sub Private Sub Form_Load() Call Crent Rem txtWDate = Date With rsC .Find "AccountNumber =" & ActVariable & "" If .EOF Then MsgBox "Account does not Exist! Please contact customer services", vbInformation, "A T M Service....." Else PrevBal = rsC.Fields(4) lblCurrentB = FormatCurrency(PrevBal) End If End With End Sub Private Sub cmdChangPin_Click() With rsCode .Find "Scode ='" & txtOldPin & "'"

If .EOF Then MsgBox "Pin Number does not Exist! ", vbInformation txtOldPin = "" txtNewPin = "" txtConFNewPin = "" txtOldPin.SetFocus ElseIf Len(txtNewPin) = Len(txtConFNewPin) And Len(txtNewPin) > 3 And Len(txtConFNewPin) > 3 Then txtOldPin.Text = txtNewPin.Text .Fields(0) = txtOldPin .Fields(1) = txtOldPin .Fields(2) = txtConFNewPin .Update MsgBox "Pin Has been Successfull changed!", vbInformation Unload Me frmWel.fraTransaction.Visible = True Else MsgBox "Confirm Pin does not march with New Pin", vbInformation txtOldPin = "" txtNewPin = "" txtConFNewPin = "" txtOldPin.SetFocus End If End With End Sub Private Sub cmdExit_Click() Unload Me frmWel.fraTransaction.Visible = True End Sub Private Sub Form_Load() Call tblSecretCode Call OpenDB End Sub Private Sub cmdSearch_Click() If cmdSearch.Caption = "&View Statement" Then ActVariable = txtStAcctNum.Text Unload Me Load frmWait frmWait.Show frmWel.fraTransaction.Visible = False Exit Sub ElseIf cmdSearch.Caption = "&Process" Then ActVariable = txtStAcctNum Call Crent With rsC .Find "AccountNumber =" & ActVariable & "" If .EOF Then MsgBox "Account does not Exist! Please contact customer services", vbInformation, "A T M Service....." txtStAcctNum = ""

txtStAcctNum.SetFocus cmdSearch.Caption = "&Process" Else Unload Me Me.Hide Load frmWithD frmWithD.Show vbModal End If End With Else ActVariable = txtStAcctNum Call Crent With rsC .Find "AccountNumber =" & ActVariable & "" If .EOF Then MsgBox "Account does not Exist! Please contact customer services", vbInformation, "A T M Service....." txtStAcctNum = "" txtStAcctNum.SetFocus cmdSearch.Caption = "&Inquire" Else Unload Me Me.Hide frmCash.Image1.Visible = False frmCash.cmdOk.Visible = False Load frmCash frmCash.Show vbModal End If End With End If Unload Me frmWel.fraTransaction.Visible = True frmWel.fraAcctType.Visible = False frmWel.fraSecretCode.Visible = False End Sub

Dim cleardisplay As Boolean Dim strMessage As String Private Sub cmdAccept_Click() Set rs = New ADODB.Recordset With rs .ActiveConnection = con .CursorLocation = adUseClient .CursorType = adOpenKeyset .LockType = adLockOptimistic .Open "tblScode" End With With rs .Find "Scode ='" & txtDisplay & "'"

If .EOF Then MsgBox "Pin Number is incorrect or does not Exist", vbCritical, "ATM-Pin Error" txtDisplay = "": txtDisplay.SetFocus Else fraTransaction.Visible = True fraSecretCode.Visible = False End If End With txtDisplay = "" End Sub Private Sub cmdBack_Click() fraTransaction.Visible = False fraSecretCode.Visible = True End Sub Private Sub cmdCancel_Click() fraAcctType.Visible = False fraTransaction.Visible = True End Sub Private Sub cmdClear_Click() txtDisplay.Text = "": txtDisplay.SetFocus End Sub Private Sub cmdExit_Click() fraSecretCode.Visible = False MsgBox "Thank you for Banking with us, Do have an nice day...", vbInformation, "A T M-SERVICE" End End Sub Private Sub cmdOk_Click() With deBankUba .conBankUba.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\BankUba.mdb;" .rscmdStatement.Open "Select * From DailyTrans where [AccountNumber]='" & txtAcctNo & "'", deBankUba.conBankUba, adOpenDynamic, adLockOptimistic rptStatement.Show vbModal .conBankUba.Close End With Unload Me End Sub

SOFTWARE TESTING:

CONCLUSION:
Thus the system is developed using object oriented programming approach with the help of CASE tools.

STOCK MAINTENANCE
AIM: To create a UML diagram for the stock maintenance system. ACTORS: 1. Producer 2. Dealer 3. Retailer . USE CASE: 1. Purchase 2. Company name 3. Price 4. Item ordered 5. Total price 6. Sales 7. Company Name 8. Price of the item 9. Item ordered 10. Total price PROBLEM STATEMENT: Inventory system is a real time application used in the merchants day to day systems. This is the database to store transactions that takes place between the manufacturer, dealer and retailer. That includes stock inwards and stock outwards with reference to the dealer. Here we assume ourselves as a dealer and proceed with the transaction. The manufacturer is the producer of items and it contains the necessary information of the item price. The dealer is the secondary source of an item from the manufacturer by requesting the required item with its corresponding company name and the number of item required. The dealer is only responsible for the distribution of the item to the retailer in the town/city. The shopkeeper/retailer is the one who is the main source of selling the items in the market. The customer gets the item from the shopkeeper and not directly from the manufacturer or dealer. Stock is a database used in our system in which records or transactions that takes place between manufacturer, dealer and retailer.

USE CASE:

CLASS DIAGRAM:

Manufacturer Menu/Item Name Company name Date of Item Address Contact No Price Mention an item name() give company name() give manufacturing date() give address() put price()

Dealer 1 Dealer Name Date_item Received contact no no of item ordered No of Item sold Display dealer name() Item Received() Put contact no() get price() no of item required() indicate item sold()

retailer 1 Shop Keeper name address contact no price no of items ordered Display Shopkeeper() Display address() Get Contact no() Display price() Indicate item ordered()

ACTIVITY DIAGRAM:

SEQUENCE DIAGRAM:
Manufacturer 1: Display item for sale 2: Display to Shopkeeper Dealer Retailer

3: Company Name and price details

4: Get price and other details

5: give price details 6: Display price

7: no of item ordered

8: Ordered items

9: Delivered items to dealer\ 10: Delivered item to retailer

11: Check for extra price available

12: Item sufficient and insufficient

COLLABORATION DIAGRAM:
1: Display item for sale 5: give price details 9: Delivered items to dealer\ Manufac turer 8: Ordered items 4: Get price and other details Dealer

12: Item sufficient and insufficient 10: Delivered item to retailer 6: Display price

2: Display to Shopkeeper 3: Company Name and price details 7: no of item ordered 11: Check for extra price available

Retailer

COMPONENT DIAGRAM:

Stock Maintanance system maintains database informs order

stockinterf ace custo mer vend or

order for material

finished goods

DEPLOYMENT DIAGRAM:

Stock System

Database

vendor Customer

FORM DESIGN:

SOURCE CODE: FORM 1: Option Explicit Public FORM_STATE As Boolean Public CODE As String 'Public rs_user As New Recordset Private Sub Command1_Click() If IS_EMPTY(Text1) = True Then Exit Sub If IS_EMPTY(Text2) = True Then Exit Sub If IS_EMPTY(Text2) = True Then Exit Sub With rs_xxx If FORM_STATE = True Then .AddNew .Fields(1) = Text1.Text .Fields(2) = Text2.Text .Update End With '-----------------------------'Inform updates '-----------------------------If FORM_STATE = True Then MsgBox "Adding of new user has been successfull.", vbInformation Dim rep As Integer rep = MsgBox("Do you want to add another user?", vbQuestion + vbYesNo) If rep = vbYes Then Text1.Text = "" Text2.Text = "" Text3.Text = "" Text1.SetFocus rs_xxx.Requery FRM_USERS.LOAD_RECORD Else rs_xxx.Requery FRM_USERS.LOAD_RECORD Unload Me End If rep = 0 Else If LCase(user_name) = LCase(Text1.Text) Then user_name = Text1.Text MAIN.StatusBar1.Panels.Item(3).Text = user_name End If MsgBox "Changes in record has been successfully saved.", vbInformation, "CSRS version 1" Dim pos As Long pos = rs_xxx.AbsolutePosition rs_xxx.Requery FRM_USERS.LOAD_RECORD rs_xxx.AbsolutePosition = pos FRM_USERS.ListView1.ListItems.Item(pos).EnsureVisible

FRM_USERS.ListView1.ListItems.Item(pos).Selected = True pos = 0 Unload Me End If '-----------------------------'End-Inform updates '-----------------------------End Sub Private Sub Command2_Click() Unload Me End Sub Private Sub Form_Load() If FORM_STATE = False Then Text1.Text = rs_xxx.Fields(1) Text2.Text = rs_xxx.Fields(2) Text3.Text = rs_xxx.Fields(2) Me.Label2.Caption = "Edit User" Me.Label1.Caption = "Change your Username and Password" End If End Sub Private Sub Form_Unload(Cancel As Integer) FRM_USERS.Enabled = True End Sub FORM2: Private BufferSize As Long 'SetFileDateTime Declarations (Yep, all of this!!!) Private Type FILETIME dwLowDate As Long dwHighDate As Long End Type Private Type SYSTEMTIME wYear As Integer wMonth As Integer wDayOfWeek As Integer wDay As Integer wHour As Integer wMinute As Integer wSecond As Integer wMillisecs As Integer End Type Private Const OPEN_EXISTING = 3 Private Const FILE_SHARE_READ = &H1 Private Const FILE_SHARE_WRITE = &H2 Private Const GENERIC_WRITE = &H40000000

Private Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" (ByVal lpFileName As String, ByVal dwDesiredAccess As Long, ByVal dwShareMode As Long, ByVal lpSecurityAttributes As Long, ByVal dwCreationDisposition As Long, ByVal dwFlagsAndAttributes As Long, ByVal hTemplateFile As Long) As Long Private Declare Function LocalFileTimeToFileTime Lib "kernel32" (lpLocalFileTime As FILETIME, lpFileTime As FILETIME) As Long Private Declare Function SetFileTime Lib "kernel32" (ByVal hFile As Long, ByVal MullP As Long, ByVal NullP2 As Long, lpLastWriteTime As FILETIME) As Long Private Declare Function SystemTimeToFileTime Lib "kernel32" (lpSystemTime As SYSTEMTIME, lpFileTime As FILETIME) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long Private Sub cmdCopy_Click() On Error GoTo cmdCopy_Click_Error Dim i As Integer Dim SRC As String Dim TRG As String Dim b As Boolean Dim t Dim Style Dim Title As String Dim Response Dim Msg As String Dim vFileDateTime Dim bStat As Boolean Call SetEnabled(False) SRC = txtSource.Text 'Set Source File Name i = InStrRev(txtSource.Text, "\") 'Find \Filename TRG = txtTarget.Text & Mid(txtSource.Text, i) 'Set Target Location and Name b = FileExist(txtTarget.Text & Mid(txtSource.Text, i)) 'Does File Already Exist? If b = True Then Msg = "The file '" & TRG & "' already exists. Would you like to overwrite it?" Style = vbYesNo + vbCritical + vbDefaultButton2 ' Define buttons. Title = "F I L E E X I S T S" ' Define title. Response = MsgBox(Msg, Style, Title) If Response = vbYes Then ' User chose Yes. On Error Resume Next SetAttr TRG, vbNormal Kill TRG Else ' User chose No. lblStatus.Caption = "File Copy Aborted!" Call SetEnabled(True) Exit Sub End If End If lblStatus.Caption = "Copying: " & Mid(txtSource.Text, i + 1): DoEvents b = CopyTheFile(SRC, TRG) 'Call Copy Routine If b = False Then 'No Errors vFileDateTime = FileDateTime(SRC) 'Get Source file date and time bStat = SetFileDateTime(TRG, vFileDateTime) 'Call routine to set target file Date and Time lblStatus.Caption = "File Copied Successfully!" Else 'Error

lblStatus.Caption = "Error Copying: " & Mid(txtSource.Text, i + 1) End If DoEvents If b = True Then Exit Sub 'No Need to verify If FileLen(SRC) < 0 Then Exit Sub If chkVerify.Value = 1 Then t = Timer + 1.5 'Add Delay, so they know there weren't any errors Do While t > Timer DoEvents Loop lblStatus.Caption = "Verifying: " & Mid(txtSource.Text, i + 1) b = ValidateFile(SRC, TRG) If b = True Then 'they're the same lblStatus.Caption = "File Copy & Verify Successful!" Else lblStatus.Caption = "File Failed Verification!!!" End If End If Call SetEnabled(True) Exit Sub cmdCopy_Click_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure" & Chr(13) & Chr(10) & "(cmdCopy_Click) of (frmCopyRoutine.frm).", vbCritical End Sub Private Sub SetEnabled(b As Boolean) On Error GoTo SetEnabled_Error cmdCopy.Enabled = b cmdPath(0).Enabled = b cmdPath(1).Enabled = b chkVerify.Enabled = b Exit Sub SetEnabled_Error: MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure" & Chr(13) & Chr(10) & "(SetEnabled) of (frmCopyRoutine.frm).", vbCritical End Sub

SOFTWARE TESTING:

CONCLUSION:
Thus the system is developed using object oriented programming approach with the help of CASE tools.

REAL TIME SCHEDULER


AIM: To develop an application that implement scheduler for real time application like course registration system. SCOPE: This can be used to automatically schedule or allocate resource to the system based on the request from any user without the human intervention. This application can be used in all places which implements resources allocation and scheduling of resource based on request PROBLEM ANALYSIS: The system controller implements any of the scheduling algorithms. Based on the request placed by the user and depending on the resource available, the system controller allocates the resource to the user. The details of the resource based on the application are stored in the database and updated when the resource are allocated or scheduled. PROJECT PLANNING: The database stores the details of the application, the resource based on the application and the availability. The resource type and the amount are collected and stored in the database. The system controller implements the scheduling algorithm and controls the overall application. SOFTWARE REQUIREMENTS: Front end: Visual Basic. Back end: Ms Access. Software: Rational Rose. MODULE ANALYSIS: 1. Login 2. Requesting for course 3. System controller 4. Updation. DATA DICTIONARY: Name- Student Name Zonal name zonal name of the college Dept Department name Cutoff mark cut off mark secured.

USE CASE DIAGRAM:

CLASS DIAGRAM:

ACTIVITY DIAGRAM:

COLLABORATION DIAGRAM:

1:login : 2:enter zone

3:enter details 5:enter college 6: view status 7:enter dept student 4: view college 9:issue intimation 8: update administrator controller

SEQUENCE DIAGRAM:

student 1.login

controller

admin

2.enter zone

3.enter details 4.view college

5.enter college

6.view status

7.enter dept 8.update 9.issue intimation

FORM DESIGN:

SOURCE CODE: Dim rs As Recordset Dim db As Database Private Sub Command1_Click() Frame1.Visible = True Command2.Visible = False End Sub Private Sub Command2_Click() Form2.Show End Sub Private Sub Command3_Click() Label14.Caption = "" If Text1.Text = rs.Fields(1) And Text2.Text = rs.Fields(2) Then Form5.Show Me.Hide Else Label14.Caption = "Enter valid information!!!" Text1.Text = "" Text2.Text = "" End If End Sub Private Sub Command4_Click() MsgBox "First entry only valuable..!!", vbDefaultButton1, "Attention" Me.Hide Form4.Show Form4.Text1.SetFocus End Sub Private Sub Command5_Click() Form2.Show Me.Hide End Sub Private Sub Command6_Click() MsgBox "Thanks To you..!!", vbOKOnly, "Meet you later" End End Sub Private Sub Form_Load() Set db = OpenDatabase("D:\ex2\m.mdb") Set rs = db.OpenRecordset("login") Frame1.Visible = False End Sub Private Sub Option1_Click() If Option1.Value = True Then Text3.Visible = True Label17.Visible = True

End If End Sub Private Sub Text3_Change() If Text3.Text = rs.Fields(4) Then Text1.Text = rs.Fields(1) Text2.Text = rs.Fields(2) End If End Sub FORM2: Dim ac As Recordset Dim at As Recordset Dim re As Recordset Dim id As Recordset Dim dt As Recordset Dim bl As Recordset Dim vf As Recordset Dim rs As Recordset 'for blood Dim rs1 As Recordset 'for amb Dim rs2 As Recordset 'for fire Dim un As Recordset Dim db As Database Dim pk As Database Dim m As Recordset Private Sub Combo1_Click() 'for blood rs.MoveFirst While Not rs.EOF If Combo1.Text = rs.Fields(0) Then Text5.Text = rs.Fields(1) End If rs.MoveNext Wend End Sub Private Sub Combo2_Click() 'for ambulance rs1.MoveFirst While Not rs1.EOF If Combo2.Text = rs1.Fields(0) Then Text6.Text = rs1.Fields(1) End If rs1.MoveNext Wend End Sub Private Sub Combo3_Click() 'for fire rs2.MoveFirst While Not rs2.EOF If Combo3.Text = rs2.Fields(0) Then

Text7.Text = rs2.Fields(1) End If rs2.MoveNext Wend End Sub

Private Sub Combo4_Click() m.MoveFirst While Not m.EOF If Combo4.Text = m.Fields(0) Then Text8.Text = m.Fields(1) End If m.MoveNext Wend End Sub Private Sub Command1_Click() Form1.Show Me.Hide End Sub Private Sub Command11_Click() Frame4.Visible = False End Sub Private Sub Command2_Click() Frame1.Visible = True Frame2.Visible = False Frame3.Visible = False Option1.Visible = False Option2.Visible = False End Sub Private Sub Command3_Click() Frame1.Visible = False Frame2.Visible = False Frame3.Visible = False Option1.Visible = True Option2.Visible = True End Sub Private Sub Command4_Click() Frame3.Visible = False End Sub Private Sub Command5_Click() Frame2.Visible = False End Sub Private Sub Command6_Click() Frame1.Visible = False

End Sub Private Sub Command7_Click() Frame4.Visible = True End Sub Private Sub Form_Load() Text2.Text = "" Text3.Text = "" Text4.Text = "" Label12.Caption = "" Label14.Caption = "" Set db = OpenDatabase("D:\ex2\m.mdb") Set ac = db.OpenRecordset("aircel") Set pk = OpenDatabase("D:\ex2\a.mdb") Set m = pk.OpenRecordset("a") Set rs = db.OpenRecordset("blood") Set rs1 = db.OpenRecordset("amb") Set rs2 = db.OpenRecordset("fire") Set at = db.OpenRecordset("airtel") Set re = db.OpenRecordset("rel") Set dt = db.OpenRecordset("tata") Set id = db.OpenRecordset("idea") Set vf = db.OpenRecordset("voda") Set bl = db.OpenRecordset("bsnl") Set un = db.OpenRecordset("uni") rs.MoveFirst While Not rs.EOF Combo1.AddItem (rs.Fields(0)) rs.MoveNext Wend 'for ambulance rs1.MoveFirst While Not rs1.EOF Combo2.AddItem (rs1.Fields(0)) rs1.MoveNext Wend 'for fire rs2.MoveFirst While Not rs2.EOF Combo3.AddItem (rs2.Fields(0)) rs2.MoveNext Wend m.MoveFirst While Not m.EOF Combo4.AddItem (m.Fields(0)) m.MoveNext Wend Frame4.Visible = False End Sub

SOFTWARE TESTING:

CONCLUSION:
Thus the system is developed using object oriented programming approach with the help of CASE tools.

REMOTE PROCEDURE CALL


AIM: To draw a UML diagram for the Remote procedure call SCOPE: This project is used for accessing the remote file by the server or to satisfy any request made by the client to the server. Mainly used for transferring file and information from different place. PROBLEM ANALYSIS: The server is the store house of resource and information. The client make request to the server. The server checks for the availability and satisfies the client with the request. PROJECT PLANNING: The server act as the database or the controller. The necessary file and software are placed in the server. The client can access the server for using shared resource or accessing remote file. SOFTWARE REQUIREMENTS: Front end: Visual Basic. Back end: Ms Access. Software: Rational Rose. MODULE ANALYSIS: 1. Login 2. Establish connection 3. Transfer data 4. Terminate connection. DATA DICTIONARY: Client- Machine making request Server machine satisfying request Socket Used to establish connection and communicate ACTORS: 1. Client 2. Server USE CASE: 1. Request 2. Response PROBLEM STATEMENTS: This system is used to access the remote computer, the user identifies the location of a procedure stores in a remote system. The user request is accepted and the remote procedure is executed. The response will also be executed at the same time when the request command is executed.

USE CASE DIAGRAM:

CLASS DIAGRAM:

COLLABORATION FOR THE RESPONSE:


2: server connected 4: file exist 7: files transfered server 1: requistion for the connection 5: requistion for transfer the file 8: connection aborted 6: start transfering 3: searching for files client

files

Transfer

ACTIVITY DIAGRAM FOR REQUEST MODULE:

username

no

password

is pwd correct yes give ur server and IP address

no

port number

is server connected yes searching for files

yes is required file exist no required file not found

transformation of requested files

Transformation completed

DEPLOYMENT DIAGRAM:

Response Request uname pwd enable conn... IP addr

port no server IP addr server port no file transfer file transfer

search file

ACTIVITY DIAGRAM FOR RESPONSE:

requisition from client for connection no Is connection accepted yes connection accepted connection rejected

searching for the request file yes requested file exist

is file exist no file not found

requisition from client to transfer the requested file

is request accepted no request rejected

yes

transfering the requested files to client

file transfered

process completed

SEQUENCE FOR THE REQUEST:


client uname pwd admin ip address port no server

1: client interaction with system

2: uname

3: pwd

4: pwd/username is correct

5: server ip address

6: server port no

7: client requesting for source connection

8: server connected

COMPONENT DIAGRAM FOR THE RESPONSE:


client server

check ip and port no

data transfer

file search

SEQUENCE FOR THE RESPONSE:


server client files Transfer

1: requistion for the connection

2: server connected

3: searching for files

4: file exist

5: requistion for transfer the file 6: start transfering

7: files transfered

8: connection aborted

Component diagram for the request:


client uname pwd

data transfer

IP and port no

files

server

COLLABORATION DIAGRAM FOR THE REQUEST:


server uname pwd

2: uname 3: pwd 8: server connected 1: client interaction with system 7: client requesting for source connection admin

client

4: pwd/username is correct

6: server port no 5: server ip address ip address port no

FORM DESIGN:

SOURCE CODE: FORM1: Dim db As Database: Dim recinfo As Recordset: Dim recdetails As Recordset Private Sub cboStudNo_Change() On Error GoTo ning Set recinfo = db.OpenRecordset("SELECT * FROM Info WHERE ID_No = '" & cboStudNo.Text & "'") Set recdetails = db.OpenRecordset("SELECT * FROM Details WHERE ID_No = '" & cboStudNo.Text & "'") Data1.RecordSource = "SELECT * FROM Details WHERE ID_No = '" & cboStudNo.Text & "'": Data1.Refresh total_ = Data1.Recordset.RecordCount For e = 1 To total_ Data1.Recordset.MoveFirst timeused = Data1.Recordset.Fields(4).Value aaa = TimeSerial(Hour(aaa), Minute(aaa), Second(aaa)) + TimeSerial(Hour(timeused), Minute(timeused), Second(timeused)) Data1.Recordset.MoveNext Next e

lblTotalTime.Caption = Format(aaa, "hh:mm:ss") With recinfo If recinfo.RecordCount <> 0 Then total = recinfo.Fields("TimeRe").Value lblremaining.Caption = total lblName.Caption = .Fields(1).Value lblCourse.Caption = .Fields(2).Value lblYearSec.Caption = .Fields(3).Value End If End With ning: If Err.Number = 3021 Then lblTotalTime.Caption = "00:00:00" End If End Sub Private Sub cmdclose_Click(): Unload Me: End Sub Private Sub cmdSearch_Click(): frmSearch.Show vbModal: End Sub Private Sub Command1_Click(): frmreg.Show vbModal: End Sub Private Sub Form_Activate() Set recinfo = db.OpenRecordset("SELECT * FROM Info") With recinfo .MoveLast total = .RecordCount .MoveFirst For i = 1 To total IDNo = .Fields("ID_No").Value cboStudNo.AddItem IDNo .MoveNext Next i End With End Sub Private Sub Form_Load() Set db = OpenDatabase(App.Path & "\recorddb.mdb") Data1.DatabaseName = (App.Path & "\recorddb.mdb") End Sub FORM2: Dim db As Database: Dim rec As Recordset: Dim rsData As Recordset Dim timeover As Recordset: Dim recloggingout As Recordset Private Sub cmdhist_Click() Dim dset As New dtEnv dset.cnn1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" & App.Path & "\recorddb.mdb" Set dtRpt.DataSource = dset dtRpt.Show

'On Error GoTo HELL ' dtEnv.cnn1.Open ("Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" & App.Path & "\recorddb.mdb") 'prompt = Trim(InputBox("Please Enter Date to Print", "Print Preview", "00/00/0000")) ' If prompt <> "" Then 'dtEnv.Commands(1).CommandType = adCmdText 'dtEnv.Commands(1).CommandText = "SELECT * FROM [SKED] where DATE = '" & prompt & "'" 'dtEnv.Commands(1).Execute: dtRpt.Show ' End If 'HELL: ' If Err.Number = "3021" Then ' MsgBox "No Record Found....Please try again", , "Unable to print the record error 3021" ' End If End Sub Private Sub Form_Activate() Timer1.Enabled = False: Timer2.Enabled = True Data1.RecordSource = "SELECT * FROM dummyinfo ORDER BY StudName ASC": Data1.Refresh Set db = OpenDatabase(App.Path & "\recorddb.mdb"): Set rec = db.OpenRecordset("Info") End Sub Private Sub Form_Load() Data1.DatabaseName = App.Path & "\recorddb.mdb" dtsked.DatabaseName = App.Path & "\recorddb.mdb" dtEnv.cnn1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" & App.Path & "\recorddb.mdb" lbldates.Caption = Format(Date, "mm/dd/yyyy") End Sub Private Sub Form_Unload(Cancel As Integer) Shell App.Path & "\backup.bat" MsgBox "NETSYS Database Backup, Successful.", vbInformation, "NETSYS" End End Sub Private Sub LaVolpeButton1_Click() frmsked.Show vbModal End Sub Private Sub LaVolpeButton2_Click() Dim dset As New dtEnv dset.cnn1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" & App.Path & "\recorddb.mdb" Set dtICard.DataSource = dset dtICard.Show End Sub Private Sub LaVolpeButton3_Click() Dim dset As New dtEnv Dim str str = Format(Date, "short date") dset.cnn1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" & App.Path & "\recorddb.mdb" prompt = Trim(InputBox("Please Enter Date to Print", "Print Preview", str)) If prompt <> "" Then

dset.Commands(2).CommandType = adCmdText dset.Commands(2).CommandText = "SELECT * FROM [Details] where Date > '" & prompt & "'" dset.Commands(2).Execute 'Set dtrpt1.DataSource = dset 'dtrpt1.Show End If End Sub Private Sub lblDetails_Click(): frmDetails.Show vbModal: End Sub Private Sub lblExit_Click() With Me X = MsgBox("Are you sure you want to exit?", vbQuestion + vbYesNo, "NETSYS") If X = vbYes Then Unload Me ElseIf X = vbNo Then Exit Sub End If End With End Sub Private Sub lblLogIn_Click() With Me: frmLogIn.Show vbModal: End With End Sub Private Sub lblLogOut_Click() Set timeover = db.OpenRecordset("SELECT * FROM timeOver ") If Data1.Recordset.RecordCount <= 0 Then MsgBox "There is no current record.", vbInformation, "NETSYS" ElseIf timeover.RecordCount <> 0 Then frmLogOut.Show vbModal ElseIf Data1.Recordset.RecordCount <> 0 Then frmLogOut.Show vbModal End If End Sub Private Sub StatusBar1_PanelClick(ByVal Panel As MSComctlLib.Panel) 'Data1.Refresh End Sub Private Sub Timer1_Timer(): lblcurtime.Caption = Time End Sub Private Sub Timer2_Timer() On Error GoTo fuck lblcurtime.Caption = Time() Data1.Recordset.MoveLast total = Data1.Recordset.RecordCount Data1.Recordset.MoveFirst For i = 1 To total ' time consumed timein = Format(Data1.Recordset.Fields(4).Value, "hh:mm:ss") timeout = Format(Time, "hh:mm:ss") consumed = TimeSerial(Hour(timeout), Minute(timeout), Second(timeout)) TimeSerial(Hour(timein), Minute(timein), Second(timein)) Data1.Recordset.Edit Data1.Recordset.Fields(6).Value = Format(consumed, "hh:mm:ss")

''UPDATED 08-01-2004 MR. AVELINO 'Data1.Recordset.Fields(5).Value = Format(Time, "hh:mm:ss AM/PM") Data1.Recordset.Update 'time remaining Set rec = db.OpenRecordset("SELECT * FROM Info WHERE ID_No = '" & Data1.Recordset.Fields(0).Value & "'") aaa = rec.Fields(4).Value remain = TimeSerial(Hour(aaa), Minute(aaa), Second(aaa)) - TimeSerial(Hour(consumed), Minute(consumed), Second(consumed)) Data1.Recordset.Edit Data1.Recordset.Fields(7).Value = Format(remain, "hh:mm:ss") Data1.Recordset.Update '1HRS DURATION ' If Format(Data1.Recordset.Fields(6).Value, "hh:mm:ss") > "01:00:00" Then ' With frmLogOut ' frmLogOut.Show vbModal ' Call loggingout ' End With ' End If 'pang check kung ubos n ang 20 oras ng student. If Data1.Recordset.Fields(7).Value = "00:00:00" Then 'Or Data1.Recordset.Fields(6).Value > Data1.Recordset.Fields(7).Value Then Set rsData = db.OpenRecordset("select * from [Info] where ID_No ='" & Data1.Recordset.Fields(0).Value & "'") Set timeover = db.OpenRecordset("timeOver") With timeover .AddNew .Fields(0).Value = frmMain.Data1.Recordset.Fields(0).Value .Fields(1).Value = frmMain.Data1.Recordset.Fields(1).Value .Fields(2).Value = frmMain.Data1.Recordset.Fields(2).Value .Fields(3).Value = frmMain.Data1.Recordset.Fields(3).Value .Fields(4).Value = frmMain.Data1.Recordset.Fields(4).Value .Fields(5).Value = frmMain.Data1.Recordset.Fields(5).Value .Fields(6).Value = frmMain.Data1.Recordset.Fields(6).Value .Fields(7).Value = frmMain.Data1.Recordset.Fields(7).Value .Update End With MsgBox Data1.Recordset.Fields(1).Value & " has reached 20 hours limit." xxx = Data1.Recordset.Fields(0).Value Set rec = db.OpenRecordset("SELECT * FROM dummyinfo WHERE ID_No = '" & xxx & "'") rec.Delete Data1.Refresh With rsData .Edit .Fields(4).Value = "00:00:00" .Update End With Beep: Beep End If Data1.Recordset.MoveNext Next i StatusBar1.Panels(2).Text = total & " User(s) is/are currently active."

fuck: If Err.Number = 3021 Then Timer2.Enabled = False: Timer1.Enabled = True End If gridSizer End Sub Private Sub Timer3_Timer() frmMain.Caption = Mid(frmMain.Caption, 2) & Mid(frmMain.Caption, 1, 1) End Sub Private Sub Timer4_Timer() On Error Resume Next With dtsked .RecordSource = "Select * From [sked] where Date = '" & Format(Date, "mm/dd/yyyy") & "'order by time": .Refresh StatusBar1.Panels(1).Text = .Recordset.RecordCount & " Slot(s) schedule today" If .Recordset.Fields(4).Value = Format(Time, "hh:mm:ss AM/PM") Then StudID = .Recordset.Fields(0) Call AddToDummy01 dtsked.Recordset.Delete End If End With End Sub

SOFTWARE TESTING:

CONCLUSION:
Thus the system is developed using object oriented programming approach with the help of CASE tools.