ooad lab manual

16
Ex. No.1 ONLINE COURSE RESERVATION Date: AIM To analyze, design and develop code for Online Course Reservation System using Rational Rose software PROBLEM STATEMENT As the head of information systems for a college, you are tasked with developing a new student registration system. The college would like a new client-server system to replace its much older system developed around main frame technology. The new system will allow students to register for courses and view report cards from PCs attached to the campus LAN. Professors will be able to access the system to sign up to teach courses as well as record grades. Students may request a course catalogue containing list of course offering for all college. Information about each course, such as professor, department and prerequisites, will be included to help students make informed decisions. Once the registration process is completed for the student, the registration system sends information to the billing system so that the student can be billed for the course. OVERALL DESCRIPTION The Online Course Reservation System is an integrated system that has four modules as part of it. The four modules are, 1) Login for Student: Using this module student login to the system using his/her unique username and password 2) Student Registration: In this module, the students register his/her details in the system. The details are stored in students table in database

Upload: umamurthi-umamurthi

Post on 16-Aug-2015

324 views

Category:

Career


28 download

TRANSCRIPT

  1. 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. 2. Rational Rose MicrosoftAccess HARDWARE REQUIRMENTS 128MB RAM PentiumIIIProcessor USE CASE DIAGRAM CLASS DIAGRAM
  3. 3. ACTIVITY DIAGRAM
  4. 4. SEQUENCE DIAGRAM
  5. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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.