ooad lab manual
TRANSCRIPT
- 1. Ex. No.1 ONLINE COURSE RESERVATION Date: AIM To analyze,designanddevelopcode forOnlineCourse ReservationSystemusingRational Rose software PROBLEM STATEMENT As the headof informationsystemsforacollege,youare taskedwithdevelopinganew student registrationsystem.The college wouldlike anew client-serversystemtoreplace itsmucholdersystem developedaroundmainframe technology.The new systemwillallow studentstoregisterforcourses and viewreportcardsfrom PCsattachedto the campus LAN.Professorswillbe able toaccessthe systemtosignup to teach coursesas well asrecordgrades. Studentsmayrequestacourse catalogue containinglist of course offeringforall college.Information abouteach course,suchas professor,departmentandprerequisites,will be includedtohelpstudents make informeddecisions. Once the registrationprocessiscompletedforthe student,the registrationsystemsendsinformationto the billingsystemsothatthe studentcanbe billedforthe course. OVERALL DESCRIPTION The Online Course ReservationSystemisanintegratedsystemthathasfourmodulesaspartof it.The fourmodulesare, 1) Login for Student:Using thismodule studentlogintothe systemusinghis/herunique username and password 2) StudentRegistration: In thismodule,the studentsregisterhis/herdetailsinthe system.The detailsare storedinstudentstable indatabase 3) Form for Registration: Inthismodule the usercan applyforthe course bygivingthe details aboutthe candidate andselectingthe quotaforthe registration. 4) Enquiry about course: In thismodule the studentcanenquiryaboutthe variouscoursesinall the colleges. SOFTWARE REQUIRMENTS MicrosoftVisual Basic6.0
- 2. Rational Rose MicrosoftAccess HARDWARE REQUIRMENTS 128MB RAM PentiumIIIProcessor USE CASE DIAGRAM CLASS DIAGRAM
- 3. ACTIVITY DIAGRAM
- 4. SEQUENCE DIAGRAM
- 5. COLLABRATION DIAGRAM COMPONENTDIAGRAM DEPLOYMENT DIAGRAM Student System Server Database 1: Login 3: Getdetail 6: Look for course 8: Select 10: Register 15: Print 2: validate 4: Query 9: Update 11: Check 7: Resut 12: Validate 14: Validation 5: Retrive 13: Update Student Register Administ rator View Databas e Catalog Access Database Course Reserv... StudentAdminis trator
- 6. IMPLEMENTATION Form1 Private SubCommand1_Click() Dimcn AsNewADODB.Connection Dimrs AsNewADODB.Recordset Dima AsBoolean a = False cn.Open"dsn=course" rs.ActiveConnection=cn Withrs .CursorType = adOpenStatic .CursorLocation= adUseClient .LockType = adLockOptimistic .Open"select*fromStudents" End With rs.MoveFirst While Notrs.EOF
- 7. If (Text1.Text=rs(1) AndText2.Text= rs(2)) Then a = True Form3.Show Form1.Hide End If rs.MoveNext Wend If (a = False) Then MsgBox ("EnterCorrectUserName andPassword") End If End Sub Private SubCommand2_Click() Form2.Show UnloadMe End Sub
- 8. Form2 Private SubCommand1_Click() Dimcn AsNew ADODB.Connection Dimrs AsNewADODB.Recordset cn.Open"dsn=Course" rs.ActiveConnection=cn If (Text3.Text=Text4.Text) Then Withrs .CursorType = adOpenStatic .CursorLocation= adUseClient .LockType = adLockOptimistic .Open"select*fromStudents" End With
- 9. Withrs .AddNew .Fields(0) =Val(Text1.Text) .Fields(1) =Text2.Text .Fields(2) =Text3.Text If (Option1= True) Then .Fields(3) =Option1.Caption End If If (Option2= True) Then .Fields(3) =Option2.Caption End If .Fields(4) =Val(Text5.Text) .Fields(5) =Text6.Text .Fields(6) =Text7.Text .Fields(7) =Text8.Text .Fields(8) =Text9.Text .Update MsgBox ("RegistrationSuccess.Please Login") Form1.Show UnloadMe End With Else MsgBox ("Passworddoesn'tmatch") End If End Sub
- 10. Private Sub Command2_Click() UnloadMe End Sub PublicSubcalCutoff() Text9.Text= Val(Text6.Text) /4 + Val(Text7.Text) /4 + Val(Text8.Text) /2 End Sub Private SubText6_Change() calCutoff End Sub Private SubText7_Change() calCutoff End Sub Private SubText8_Change() calCutoff End Sub Form3
- 11. Private SubCommand1_Click() Form4.Show UnloadMe End Sub Private SubCommand2_Click() Form5.Show UnloadMe End Sub Form4 Private SubCommand1_Click() Form3.Show UnloadMe End Sub
- 12. Private SubText1_Change() Dimcn AsNewADODB.Connection Dimrs AsNewADODB.Recordset cn.Open"dsn=course" rs.ActiveConnection=cn Withrs .CursorType = adOpenStatic .CursorLocation= adUseClient .LockType = adLockOptimistic .Open"select*fromColleges" End With rs.MoveFirst While Notrs.EOF If (Val(Text1.Text)=rs(0)) Then Text2.Text= rs(1) Text3.Text= rs(2) Text4.Text= rs(3) Text5.Text= rs(4) Text6.Text= rs(5) End If rs.MoveNext Wend End Sub
- 13. Form5 Private SubCommand1_Click() Dimcn AsNewADODB.Connection Dimrs AsNew ADODB.Recordset cn.Open"dsn=Course" rs.ActiveConnection=cn Withrs .CursorType = adOpenStatic .CursorLocation= adUseClient .LockType = adLockOptimistic .Open"select*fromReservations" End With Withrs .AddNew .Fields(0) =Form1.Text1.Text .Fields(1) =Text1.Text .Fields(2) =Text2.Text
- 14. .Update MsgBox ("ResrvationSuccess") End With End Sub Private SubCommand2_Click() UnloadMe End Sub CONCLUSION: Thisprojectwascarried outin a sequentialmannertodesignandimplement the OnlineCourse Reservation System. Thus the outcome of the project is efficient. The Online Course Reservation System caters the varied requirements of the user to perform various options.