Professional Documents
Culture Documents
Quiz Game Documentation
Quiz Game Documentation
INTRODUCTION:
OBJECTIVE
SYSTEM ANALYSIS
EXISTING SYSTEM
PROPOSED SYSTEM
COMPUTERISED SYSTEM
FEASIBILITY REPORT
ECONOMICAL FEASIBILTY
TECHNICAL FEASIBILITY
OPERATIONAL FEASIBILITY
LEGAL FEASIBILITY
HARDWARE REQUIREMENTS
SOFTWARE REQUIRMENTS
4
MODEL OF THE PROJECT:
DATA FLOW DIAGRAM:
CODING:
OUTPUT OF CODING:
TECHNOLOGY USED:
FRONT END
BACK END
CONCLUSION:
REFERENCES:
Introduction
5
This 'QUIZ GAME' Project is designed for a question in which you can generate and
manage a simple database for questions. The question number is automatically generated by
the software and is stored in a binary file by the name 'QUESTION'. This data base is
basically used as a MASTER file to be used as a look-up table for information like Quiz
Option, SubMenu, either Computer/Mathematics/Science or General and the Return. In this
software you can ask for any Menu on the basis of the Menu Question will be asked to the
user & the user get 10 sec for answering the question. If the user is correct the he get 10
points on every question. If he is incorrect then he lost the game & game is closed.
OBJECTIVE
The sole intention behind the consideration of this Project is to generate and
manage a simple database for question.This project is developed considering “QUIZ”
information keeping context of the customer in mind. Here, data is stored in a binary file by
“QUESTION” and this database is basically used as MASTER file. Reports are designed on
the basis of customer’s stay and payments made by the customer.
SYSTEM ANALYSIS
The existing system was a manual one. Whatever be the process involved in the
system were done through files. There were lots of complexities involved in the system.
When any new student takes new admission then separate files were maintained. Updating of
data was very tedious job. It was not easy to do several administrative works like managing
class by class records, addition or modification of existing records & users list.
6
2.2 PROBLEM WITH EXISTING SYSTEM
In the existing system all the office works was done manually. The manual work processes
was time consuming and hence slow. Following are the main drawbacks of the existing
system:
The existing system is totally manual thus there are chances of error in
processing.
The basic and major drawbacks in the existing system are the speed of
retrieval of data from files, which leads to delay.
The above facts, figures and drawbacks clearly indicate that there is need for
computerization and thus decided to computerize the “QUIZ GAME”. Since the existing
system was totally manual which has lots of complexities, shortcomings in itself and all the
data was being stored in registers, files etc thus to overcome the limitation of the existing
system, the new computerized system was needed, so that information can be provided to the
user more quickly, easily and more accurately.
7
2.4 IMPORTANT FEATURES OF PROPOSED SYSTEM ARE
Consistent user interface with high economic features built into it.
System design is modular and structured way, so as to make the integration with other
subsystems easier.
User has complete control as it provides and accepted only appropriate and valid data.
The existing system is totally manual thus there are chances of error in processing.
The basic and major drawbacks in the existing system are the speed of retrieval of data
from files, which leads to delay.
Maintenance of voluminous data is very cumbersome and laborious job.
The manual jobs such as calculation are more error prone.
There are plenty of chances of duplicity of data and information. Updating is very tedious
job.
8
2.4 IMPORTANT FEATURES OF PROPOSED SYSTEM ARE
Consistent user interface with high economic features built into it.
System design is modular and structured way, so as to make the integration with other
subsystems easier.
User has complete control as it provides and accepted only appropriate and valid data.
The existing system is totally manual thus there are chances of error in processing.
The basic and major drawbacks in the existing system are the speed of retrieval of data
from files, which leads to delay.
Maintenance of voluminous data is very cumbersome and laborious job.
The manual jobs such as calculation are more error prone.
There are plenty of chances of duplicity of data and information. Updating is very tedious
job.
8
In performing cost and benefit analysis it is important to identify cost and benefits factors.
Cost and benefits can be categorized into the following categories:
1. Development Costs – Development costs is the costs that are incurred during the
development of the system. It is one time investment.
2. Operating Costs – Operating Costs are the expenses required for the day to day running of
the system. Examples of Operating Costs are Wages, Supplies and Overheads.
3. Hardware/Software Costs – It includes the cost of purchasing or leasing of computers and its
peripherals. Software cost involves required S/W costs.
4. Personnel Costs – It is the money spent on the people involved in the development of the
system.
5. Facility Costs – Expenses that are incurred during the preparation of the physical site where
the system will be operational. These can be wiring, flooring, acoustics, lightning, and air-
conditioning.
6. Supply Costs – These are variable costs that are very proportionately with the amount of use
of paper, ribbons, disks, and the like.
BENEFITS
We can define benefits as
Increasing income, or
Decreasing costs, or
Both
10
3.3 OPERATIONAL FEASIBILITY
Operational feasibility is mainly concerned with issues like whether the system will be used
if it is developed and implemented. Whether there will be resistance from users that will affect
the possible application benefits? The essential questions that help in testing the technical
feasibility of a system are following:
Have the users involved in the planning and development of the project? Early
involvement reduced the probability of resistance towards the new system.
FUNCTIONAL REQUIREMENTS:
User enter name:- Every student can enter name and access the features of this
application.
Attempt quiz:-A user should be able to attempt any of the four sections of the quiz and also
have the option to skip questions.
Check score:- After completing a quiz, the user must be able to check the score of a particular
section.
11
NON-FUNCTIONAL REQUIREMENTS:
Performance requirements
The inbuilt SQLiteDatabase is used to store and retrieve data and hence it
message inbox and hence does not possess a threat in breaching the privacy of
the user. All data entries can only be accessed by authorized users only.
user interface, the security of the data, and the flexibility of manipulating
data.
HARDWARE REQUIREMENTS
SOFTWARE REQUIREMENTS
12
3.3 OPERATIONAL FEASIBILITY
Operational feasibility is mainly concerned with issues like whether the system will be used
if it is developed and implemented. Whether there will be resistance from users that will affect
the possible application benefits? The essential questions that help in testing the technical
feasibility of a system are following:
Have the users involved in the planning and development of the project? Early
involvement reduced the probability of resistance towards the new system.
FUNCTIONAL REQUIREMENTS:
User enter name:- Every student can enter name and access the features of this
application.
Attempt quiz:-A user should be able to attempt any of the four sections of the quiz and also
have the option to skip questions.
Check score:- After completing a quiz, the user must be able to check the score of a particular
section.
11
QUIZ
GAME
PLAY EDIT
ADD
COMPUT QUESTIONS
ERS
RETURN
GENERAL
MATHS DELETE
SCIENCE MODIFY
D.B.M.S
14
Entity relationship diagram
The entity Relationship Diagram (ERD) depicts the relationship between the data objects.
The ERD is the notation that is used to conduct the date modeling activity the attributes of each
data object noted is the ERD can be described resign a data object descriptions. The primary
purpose of the ERD is to represent data objects and their relationships.
15
USE CASE DIAGRAM
A Use Case diagram is used to represent roles and actions. Each user/role has different privileges
and each perform different
actions.A Use Case diagram is used to represent the actions by theuser in a system. It has user in
a system.
16
SEQUENCE DIAGRAM:
A sequence diagram shows the interaction between the various classes and
processes and the interaction order necessary to perform the functionality of the
scenario. It showcases the classes involved in an interaction and the function calls
17
Coding
#include<stdio.h>
#include<conio.h>
#include<ctype.h>
#include<stdlib.h>
#include<time.h>
#include<dos.h>
void displayscore()
{
char name[20];
float s;
FILE *f;
system("cls");
f=fopen("score.txt","r");
fscanf(f,"%s%f",&name,&s);
printf("\n\n\t\t ");
printf("\n\n\t\t %s has secured the Highest Score %.2f",name,s);
printf("\n\n\t\t ");
fclose(f);
getch();
}
void help()
{
system("cls");
18
USE CASE DIAGRAM
A Use Case diagram is used to represent roles and actions. Each user/role has different privileges
and each perform different
actions.A Use Case diagram is used to represent the actions by theuser in a system. It has user in
a system.
16
float score;
char choice;
char playername[20];
time_t initialtime,finaltime;
system("cls");
//randomize();
mainhome:
system("cls");
clrscr();
puts("\n\t\t WELCOME TO I.Q. TEST PROGRAM\n\n") ;
// puts("\t\t Submitted by- Miss Chandni patel\n\n") ;
puts("\n\t\t-------------------------------");
puts("\n\t\t Enter 'S' to start game ");
puts("\n\t\t Enter 'V' to view high score ");
puts("\n\t\t Enter 'H' for help ");
puts("\n\t\t Enter 'Q' to quit ");
printf("\n\t\t-------------------------------\n\n\t\t ");
choice=toupper(getch());
if (choice=='V')
{
displayscore();
goto mainhome;
}
else if (choice=='Q')
exit(1);
else if (choice=='H')
{
help();
getch();
20
goto mainhome;
}
else if(choice=='S'){
system("cls");
home:
system("cls");
initialtime=time(NULL);
countq=countr=0;
i=1;
start:
srand ( time(NULL) );
r=rand()%23+1;
nq[i]=r;
for (w=0;w<i;w++)
if (nq[w]==r) goto start;
switch(r)
{
case 1:
printf("\n\nWhat is the maximum no. of asymptotes of the curve x^4+2x+6=0?");
printf("\n\nA.4\tB.3\n\nC.none\tD.infinite\n\n");
countq++;
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++; break;}
21
else
{printf("\n\nWrong!!! The correct answer is A.4");break;}
case 2:
printf("\n\n\nHow many points are possible in a compound pendulum about
which");
printf("time period is same?");
printf("\n\nA.4\tB.2\n\nC.none\tD.infinite\n\n");
countq++;
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++; break;}
else
printf("\n\nWrong!!! The correct answer is A.4");
break;
case 3:
printf("\n\n\nWho was the first US President?");
printf("\n\nA.Richard Nikson\tB.Abraham Linkon\n\nC.John F.
Kennedy\tD.George Washington\n\n");
countq++;
if (toupper(getch())=='D')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is D.George Washington");break;}
case 4:
printf("\n\n\nWho was awarded the 'Man of the Tournament' of ICC WORLD
CUP 2007?");
printf("\n\nA.Glen Magrath\tB.Mahela Jawardan\n\nC.Mathew Hayden\tD.Sachin
Tendulkar\n\n");
22
countq++;
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is A.Glen Magrath");break;}
case 5:
printf("\n\n\nWhich country won the Fifa World Cup 1998?");
printf("\n\nA.France\tB.Brazil\n\nC.Italy\tD.England\n\n");
countq++;
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is A.France");break;}
case 6:
printf("\n\n\nWhich syllabe is stressed in the word 'democracy'?");
printf("\n\nA.1st\tB.2nd\n\nC.3rd\tD.4th\n\n");
countq++;
if (toupper(getch())=='B' )
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is B.2nd");break;}
case 7:
printf("\n\n\nWhich country was the winner of Cricket World Cup 1987?");
printf("\n\nA.West Indies\tB.India\n\nC.Australia\tD.England\n\n");
countq++;
23
if (toupper(getch())=='C')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is C.Australia");break;}
case 8:
printf("\n\n\nWhat is the height of Mount everest in feet?");
printf("\n\nA.8648\tB.6648\n\nC.8884\tD.8848\n\n");
countq++;
if (toupper(getch())=='D')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is D.8848");break;}
case 9:
printf("\n\n\nWhat is the capital of Denmark?");
printf("\n\nA.Copenhagen\tB.Helsinki\n\nC.Rome\t\tD.Madrid\n\n");
countq++;
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is A.Copenhagen");break;}
case 10:
printf("\n\n\nWhich syllabe is stressed in the word 'instanteneous'?");
printf("\n\nA.1st\tB.2nd\n\nC.3rd\tD.4th\n\n");
24
float score;
char choice;
char playername[20];
time_t initialtime,finaltime;
system("cls");
//randomize();
mainhome:
system("cls");
clrscr();
puts("\n\t\t WELCOME TO I.Q. TEST PROGRAM\n\n") ;
// puts("\t\t Submitted by- Miss Chandni patel\n\n") ;
puts("\n\t\t-------------------------------");
puts("\n\t\t Enter 'S' to start game ");
puts("\n\t\t Enter 'V' to view high score ");
puts("\n\t\t Enter 'H' for help ");
puts("\n\t\t Enter 'Q' to quit ");
printf("\n\t\t-------------------------------\n\n\t\t ");
choice=toupper(getch());
if (choice=='V')
{
displayscore();
goto mainhome;
}
else if (choice=='Q')
exit(1);
else if (choice=='H')
{
help();
getch();
20
countq++;
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is A.South Africa");break;}
case 14:
printf("\n\n\nWho is the author of 'Pulpasa Cafe'?");
printf("\n\nA.Narayan Wagle\tB.Lal Gopal Subedi\n\nC.B.P.
Koirala\tD.Khagendra Sangraula\n\n");
countq++;
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is A.Narayan Wagle");break;}
case 15:
printf("\n\n\nWhich country is Maria Sarapova from?");
printf("\n\nA.Russia\tB.Switzerland\n\nC.Argentina\tD.Spain\n\n");
countq++;
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is A.Russia");break;}
case 16:
printf("\n\n\nWho was awarded the youngest player award in Fifa World Cup
2006?");
printf("\n\nA.Wayne Rooney\tB.Lucas Podolski\n\nC.Lionel Messi\tD.Christiano
Ronaldo\n\n");
26
countq++;
if (toupper(getch())=='B')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is B.Lucas Podolski");break;}
case 17:
printf("\n\n\nWhat is the smallest district of Nepal?");
printf("\n\nA.Lalitpur\tB.Karnali\n\nC.Bhaktapur\tD.Gulmi\n\n");
countq++;
if (toupper(getch())=='C')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is C.Bhaktapur");break;}
case 18:
printf("\n\n\nWhat is the headquarter of Western Development Region?");
printf("\n\nA.Dhankuta\tB.Kathmandu\n\nC.Dhangadhi\tD.Pokhara\n\n");
countq++;
if (toupper(getch())=='D')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is D.Pokhara");break;}
case 19:
printf("\n\n\nWhich place is called 'The Cherrapunji of Nepal'?");
printf("\n\nA.Dharan\tB.Kathmandu\n\nC.Pokhara\tD.Butwal\n\n");
countq++;
27
if (toupper(getch())=='C')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is C.Pokhara");break;}
case 20:
printf("\n\n\nWhich city is known at 'The City of Seven Hills'?");
printf("\n\nA.Rome\tB.Vactican City\n\nC.Madrid\tD.Berlin\n\n");
countq++;
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is A.Rome");break;}
case 21:
printf("\n\n\nWho was the F1 racing champion of 2006?");
printf("\n\nA.Louis Hamilton\tB.Felipe Massa\n\nC.Fernando Alonso\tD.Michael
Schumaker\n\n");
countq++;
if (toupper(getch())=='C')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is C.Fernanda Alonso");break;}
case 22:
printf("\n\n\nWho won the Women Australian Open 2007?");
printf("\n\nA.Martina Hingis\tB.Maria Sarapova\n\nC.Kim Clijster\tD.Serena
Williams\n\n");
countq++;
if (toupper(getch())=='D')
28
countq++;
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is A.Glen Magrath");break;}
case 5:
printf("\n\n\nWhich country won the Fifa World Cup 1998?");
printf("\n\nA.France\tB.Brazil\n\nC.Italy\tD.England\n\n");
countq++;
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is A.France");break;}
case 6:
printf("\n\n\nWhich syllabe is stressed in the word 'democracy'?");
printf("\n\nA.1st\tB.2nd\n\nC.3rd\tD.4th\n\n");
countq++;
if (toupper(getch())=='B' )
{printf("\n\nCorrect!!!");countr++; break;}
else
{printf("\n\nWrong!!! The correct answer is B.2nd");break;}
case 7:
printf("\n\n\nWhich country was the winner of Cricket World Cup 1987?");
printf("\n\nA.West Indies\tB.India\n\nC.Australia\tD.England\n\n");
countq++;
23
if (toupper(getch())=='Y')
goto home;
else
{
writescore(score,playername);
goto mainhome;
}
}
else
{
printf("\n\n\t\t Enter the right key\n\n\t\t ");
sleep(1);
goto mainhome;
}
return 0;
}
30
Output:
31
32
SPECIFICATION/REQUIREMENTS:
1] Hardware:
2] Software:
TECHNOLOGY USED:
1] Front end:
TURBO C
C was evolved from ALGOL, BCPL and B by Dennis Ritchie at the bell laboratories in 1972. C uses
many concepts from these languages and added the concept of data types and other powerful
features.
C is highly portable. This means that c programs written for one computer can be run on
another with little or no modification. Portability is important if we plan to use a new computer with a
different operating system.
33
C language is well suited for structured programming, thus requiring the user to think of a
problem in terms of function modules or blocks. A proper collection of these modules would make a
complete program. This modular structure makes program debugging, testing and maintenance easier.
Another important feature of c is its ability to extend itself. A c program is basically a collection
of functions that are supported but the c library. We can continuously ad our own functions to C library.
With the availability of a large number of functions the programming task becomes simple.
2] Back end:
34
if (toupper(getch())=='Y')
goto home;
else
{
writescore(score,playername);
goto mainhome;
}
}
else
{
printf("\n\n\t\t Enter the right key\n\n\t\t ");
sleep(1);
goto mainhome;
}
return 0;
}
30
REFERENCE
36