paper setter system

17
Lovely Professional University TERM PAPER REPORTS ON CSE TOPIC:- PAPER SETTER SYSTEM Submitted TO:- Submitted by:- MR.PARUL KHURANA ROSHAN

Upload: roshan-ravi

Post on 28-Nov-2014

450 views

Category:

Documents


0 download

DESCRIPTION

whole source code alongwith term paper.

TRANSCRIPT

Page 1: paper setter system

Lovely Professional University

TERM PAPER REPORTS

ON

CSE

TOPIC:-

PAPER

SETTER SYSTEM

Submitted TO:- Submitted by:-

MR.PARUL KHURANA ROSHAN

ROLL NO.:-RG6002A63

REG.NO.:- 11006648

Page 2: paper setter system

ACKNOWLEDGEMENT No work of significance can be claimed on a result of an

individual Efforts and same holds true further for this

project as well, for through it carries my name the energy

of many have contributed in no small measure in

completion of this project.

I am very thankful to my friend Tribhuvan and our teachers “MR.Parul Khurana” who help me to make this project.

Page 3: paper setter system

INTRODUCTION TO C LANGUAGE

C IS A PROGRAMMING LANGUAGE DEVELOPED AT AT AND T’S BELL LABORATRIES OF USA IN 1972.IT WAS DESIGNED AND WRITTEN BY DENNIS RITCHIE.IT IS A SENSITIVE AND REDUCES THE GAP BETWEEN LOWER AND UPPER CASE LETTERS SO MANY PROGRAMMERS PREFFERED C TO OLDER LANGUAGES LIKE

Page 4: paper setter system

FORTRAN OR PL/I,OR THE NEWER ONES LIKE PASCAL AND APL

INTRODUCTION TO PAPER SETTER SYSTEM

As we all know that time is very precious and no one is ready to waste his time .So we are designing a project that will help to save the time of people in schools and colleges. The project helps the students to intimate the type of questions they can be asked. This software is designed to enter the question as TEST PAPER OR QUESTION BANK. The result of the test taken can be seen easily. This software will help to save the time and also make a student ready for taking exams .So we hope that this software will help students new to system.

Page 5: paper setter system

SYSTEM REQUIREMENTS

Operating System: Windows 2000/NT/Xp/Vista

RAM: 256 MB or more

HARD DISK 40 GB or more

Processor P3 or High

Compiler Standard C++ Compiler

Page 6: paper setter system

SOURCE CODE:

//Paper Setter system

#include<stdio.h>

#include<conio.h>

void create_test();

void create_ques_bank();

// FRONT END ADMIN

void main()

{

label1:

printf(“ PRESS ‘ 1 ‘ TO CREATE TEST OR QUESTION BANK OR ‘ 2 ‘ TO OPEN AN EXISTING TEST OR QUESTION BANK OR ‘ 0 ‘ TO EXIT.");

scanf("%d", &choice1);

Page 7: paper setter system

switch (choice1)

{

case 1:

{

lable2:

printf("PRESS ' 1 ' TO CREATE TEST OR ' 2 ' TO CREATE QUESTION BANK OR ‘ 0 ‘ TO GO BACK TO PREVIOUS OPTION.”);

scanf(“%d” ,&choice2);

switch (choice2)

{

case 1:

{

create_test(); // A FUNCTION TO CREATE TEST.

break;

}

case 2:

{

create_ques_bank(); // A FUNCTION TO CREATE QUESTION BANK.

break;

}

case 0:

{

goto label1;

}

Page 8: paper setter system

default:

{

printf(“INVALID INPUT”);

printf(“PRESS ‘ 1 TO GO BACK TO PREVIOUS OPTION OR ‘ 0 ‘ TO EXIT.”);

scanf(“%d” ,&choice2);

switch (choice2)

{

case 1:

{

goto label2;

break;

}

case 0:

{

exit(1);

}

default:

{

printf(“INVALID INPUT…”);

printf(“EXITING….”);

exit(1);

}

}

}

}

Page 9: paper setter system

case 2:

{

lable2:

printf("PRESS ' 1 ' TO OPEN TEST OR ' 2 ' TO OPEN QUESTION BANK OR ‘ 0 ‘ TO GO BACK TO PREVIOUS OPTION.”);

scanf(“%d” ,&choice2);

switch (choice2)

{

case 1:

{

open_test(); // A FUNCTION TO OPEN TEST.

break;

}

case 2:

{

open_ques_bank(); // A FUNCTION TO OPEN QUESTION BANK.

break;

}

case 0:

{

goto label1;

}

default:

Page 10: paper setter system

{

printf(“INVALID INPUT”);

printf(“PRESS ‘ 1 TO GO BACK TO PREVIOUS OPTION OR ‘ 0 ‘ TO EXIT.”);

scanf(“%d” ,&choice2);

switch (choice2)

{

case 1:

{

goto label2;

break;

}

case 0:

{

exit(1);

}

default:

{

printf(“INVALID INPUT…”);

printf(“EXITING….”);

exit(1);

}

}

}

}

Page 11: paper setter system

case 0:

{

exit(1);

}

default :

{

printf(“INVALID INPUT…”);

printf(“EXITING….”);

exit(1);

}

}

// FRONT END USER

printf(“ PRESS ‘ 1 ‘ TO ATTEMPT TEST OR ‘ 2 ‘ TO VIEW PREVIOUS RESULT.");

scanf("%d", &choice1);

switch (choice1)

{

case 1:

{

user_test();

break;

}

case 2:

{

prev_result();

default :

Page 12: paper setter system

{

printf(“INVALID INPUT…\nEXITING….”);

break;

}

}

}

void create_test()

{

int n1,i;

char ques[] [500];

printf(“Number of questions to be entered will be 10”);

label:

printf(“Press ‘1’ to enter MCQ’s and ‘2 ‘ to enter T/F questions”);

scanf(“%d”,&n1);

switch (n1)

{

case 1:

{

for(i=1;i<11;i++)

{

for(j=0;j<I;j++)

{

printf(“Enter MCquestion %d”,j+1);

gets(ques[i][j]);

Page 13: paper setter system

}

}

break;

}

case 2:

{

for(i=1;i<11;i++)

{

for(j=0;j<I;j++)

{

printf(“\nEnter T/Fquestion %d”,j+1);

gets(quest[i][j]);

}

}

break;

}

default:

{

printf(“\nINVALID INPUT…”);

goto label;

}

}

Page 14: paper setter system

void create_ques_bank()

{

int n1,i;

char ques[][500];

printf(“Enter the number of questions u want to enter.”);

label:

scanf(“%d”,&n1);

for(i=1;i<n1;i++)

{

for(j=0;j<I;j++)

{

printf(“Enter question %d”,j+1);

gets(ques[i][j]);

}

}

}

Page 15: paper setter system

REFRENCES:

BOOKS: LET US C

ANSI C

ANSI C & TURBO C

COMPLETE REFRENCES