21
Project Report For COSC695 Supervisor: Dr. Yeong-tae Song Padmoja Roy 20 May, 2013 1

poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

  • Upload
    vandat

  • View
    215

  • Download
    3

Embed Size (px)

Citation preview

Page 1: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

Project Report For

COSC695

Supervisor:

Dr. Yeong-tae Song

Padmoja Roy20 May, 2013

1

Page 2: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

AcknowledgementsFirst and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance and feedback during the past few months. I am indebted to Dr. Song as he initially helped me in different ways when I had little idea what I wanted to work on. I am also grateful to Towson University Library for their valuable books.

Finally, I would like to thank my family who has supported me during this semester. Without their assistance this work was impossible to finish.

2

Page 3: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

1. Introduction:The system I developed is a part of smart learning system. The system has two main Subsystem-instructor and student. Depending on the user it will give two different functionality. Using this system, an instructor will be able to create a quiz and the student will be able to take a quiz and see the grades.The range of technical skills covered are --java,jsp,servlet, JavaScript, MySQL,Apache tomcat, HTML, Css ,Database Connectivity and command-line interaction.

3

Page 4: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

2. System functionality: The system has the following major functionalities and is organized in the following logical groups:

1. The system will allow the user to register2. The system will allow the user to login 3. The system will give two type of interface-instructor,student depending on

the userid4. The system will allow the user to log out5. The system will allow the user to create study6. The system will allow the user to create quiz7. The system will allow the user to insert questions8. The System will allow the user to take the quiz9. The System will allow the user to see the test Score

4

Page 5: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

3. Use Case Diagram Of the System:

Figure 2.1:Use-Case Diagram of the system.

5

Page 6: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

4. System Design:4.1Main Concept:The system is designed using Model-View-Controller design pattern. Most applications today follow this pattern, many with slight variations. The model-view-controller (MVC) design pattern specifies that an application consist of a data model, presentation information, and control information. The pattern requires that each of these be separated into different objects.

Figure3.1:Model-View-Controller Pattern.

The model (for example, the data information) contains only the pure application data; it contains no logic describing how to present the data to a user.

The view (for example, the presentation information) presents the model's data to the user. The view knows how to access the model's data, but it does not know what this data means or what the user can do to manipulate it.

Finally, the controller (for example, the control information) exists between the view and the model. It listens to events triggered by the view (or

Browser

Controller

Model

View

Data Store

6

Page 7: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

another external source) and executes the appropriate reaction to these events. In most cases, the reaction is to call a method on the model. Since the view and the model are connected through a notification mechanism, the result of this action is then automatically reflected in the view.

Model Classes: UserRequest,User,Study,Exam,Question,AnswerQuestion,TakenExamController class: UserServlet,StudyServlet,ExamServlet,QuestionServlet,AnswerQuestionServlet, TakenExamViews: Home.html, Registration.jsp,login.jsp, UserRegList.jsp, Studys.jsp, Study.jsp, createStudy.jsp, createExam.jsp, Exams.jsp, exam.jsp, createQuestion.jsp, allQuestions.jsp, answerQuestion.jsp, result.jsp, examSuccess.jsp.

4.2 Database Design:

Here are the Database Tables in MySQL Server--CREATE TABLE Exam(studyName varchar(255) NOT NULL,exam_name varchar(255) NOT NULL,totalpoints double, totalquestions int,pointper double,passScore double,CONSTRAINT pk_exam PRIMARY KEY(studyName,exam_name))

CREATE TABLE Question(studyName varchar(255) NOT NULL,examName varchar(255) NOT NULL,questionNo int NOT NULL,questionInfo varchar(255) NOT NULL,type varchar(255) NOT NULL,valA varchar(255),valB varchar(255),valC varchar(255),valD varchar(255),ans varchar(255) NOT NULL,

7

Page 8: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

CONSTRAINT pk_exam PRIMARY KEY(studyName,examName,questionNo))

CREATE TABLE User(id int NOT NULL PRIMARY KEY,fname varchar(255) NOT NULL,lname varchar(255) NOT NULL)

CREATE TABLE AnswerQuestion(userId int NOT NULL,studyName varchar(255) NOT NULL,examName varchar(255) NOT NULL,questionNo int NOT NULL,yourans varchar(255),yourpoint double,CONSTRAINT ans_exam PRIMARY KEY(userId,studyName,examName,questionNo))

CREATE TABLE TakenExam(userId int NOT NULL,examName varchar(255) NOT NULL,studyName varchar(255) NOT NULL,your_score double,CONSTRAINT taken_exam PRIMARY KEY(userId,studyName,examName))

4.3. Class Diagram Of the System:

8

Page 9: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

Figure-4.3.1: Class diagram of the system.

9

Page 10: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

5. System Description and Scenarios: The system can be devided into three main subsystems- registration, instructor and student.

5.1Registration:5.1.1 The user will click on registration link5.1.2 The system will give an interface for registration.

5.1.3 The user will fill out the form 5.1.4 The user will click on submit button. 5.1.5 The information will be inserted to the requestuser table in the database. 5.1.6 The request will be placed on the instructor’s request list page.

5.2. Instructor:5.2.1.Login:5.2.1.1: The system will give the user a login interface.5.2.1.2. The instructor will insert userId and password5.2.1.3. The system will look for the information in the user table.5.2.1.4.If the system found the information in the database , it will allow the user to access to the system to the study list page. 5.2.1.5.If the system don’t find the information , it will give an alert.

5.2.2.Create Study:5.2.2.1. The instructor will click on create a study button5.2.2.2. The system will give an interface to put study name.5.2.2.3. The instructor will give the study name5.2.2.4. The instructor will press the submit button5.2.2.5. A study will be created in the database and the system will redirect to the all study list page.

5.2.3. Create Exam: 5.2.3.1. The instructor will click on study name 5.2.3.2. The instructor will click on create an Exam button 5.2.3.3. The system will give an interface for creating an exam. 5.2.3.4.The instructor will press the submit button 5.2.3.5. An exam will be creted in the database. 5.2.3.6. The system will redirect to the all exam list page

10

Page 11: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

5.2.4.Enter questions: 5.2.4.1.The instructor will click on exam name 5.2.4.2. The instructor will click on “Enter question” link. 5.2.4.3.The system will give an interface for entering question. 5.2.4.4..By clicking next the instructor will go to next question. 5.2.4.5. last question should have a “DONE” button instead of “next” button. 5.2.4.6. The instructor will press DONE button. 5.2.4.7. The system will show all of the questions entered. 5.2.4.8. By clicking “GO To Study page” the system will redirect to study page.5.2.5. Accept User Requset : 5.2.5.1. The instructor will go to the UserRequestList page. 5.2.5.2.The system will show all the registrationlist(name) which hasn’t yet been accepted. 5.2.5.3. The instructor will click on the name 5.2.5.4. The system will redirect to a form with all requested data for the specific name. 5.2.5.3.The instructor will click on the accept button 5.2.5.4.The userId,password will be inserted to the user table5.3. Student:5.3.1.Login:5.3.1.1: The system will give the user a login interface.5.3.1.2. The instructor will insert userId and password5.3.1.3. The system will look for the information in the user table.5.3.1.4.If the system found the information in the database , it will allow the user to access to the system to the study list page. 5.3.1.5.If the system don’t find the information , it will give an alert.

5.3.2:Take a quiz:5.3.2.1. The system will show the list of available quizes.5.3.2.2. Student will click on the quiz he or she wants to take.5.3.2.3.It will redirect to the first question.5.3.2.3. By clicking next student will go to the next question.

5.3.3:View Score:5.3.3.1.Student will click on done button at the end of the exam.

11

Page 12: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

5.3.3.2. The system will show the score report.6.Graphical User Interfaces:

Figure-6.1: create Question.

12

Page 13: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

Figure-6.2: view question.

13

Page 14: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

Figure-6.3: create exam.

Figure-6.4: Take Exam

14

Page 15: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

Figure-6.5: Test Results

Figure-6.6: Create Study

15

Page 16: poddojaroy.files.wordpress.com · Web viewPadmoja Roy 20 May, 2013 Acknowledgements First and foremost I would like to thank my supervisor, Dr. Yeong-tae Song, for his assistance

Figure-6.7: ExamList under a study

7.Conclusion:

This is not the full project. This project hasn’t yet been finished. It is an ongoing project. I just discussed the part where I worked.

16