SI.NO.
TOPIC
1. INTRODUCTION
• Introduction
• Objective
2. SYSTEMANALYSIS
• Existing system
• Problem with existing system
• Proposed system
• Important features of proposed system
• Objective of proposed system
• Computerised system
3. FEASIBILITYREPORT
• Economical feasibility
• Cost and benefit analysis
• Technical feasibility
• Operational feasibility
• Legal feasibility
4. SYSTEMREQUIREMENTS
• Functional requirements
• Non-functional requirements
• Hardware requirements
• Software requirements
5. PROJECTDESIGN
• Data flow diagram
• Entity relationship diagram
• Use case diagram
• Sequence diagram
6. CODE
7. OUTPUT
10. TECHNOLOGYUSED
• Front End
• Back End
10. CONCLUSION
11. LIMITATION
INTRODUCTION
1. Introduction
This'QUIZGAME'Projectisdesignedforaquestioninwhichyoucangenerateandma
nage 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, of C language. In this
software you can ask for the question of c language. If he is incorrect then he
lost the game & game is closed.
2. Objective
ThesoleintentionbehindtheconsiderationofthisProjectistogenerateandmanageasi
mple 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.
SYSTEMANALYSIS
1. EXISTINGSYSTEM
Theexistingsystemwasamanualone.Whateverbetheprocessinvolvedinthesystem
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.
2. PROBLEMWITHEXISTINGSYSTEM
Intheexistingsystemalltheofficeworkswasdonemanually.Themanualworkproces
ses 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.
• Thebasicandmajordrawbacksintheexistingsystemarethespeedofretrieva
lof 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.
The above facts, figures and draw backs 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.
3. PROPOSEDSYSTEM
Thenewsystemtitled"QUIZGAME"washenceproposedtoremoveallthedrawbacks
discussed above. Information is a vital ingredient for the operation and
management of any organization. Thus any system should have the ability to
provide error free filtered information after processing there quired data .This
system has been taken up with a view for developing a more sophisticated
system that can be easily handled by any kind of users. The
proposedsystemaimsatefficientandtimelyinformationfordecision-making,
integrate with other functions, and reduce redundant work.
4. IMPORTANTFEATURESOFPROPOSEDSYSTEMARE
• Consistent user inter face 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.
• User-friendly error messages are provided wherever necessary.
Addition, deletion, modification of record is done as and when
needed.
• Provide admission to new students very easily.
• Records retrieval for users is also done by system.
5. OBJECTIVEOFPROPOSEDSYSTEM
• To reduce work load of staff.
• To reduce the delay in processing time.
• To reduce the delay in records update.
• To provide the user-friend lines in all possible ways.
• To provide greater flexibility.
• Make maintenance changes easy
6. COMPUTERIZEDSYSTEM
• The existing system is totally manual thus there are chances of error in
processing.
• Thebasicandmajordrawbacksintheexistingsystemarethespeedofretriev
alof data from files, which leads to delay.
• Maintenanceofvoluminousdataisverycumbersomeandlaboriousjob.Them
anual jobs such as calculation are more error prone.
• Thereareplentyofchancesofduplicityofdataandinformation.Updatingis
very tedious job.
FEASIBILITYSTUDY
The feasibility study proposes one or more conceptual solution to the problem
set of the project. Infact, it is an evaluation of whether it is worth while to
proceed with project or not. Feasibility analysis usually considers a number of
project alternatives, one that is chosen as the most satisfactory solution. These
alternatives also need to be evaluated in a broad way without committing too
many resources. Various steps involved in feasibility analysis are:
• Toproposeasetofsolutionthatcanrealizetheprojectgoal.Thesesolutions
are usually descriptions of what the new system should look like.
• Evaluationoffeasibilityofsuchsolutions.Suchevaluationoftenindi
cates shortcomings
• Initial goals. This step is repeated as the goals are adjusted and
the alternative solutions are evaluated.
1. ECONOMICFEASIBILITY
Anevaluationofdevelopmentcostweighedagainsttheultimateincomeofbenefitderi
ved from the development system of product. In economic feasibility, cost
benefit analysis is done in which expected cost and benefits are evaluated
• COSTANDBENEFITANALYSIS
Developing an IT application is an investment. Since after developing that
application, it provides the organization 's with profits. Profits can be monetary
or in the form of an improved working environment. However, it carries risks,
because in some cases an estimate can be wrong and the project might not
actually turn out to be beneficial. Cost benefit analysis helps to give
management a picture of the cost, benefits and risks. It usually involves
comparing alternate investments. Cost benefit determines the benefits and
savings that are expected from the system and compares them with the expected
costs.
2. TECHNICALFEASIBILITY
TechnicalFeasibilityincludesexistingandnewH/WandS/Wrequirement
sthat are required to operate the project on the platform Turbo C. The
basic S/W requirementis DEVC++ in which the front end of the
QUIZ GAME project has been done. The basic developed in DEV
C++ and the data is stored in the FILES.
3. OPERATIONFEASIBILITY
Operationalfeasibilityismainlyconcernedwithissueslikewhetherthesystemwillbeu
sedif 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:
• Does management support the project?
• Are the users not happy with current business practices? Will it
reduce the time considerably? If yes, then they will welcome the
change and the new system.
• Have the involved in the planning and development of the project? Early
involvement reduced the probability of resistance towards the new
system.
4. LEGALFEASIBILITY
A determination of any infringement, violation or liability that could result from
development of the system, legal feasibility tells that the software used in the
project should be original purchased from the legal authorities and they have the
license to use it or the software are pirated.
SYSTEMREQUIREMENTSSPECIFICATION
1. FUNCTIONALREQUIREMENT
User enter name:- Every student can enter name and access the features of this
application.
Attempt quiz:-
Ausershouldbeabletoattemptanyofthefoursectionsofthequizandalso 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.
2. NON-FUNCTIONALREQUIREMENTS
PERFORMANCEREQUIREMENTS
The inbuilt SQ Lite Database is used to store and retrieve data and hence it
should be
maintainedproperlyasthespeedofquerieswilldirectlybereflectedinbetterperforman
ceof the application.
SAFETYANDSECUIRTYREQUIREMENTS
Thisapplicationwon'tbeaccessinganyfeaturesofthedevicelikecontactsormessagei
nbox 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.
SOFTWAREQUALITYATTRIBUTES
Thequalityofthissoftwarewillberepresentedbytheuserfriendlinessoftheuserinterfa
ce, the security of the data, and the flexibility of manipulating data.
3. HARDWAREREQUIRMENTS
• PIV2.8GHzProcessorandabove
• RAM512MBand above
• HDD40GBharddiskspaceandabove
4. SOFTWAREREQUIRMENTS
• WINDOWSOS(NT/XP/7/10/11)
• Ms Office
• Dev C++
PROJECTDESIGN
The high-level UML design diagrams are designed using the open source
software. Several
entitieswereidentifiedandtherelationbetweentheseentitiesisdescribedinthesediagr
ams. The various diagrams determined for this application include:
• Data flow diagram
• Entity relationship diagram
• Use case diagram
• Sequence diagram
1. DATAFLOWDIAGRAM
Data Flow Diagram (DFD) is a diagrammatic representation of data movement
through a system -manual or automated from inputs to outputs through
processing. DFD helps in the analysis of the flow of data through a system and
thus help in identifying the system requirements. The top level of DFD is known
as Context level. It is the first step in requirement determination, which aims at
learning the general characteristics of the business process and defines the
system that will be studied in the sense that it determines the boundaries.
2. ENTITYRELATIONSHIPDIAGRAM
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 resigned data object descriptions. The primary purpose of the
ERD is to represent data objects and their relationships.
3. USECASEDIAGRAM
A use case diagram is used to represent roles and action. Each user/role
has different privilege sand each perform different action. A use case diagram is
used to represent the actions by the user in a system. It has user in a system
4. SEQUENCEDIAGRAM
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 and sequence of messages ex changed in that interaction. It
forms a prototype to represent the behavior of various modules of application.
The interaction between the various classes is represented by the following
sequence diagrams.
CODE
#include<stdio.h>
#include<conio.h>
#include<ctype.h>
#include<stdlib.h>
#include<string.h>
void show_record();
void reset_score();
void help();
void edit_score(float score, char playername[]);
int main() {
int count, r, r1, i, n;
float score;
char choice;
char playername[20];
while (1) {
system("cls");
printf("\t\t\t C PROGRAM QUIZ GAME\n");
printf("\n\t\t\tWELCOME");
printf("\n\t\t\tto");
printf("\n\t\t\tTHE GAME");
printf("\n\t\tBECOME A PROFESSIONAL IN IQ!!!!!!!!!");
printf("\n\n\t\t > Press S to start the game");
printf("\n\t\t > Press V to view the highest score");
printf("\n\t\t > Press R to reset score");
printf("\n\t\t > Press H for help");
printf("\n\t\t > Press Q to quit");
printf("\n\n");
choice = toupper(getch());
if (choice == 'V') {
show_record();
} else if (choice == 'H') {
help();
getch();
} else if (choice == 'R') {
reset_score();
getch();
} else if (choice == 'Q') {
exit(1);
} else if (choice == 'S') {
system("cls");
printf("\n\n\n\n\n\n\n\n\n\n\t\t\tRegister your name: ");
gets(playername);
system("cls");
printf("\nWelcome %s to C program quiz game", playername);
printf("\n\nHere are some tips you might want to know before playing:");
printf("\n>> There are 2 rounds in this Quiz Game: WARMUP ROUND &
CHALLENGE ROUND");
printf("\n>> In the warmup round, you will be asked a total of 5 questions to
test your general knowledge.");
printf("\n>> You are eligible to play the game if you give at least 3 right
answers, otherwise, you can't proceed further.");
printf("\n>> In the challenge round, you will be asked a total of 10 questions.");
printf("\n>> Each right answer will be awarded $1000.");
printf("\n>> You will be given 4 options and you have to press A, B, C, or D for
the right option.");
printf("\n>> No negative marking for wrong answers.");
printf("\n\n\t********** ALL THE BEST **********");
printf("\n\nPress Y to start the game!");
printf("\nPress any other key to return to the main menu!");
if (toupper(getch()) == 'Y') {
goto home;
} else {
continue;
}
home:
system("cls");
count = 0;
for (i = 1; i <= 5; i++) {
system("cls");
r1 = i;
switch (r1) {
case 1:
printf("\n\nWhich of the following languages is the predecessor to C
Programming Language?");
printf("\n\nA. BCPL\t\tB. C++\n\nC. A\t\tD. B");
if (toupper(getch()) == 'A') {
printf("\n\nCorrect!!!");
count++;
getch();
break;
} else {
printf("\n\nWrong!!! The correct answer is A. BCPL");
getch();
break;
}
case 2:
printf("\n\nC programming language was developed by?");
printf("\n\nA. Ken Thompson\t\tB. Bill Gates\n\nC. Dennis Ritchie\t\tD. Peter
Norton");
if (toupper(getch()) == 'C') {
printf("\n\nCorrect!!!");
count++;
getch();
break;
} else {
printf("\n\nWrong!!! The correct answer is C. Dennis Ritchie");
getch();
break;
}
case 3:
printf("\n\nC was developed in the year?");
printf("\n\nA. 1970\t\tB. 1972\n\nC. 1976\t\tD. 1980");
if (toupper(getch()) == 'B') {
printf("\n\nCorrect!!!");
count++;
getch();
break;
} else {
printf("\n\nWrong!!! The correct answer is B. 1972");
getch();
break;
}
case 4:
printf("\n\nC is a language?");
printf("\n\nA. High Level\t\tB. Low Level\n\nC. Middle Level\t\tD. Machine
Level");
if (toupper(getch()) == 'C') {
printf("\n\nCorrect!!!");
count++;
getch();
break;
} else {
printf("\n\nWrong!!! The correct answer is C. Middle Level");
getch();
break;
}
case 5:
printf("\n\nC language is available for which of the following Operating
Systems?");
printf("\n\nA. DOS\t\tB. Windows\n\nC. Unix\t\tD. All of these");
if (toupper(getch()) == 'D') {
printf("\n\nCorrect!!!");
count++;
getch();
break;
} else {
printf("\n\nWrong!!! The correct answer is D. All of these");
getch();
break;
}
}
}
if (count >= 3) {
// Proceed to the challenge round
system("cls");
printf("\n\n\n\t**CONGRATULATIONS %s, you are eligible to play the
game!**", playername);
printf("\n\nPress any key to start the game!");
if (toupper(getch()) == 'P') {
goto game;
}
} else {
// Not eligible for challenge round
system("cls");
printf("\n\nSORRY, YOU ARE NOT ELIGIBLE TO PLAY THIS GAME.
BETTER LUCK NEXT TIME.");
getch();
continue;
}
game:
count = 0;
for (i = 1; i <= 10; i++) {
system("cls");
r = i;
switch (r) {
case 1:
printf("\n\nWhich is the valid expression in C?");
printf("\n\nA. int my_num = 100,000;\t\tB. int my_num = 100000;\n\nC. int
my_num = 1000;\t\tD. int $my_num = 10000;");
if (toupper(getch()) == 'B') {
printf("\n\nCorrect!!!");
count++;
getch();
} else {
printf("\n\nWrong!!! The correct answer is B. int my_num = 100000;");
getch();
}
break;
case 2:
printf("\n\nWhich of the following cannot be a variable name in C?");
printf("\n\nA. volatile\t\tB. true\n\nC. friend\t\tD. export");
if (toupper(getch()) == 'A') {
printf("\n\nCorrect!!!");
count++;
getch();
} else {
printf("\n\nWrong!!! The correct answer is A. volatile");
getch();
}
break;
// Additional cases for other questions
default:
break;
}
}
score:
system("cls");
score = (float)count * 1000;
if (score >= 10000) {
printf("\n\n\t\t********** CONGRATULATIONS **********");
printf("\nYou won $%.2f", score);
getch();
edit_score(score, playername);
} else {
printf("\n\nSORRY, YOU DID NOT WIN ANY CASH.");
printf("\nThanks for participating!");
getch();
edit_score(score, playername);
}
}
}
}
void show_record() {
system("cls");
char name[20];
float scr;
FILE *f;
f = fopen("score.txt", "r");
fscanf(f, "%s %f", name, &scr);
printf("\n\n\t\t*****************************");
printf("\n\t\t%s has secured the highest score %.2f", name, scr);
fclose(f);
getch();
}
void reset_score() {
system("cls");
float sc;
char nm[20];
FILE *f;
f = fopen("score.txt", "r+");
fscanf(f, "%s %f", nm, &sc);
sc = 0;
fseek(f, 0, SEEK_SET);
fprintf(f, "%s %.2f", nm, sc);
fclose(f);
}
void help() {
system("cls");
printf("\n\n\tHELP");
printf("\n\n***************** C Program Quiz Game
*****************");
printf("\n>> There are two rounds in the game: WARMUP ROUND &
CHALLENGE ROUND");
printf("\n>> In warmup round you will be asked a total of 5 questions to test
your general knowledge.");
printf("\n>> You will be eligible to play the game if you give at least 3 right
answers.");
printf("\n>> In the challenge round, you will be asked 10 questions. Each right
answer is awarded $1000.");
printf("\n>> You will be given 4 options, and you need to press A, B, C, or D
for the correct option.");
printf("\n>> No negative marking for wrong answers.");
printf("\n\n********************* BEST OF LUCK!
*********************");
}
void edit_score(float score, char plnm[20]) {
system("cls");
float sc;
char nm[20];
FILE *f;
f = fopen("score.txt", "r");
fscanf(f, "%s %f", nm, &sc);
if (score > sc) {
sc = score;
fclose(f);
f = fopen("score.txt", "w");
fprintf(f, "%s %.2f", plnm, sc);
fclose(f);
}
}
OUTPUT
TECHNOLOGYUSED
1. FRONTEND
• C LANGUAGE
C was evolved from ALGOL, BCPL and by Dennis Ritchie at the
belllaboratoriesin1972. C uses many concepts from these languages and added
the concept of data types and other powerful features.
C is a powerful, flexible, portable and elegantly structured programming
language. The increasing popularity of c is probably due to its many desirable
quantities. It is a robust
languagewhoserichsetofbuiltinfunctionsandoperatorscanbeusedtowriteanycom
plex of a high level language and therefore it is well suited for writing both
system software and business packages.
Cishighlyportable.Thismeansthatcprogramswrittenforonecomputercanberunon
another with little or no modification. Portability is important if we plan to use
a new computer with a different operating system.
2. BACKEND
Any file for storing database. Many real life problems handle large volumes of
data so we need to use some devices such as floppy disk or hard disk to store a
data. The data is store din these devices using a concept of files. A file is a
collection of data stored in a particular area on a disk. Programs can be
designed to perform read and write operations on these files.
CONCLUSION
TheQuizGameiscapabletohandlenumberofQuestionrecordhavingallth
eir information stored in the backend file.
LIMITATION
1. Dependence on final management.
2. The size of the data base increases day-by-day, increasing the
load on the database back up and data maintenance activity.
3. Trainingforsimplecomputeroperationsisnecessaryfortheuserswor
king on the system.
4. The data base is maintained by computerized file based system.
5. Web based project.
6. Fully align the project objectives with the business.
7. Many project end up over budget and many year/month are need to
complete even sometimes cancelled or killed.