online examination tp

Upload: akhil-sharma

Post on 06-Apr-2018

263 views

Category:

Documents


4 download

TRANSCRIPT

  • 8/2/2019 Online Examination Tp

    1/12

    TERM PAPER

    1

    TERM PAPERModern programming tools &

    techniques-ICSE 310

    TOPIC: online examination

    SUBMITTED TO: SUBMITTED BY:

    Jaspreet Kaur Sahiwal Akhil Sharma

    Dept. Of CSE Roll. No. K28M1B33

    Reg.No. 10807224

    Section DEK03

  • 8/2/2019 Online Examination Tp

    2/12

    TERM PAPER

    2

    ACKNOWLEDGEMENT

    History of all great works is to witness that no great work was ever done

    without either the active or passive support of a person's surroundings and one's

    close quarters. Thus it is not hard to conclude how active assistance from seniors

    could positively impact the execution of a term paper. I am highly thankful to

    our learned facultyJaspreet Kaur Sahiwal

    for heractive guidance throughout the teaching period. Thats why I am able to

    give progress report of my term paperONLINE EXAMINATION

    Last but not the least I would also want to extend my appreciation to those who

    could not be mentioned here but have well played their role to inspire me behind the

    curtain.

  • 8/2/2019 Online Examination Tp

    3/12

    TERM PAPER

    3

    INDEX

    TOPIC P.No.

    PURPOSE 4 `

    TECHNOLOGY & INTERFACE 4

    FEASIBILITY STUDY 4

    ER DIAGRAM 7

    SRS 8

    DFD DIAGRAM 8

    CODING 8

    REFERENCE 12

  • 8/2/2019 Online Examination Tp

    4/12

    TERM PAPER

    4

    ONLINE EXAMINATION

    PURPOSE:This Application provides facility to conduct online Examination when implemented

    through applets . It saves time as it allows number of students to give the exam at a

    time and displays the results as the test gets over, so no need to wait for the result. It isautomatically generated by the machine. Administrator has a privilege to create, modify

    and delete the test papers and its particular questions. User can login and give the test

    with his name and can see the results as well.

    TECHNOLOGIES USED:This project is a java application that is developed in Net Beans.

    HARDWARE INTERFACE:An operating system with java installed in itProcessor : Pentium IV 2.0 and above.

    RAM : 256 MB

    Disk space : not much taken by system

    SOFTWARE INTERFACE:Java installed system, NetBeans, Windows XP/2000/Vista

    CONSTRAINTS:1. User interface is only in English i.e. no other language option is available.2. User can login only with any name but password is same for all i.e. no guest facility

    is available.

    FEASIBILITY STUDYWhat are the users demonstrable needs?

    User needs a Java enabled system, which will remove all the above-mentioned problems

    that, the user is facing. The user wants a program, which will reduce the bulk of paperwork,

    provide ease of work, flexibility, fast record finding, modifying, adding, removing and

    generating the reports.

    How can the problem be redefined?

    I proposed our perception of the system, in accordance with the problems of existing

    system by making a full layout of the system on paper. We tallied the problems and needs

    by existing system and requirements. In feasibility study phase we had undergone through

    various steps, which are described as under:

  • 8/2/2019 Online Examination Tp

    5/12

    TERM PAPER

    5

    How feasible is the system proposed? This was analyzed by comparing the following

    factors with both the existing system and proposed system.

    1. CostThe cost required in the proposed system is comparatively less to the existingsystem.

    2. EffortCompared to the existing system the proposed system will provide a better working

    environment in which their will be ease of work and the effort required will be

    comparatively less than the existing system.

    3. TimeAlso the time required generating a report or for doing any other work will becomparatively very less than in the existing system. Record finding and updating will take

    less time than the existing system.

    4. LaborIn the existing system the number of staff required for completing the work is more while

    the new system will require quite less number of staff.

    SPECIFICATION REPORTSystem InterfaceApplication would be a self-contained system. It will not access data of any other

    application nor will other application have access to its data.

    User Interface

    Application will be accessed through net beans. The interface would be viewed best using

    1024 x 768 and 800 x 600 pixels resolution setting.

    Hardware Interface

    Intel Pentium III or above with

    512 MB RAM

    4 GB hard disk

    Windows 2000 Enterprise

    Edition

    WAS Server

    DB2 Server

    Windows 95/98/2000/NT

  • 8/2/2019 Online Examination Tp

    6/12

    TERM PAPER

    6

    User Characteristics

    The end user of the software can be divided into two categories

    Administrator: Access the system for data entry and generation of reports.

    Operator: Access only for giving examination only.

    BOTTLENECKS IDENTIFIED IN EXISTING SYSTEMThe first problem is that there are loads of hard copied documents being generated. This

    brings us to the age-old discussion of keeping information in the form databases versus

    keeping the same on sheets of paper. Keeping the information in the form of hard-copied

    documents leads to the following problems:

    1. Lack of space It becomes a problem in itself to find space to keep the sheets ofpaper being generated as a result of the ongoing discussion. The documents being

    generated are too important to be ill-treated.2. Filing poses a problem Filing the documents categorically is a time consuming

    and tedious exercise.

    3. Filtering is not easy It becomes hard to filter relevant documents for theirrelevant ones if the count of the same crosses a certain manageable number.

    4. Reviewing becomes time-consuming All the process done manually at thecenters and all the records are maintained on the papers. So the maintenance of the

    record is very difficult in the departments and as well as its very difficult for the

    workers to check the record. The Existing system is paper based, time consuming,

    monotonous, less flexible and provides a very hectic working schedule. The chance

    of loss of records is high and also record searching is difficult. Maintenance of the

    system is also very difficult and takes lot of time.5. Result Processing is slow due to paper work and requirement of staff. NEED FOR THE NEW SYSTEM

    To solve these problems they required a computerized system to handle all the works.

    They required application that will provide a working environment that will be flexible and

    will provide ease of work and will reduce the time for report generation and other paper

    works.

    AIMS AND OBJECTIVEThe main purpose behind the proposed system is to provide a comprehensive

    computerized system, which can capture, collate and analyze the data from

    these wards and evaluate the impact of the program.

    CONSTRAINTS, ASSUMPTIONSConstraints

  • 8/2/2019 Online Examination Tp

    7/12

    TERM PAPER

    7

    As this system is based on Java technology, so for normal operation minimum of 64 MB

    RAM will be required. And java should be installed.

    Assumptions

    In general it has been assumed that the user has complete knowledge of the system that

    means user is not a nave user. Any data entered by him/her will be valid. To make thesoftware as user friendly as possible but at the same time keeping in minds user

    requirements.

    ER DIAGRAM

    ER DIAGRAM OF PROPOSED SYSTEM

  • 8/2/2019 Online Examination Tp

    8/12

    TERM PAPER

    8

    DFD FOR PROPOSED SYSTEM

    CODINGpackage tp;

    import java.io.*;

    import java.util.Scanner;

    public class Tp

    {

    public static void main(String[] args) throws IOException{

    String name;

    int ch=0,pwd,choice1,choice,ans,result=0,wrong=0,exit=0;

    float per=0.0f,v;

    FileOutputStream fos;

    DataOutputStream dos;

  • 8/2/2019 Online Examination Tp

    9/12

    TERM PAPER

    9

    DataInputStream ob=new DataInputStream(System.in);

    Scanner scan=new Scanner(System.in);

    System.out.println("\nEnter ur name: ");

    name=scan.nextLine();

    System.out.println("\nWelcome "+name+" to this world. ");

    try{File file= new File("D:\\result.txt");

    fos = new FileOutputStream(file);

    dos=new DataOutputStream(fos);

    do{

    System.out.println("\nEnter your password ");

    pwd=Integer.parseInt(ob.readLine());

    System.out.println("\nPlease wait verifying password");

    //Thread.sleep(3000)

    if(pwd==123)

    {

    System.out.println("\nWelcome "+name);do{

    System.out.println("\nSelect ur choice from the below options ");

    Thread.sleep(1000);

    System.out.println("1. Basci Java Test");

    System.out.println("2. Advanced Java Test");

    System.out.println("3. DBMS");

    System.out.println("4. C/C++ test");

    System.out.println("5. Exit");

    System.out.println("\n");

    choice=Integer.parseInt(ob.readLine());

    switch(choice){

    case 1:

    System.out.println("you are about to take the test on Core java");

    Thread.sleep(2000);

    System.out.println("\nQ1. What is the package for scanner class");

    System.out.println("1. util");

    System.out.println("2. Input/Output");

    System.out.println("3. none of these");

    System.out.println("\n");

    ans=Integer.parseInt(ob.readLine());

    switch(ans)

    {

    case 1: result++;

    break;

    case 2: wrong++;

    break;

  • 8/2/2019 Online Examination Tp

    10/12

    TERM PAPER

    10

    case 3: wrong++;

    break;

    default: System.out.println("Invalid choice");

    wrong++;

    break;

    }Thread.sleep(1000);

    System.out.println("\nQ2. What is the keyword for making a variable

    constant");

    System.out.println("1. static");

    System.out.println("2. final");

    System.out.println("3. const");

    System.out.println("\n");

    ans=Integer.parseInt(ob.readLine());

    switch(ans)

    {

    case 1: wrong++;break;

    case 2: result++;

    break;

    case 3: wrong++;

    break;

    default: System.out.println("Invalid choice");

    wrong++;

    break;

    }

    System.out.println("\nProcessing result, please be patient");

    Thread.sleep(5000);System.out.println("No of correct answers are "+result);

    System.out.println("No of incorrect answers are "+wrong);

    break;

    }while(ch==1);

    Thread.sleep(1000);

    v=(float)(result+wrong);

    per=(result/v)*100;

    System.out.println("\n"+name+" your result is "+per+"%");

    dos.writeBytes("Last user data--");

    dos.writeChars(name);

    dos.writeChars(" Your score is ");

    dos.writeFloat(per);

    Thread.sleep(2000);

    if(per==100&&per

  • 8/2/2019 Online Examination Tp

    11/12

    TERM PAPER

    11

    }

    if(per70)

    {

    System.out.println("\nNice...but can do better...better luck next time");

    }

    else{

    System.out.println("\nNeed more practise, Expecting better result next time ");

    }

    Thread.sleep(1000);

    }

    catch (InterruptedException ie)

    {

    }

    catch(IOException e)

    {

    }finally

    {

    System.out.println("\n\nThanx for using this test "+name+", have a nice day ");

    }

    }

    }

    // Coding showing only one case

    OUTPUT

  • 8/2/2019 Online Examination Tp

    12/12

    TERM PAPER

    12

    CONCLUSIONThis Application provides facility to conduct online examination . It saves time as it allows

    number of students to give the exam at a time and displays the results as the test gets over,

    so no need to wait for the result. Administrator has a privilege to create, modify and delete

    the test papers and its particular questions. User can login and give the test with his name,

    and can see the results as well.

    REFERENCES1. www.seminarprojects.com/Thread-online-examination-project2. www.roseindia.net/java/example/java/io/java-write-to-file.shtml3. http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Thread.html4. www.javamex.com/tutorials/threads/sleep.shtml5. www.java-forums.org/new-java/13311-system-exit-0-1-a.html

    http://www.seminarprojects.com/Thread-online-examination-projecthttp://www.seminarprojects.com/Thread-online-examination-projecthttp://www.seminarprojects.com/Thread-online-examination-projecthttp://www.seminarprojects.com/Thread-online-examination-projecthttp://www.seminarprojects.com/Thread-online-examination-projecthttp://www.seminarprojects.com/Thread-online-examination-projecthttp://www.seminarprojects.com/Thread-online-examination-projecthttp://www.seminarprojects.com/Thread-online-examination-projecthttp://www.seminarprojects.com/Thread-online-examination-projecthttp://www.roseindia.net/java/example/java/io/java-write-to-file.shtmlhttp://www.roseindia.net/java/example/java/io/java-write-to-file.shtmlhttp://www.roseindia.net/java/example/java/io/java-write-to-file.shtmlhttp://www.roseindia.net/java/example/java/io/java-write-to-file.shtmlhttp://www.roseindia.net/java/example/java/io/java-write-to-file.shtmlhttp://www.roseindia.net/java/example/java/io/java-write-to-file.shtmlhttp://www.roseindia.net/java/example/java/io/java-write-to-file.shtmlhttp://www.roseindia.net/java/example/java/io/java-write-to-file.shtmlhttp://www.roseindia.net/java/example/java/io/java-write-to-file.shtmlhttp://www.roseindia.net/java/example/java/io/java-write-to-file.shtmlhttp://www.roseindia.net/java/example/java/io/java-write-to-file.shtmlhttp://www.roseindia.net/java/example/java/io/java-write-to-file.shtmlhttp://download.oracle.com/javase/1.4.2/docs/api/java/lang/Thread.htmlhttp://download.oracle.com/javase/1.4.2/docs/api/java/lang/Thread.htmlhttp://www.javamex.com/tutorials/threads/sleep.shtmlhttp://www.javamex.com/tutorials/threads/sleep.shtmlhttp://www.javamex.com/tutorials/threads/sleep.shtmlhttp://www.javamex.com/tutorials/threads/sleep.shtmlhttp://www.javamex.com/tutorials/threads/sleep.shtmlhttp://www.javamex.com/tutorials/threads/sleep.shtmlhttp://www.javamex.com/tutorials/threads/sleep.shtmlhttp://www.javamex.com/tutorials/threads/sleep.shtmlhttp://www.java-forums.org/new-java/13311-system-exit-0-1-a.htmlhttp://www.java-forums.org/new-java/13311-system-exit-0-1-a.htmlhttp://www.java-forums.org/new-java/13311-system-exit-0-1-a.htmlhttp://www.java-forums.org/new-java/13311-system-exit-0-1-a.htmlhttp://www.java-forums.org/new-java/13311-system-exit-0-1-a.htmlhttp://www.java-forums.org/new-java/13311-system-exit-0-1-a.htmlhttp://www.java-forums.org/new-java/13311-system-exit-0-1-a.htmlhttp://www.java-forums.org/new-java/13311-system-exit-0-1-a.htmlhttp://www.java-forums.org/new-java/13311-system-exit-0-1-a.htmlhttp://www.java-forums.org/new-java/13311-system-exit-0-1-a.htmlhttp://www.java-forums.org/new-java/13311-system-exit-0-1-a.htmlhttp://www.java-forums.org/new-java/13311-system-exit-0-1-a.htmlhttp://www.java-forums.org/new-java/13311-system-exit-0-1-a.htmlhttp://www.javamex.com/tutorials/threads/sleep.shtmlhttp://download.oracle.com/javase/1.4.2/docs/api/java/lang/Thread.htmlhttp://www.roseindia.net/java/example/java/io/java-write-to-file.shtmlhttp://www.seminarprojects.com/Thread-online-examination-project