ๅฐŠๆ•ฌ็š„ ๅพฎไฟกๆฑ‡็Ž‡๏ผš1ๅ†† โ‰ˆ 0.046166 ๅ…ƒ ๆ”ฏไป˜ๅฎๆฑ‡็Ž‡๏ผš1ๅ†† โ‰ˆ 0.046257ๅ…ƒ [้€€ๅ‡บ็™ปๅฝ•]
SlideShare a Scribd company logo
Computer Science
Project
Ashwin Francis
2014-2015
1. Certificate
2. Declaration
3. Acknowledgement
4. Introduction to c++
5. Introduction to Project
6. Codings
7. Outputs
8. Bibliography
This is to certify that the project entitled โ€œQUIZ
GAMEโ€ is a record of bonafide work carried out by
โ€œAshwin Francis 12th
Aโ€.In partial fulfilment of the
requirements in COMPUTER SCIENCE prescribed by
CBSE for CBSE BOARD 2014-2015 in the school
Kendriya Vidyalaya Gole Market,New Delhi 110001.
DATE PRINCIPAL
INTERNAL EXTERNAL
EXAMINER EXAMINER
We hereby declare that the project work entitled
โ€œQUIZ GAMEโ€œ. Submitted to KENDRIYA VIDYALAYA
GOLE MARKET, NEW DELHI for theSubject of
โ€œCOMPUTER SCIENCEโ€œ. Under the guidance of
Mrs.Neera Singhal, PGT(COMP Sc.), Is a record of
original work done by us.We further Declare that this
project record or any part of this has not been
Submitted elsewhere for any other class.
DATE MEMBERS
PLACE
We wish to express our sincere thanks to Mr.
DHIR SINGH Principal,Kendriya Vidyalaya Gole
Market, New Delhi for guiding us to cause the
successful outcome of this project work.
We wish to express our deep & profound sense of
gratitude to our guide/teacher Mrs.Neera Singhal,
PGT(COMP Sc.), For her expert help &valuable
guidance, comments and suggestions.
We also place on record, our sincere Gratitude to
one and all who ,Directly or Indirectly ,Have Lent
their helping hand in this venture.
C++ is a programming Language Developed by Bjarne Stroustrup. It was
originally named as C with classes, was renamed as C++ in 1983.It is regarded
as an intermediate-level language, as it comprises both high-level and low-level
language features. Its application domains include systems software,
application software, device drivers, embedded software, highperformance
server and client applications, and entertainment software such as video
games. C++ continues to be used and is one of the preferred programming
languages to develop professional applications
The Features of C++ as a Language
Now that all the necessary theory has been covered, now it is possible to
explain what C++ has to offer as a programming language. C++....
โ€ข ...is an open source ISO-standardized language.
For a time, C++ had no official standard and was maintained by a defacto
standard, however since 1998, C++ is standardized by a committee of
the ISO.
โ€ข ...is a compiled language.
C++ compiles directly to a machine's native code, allowing it to be one
of the fastest languages in the world, if optimized.
โ€ข ...supports both static and dynamic type checking.
C++ allows type conversions to be checked either at compile-time or
at run-time, again offering another degree of flexibility. Most C++ type
checking is, however, static.
โ€ข ...is portable.
As one of the most frequently used languages in the world and as an open
language, C++ has a wide range of compilers that run on many different
platforms that support it.Code that exclusively uses C++'s standard library will
run on many platforms with few to no changes.
Quiz game is a very popular General Knowledge Game. The quiz game
increases the IQ knowledgeof the player. Itis used to check the knowledge
within us.
The provided sourcecode is the simple Quiz game programmed implementing
C language. In this program severalquestion are provided to the player. The
players are provided with 4 options in it. Player is all need to choice the
suitable option from the 4 option available in the screen. The player needs to
type either A, B, C, or D according to the suitable answer provided in it.
The player will scorethe points with each correctanswer provided.
#include<iostream.h>
#include<fstream.h>
#include<ctype.h>
#include<string.h>
#include<conio.h>
#include<stdlib.h>
#include<stdio.h>
classquiz
{
public:
voidset1();
voidques1();
voidques2();
voidques3();
voidques4();
voidques5();
voidfifty1();
voidfifty2();
voidfifty3();
voidfifty4();
voidfifty5();
}s1;
longintpts;
intt=0,flag=0;
char ans[1],w;
fstreamf1;
voidmain()
{
clrscr();
intn;
char name[30],ch;
fstreamf1;
cout<<"nttttTHISIS A QUIZ GAMEnntCREATEDBY nttAMAN ROYnttSHOBHIT
GUPTAnttVIMALKUMARnnPRESSENTER TO PLAY";
getch();
menu:
clrscr();
cout<<"ttttMENUn1.Playgamen2.View game datannEnteryourchoice:";
cin>>n;
if(n==2)
{
f1.open("Game.txt",ios::in);
if(!f1)
{
cout<<"No DatannnPRESSENTER";
getch();
goto menu;
}
else
{
f1.seekg(0);
while(!f1.eof())
{
f1.get(ch);
cout<<ch;
}
f1.close();
cout<<"nnnPRESSENTER";
getch();
goto menu;
}
}
else
{
cout<<"nnnFIRSTANSWERTHE ELIGIBLE QUESTION TO PLAY THE GAME";
cout<<"nnEnterthe name:-";
gets(name);
f1.open("Game.txt",ios::out);
f1<<name<<" ";
getch();
s1.set1();
label:
cout<<"nntttTHANKYOUFORUSING THIS SOFTWAREnt THIS SOFTWAREIS CREATED BY THE
STUDENTS OF K. V.GOLE MARKET.nttttPLEASEDONTCOPY";
getch();
}
}
//*************** END OF MAIN **********************
//******** SET 1
voidquiz::set1()
{
clrscr();
cout<<"n Thisisyour eligibilityquestion";
cout<<"nnnnIncomputer,whatis1gigabyte?";
cout<<"n(a)1024*2 bytes"<<"t(b)1024*1024*1024 bytes";
cout<<"n(c)1024*3 bytes"<<"t(d)NONEOFTHESE";
char rs[]="b";
cout<<"nEnteryouranswer:- ";
cin>>ans;
t=strcmp(ans,rs);
if(t==0)
{
clrscr();
cout<<"nYouhave qualified";
cout<<"n***********************************";
cout<<"n**WELCOME TO THIS GRAND QUIZ SHOW**";
cout<<"n***********************************";
cout<<"nnnnHEREYOU WILL BE ASKEDA QUESTION & FOUR OPTIONS";
cout<<"nWILL BE THERE, IN WHICH THREE ARE WRONG ANDONLY ONE";
cout<<"nISCORRECT.YOU HAVE TO GIVE THE CORRECT ANSWER";
cout<<"nYOU HAVEA 50 - 50 HELP LINE IN WHICH THERE WILL BE ";
cout<<"nONLYTWO OPTIONSOFWHICH ONLY ONEIS CORRECT. YOU";
cout<<"nHAVETO GIVE THE CORRECT ANSWER.ANYWRONGANSWERMEANSYOU ";
cout<<"nFINISHTHE GAME THERE ONLY. "; cout<<"n******** YOU CAN TAKEONLY THREE HELP
LINES *********";
cout<<"nnnnnPRESSENTERTOSTART THE GAME ";
getch();
s1.ques1();
}
else
{
cout<<"aWRONG ANSWER!!!!a";
cout<<"nnttBETTER LUCK NEXT TIME ";
getch();
}
}
//************** QUESTION 1
voidquiz::ques1()
{
clrscr();
cout<<"nWhatdo you meanbyHexadecimal incomputer?";
cout<<"n(a)Withabase of 16"<<"t(b)Witha base of 6";
cout<<"n(c)Withabase of 8"<<"t(d)NONEOFTHESE";
char rs[]="a";
cout<<"nDO YOU WANT 50/50 LIFELINE (Y/N) ";
cin>>w;
if(w=='Y'||w=='y')
{
flag++;
s1.fifty1();
}
cout<<"n Please give youranswer:- ";
cin>>ans;
t=strcmp(ans,rs);
if(t==0)
{
pts=1000;
cout<<" YOUR SCORE IS:- "<<pts;
f1<<"n"<<pts;
f1.close();
cout<<"nPRESSANYKEY FORTHE NEXT QUESTION ";
getch();
s1.ques2();
}
else
{
cout<<"aWRONG ANSWER!!!!a";
getch();
}
}
voidquiz::fifty1()
{
clrscr();
cout<<"nWhatdo you meanbyHexadecimal incomputer?";
cout<<"n(a)Withabase of 16"<<"t(b)Witha base of 6";
}
//******** QUESTION 2
voidquiz::ques2()
{
clrscr();
cout<<"nWhohas writtenthe book'DIVINELIFE?";
cout<<"n(a)CharlesDickens"<<"t(b)Dante Alighieri";
cout<<"n(c)Swami Sivananda"<<"t(d)Karl Marx";
char rs[]="c";
cout<<"nDO YOU WANT 50/50 LIFELINE (Y/N)";
cin>>w;
if(w=='Y'||w=='y')
{
flag++;
s1.fifty2();
}
cout<<"n Please give youranswer";
cin>>ans;
t=strcmp(ans,rs);
if(t==0)
{
pts=2000;
cout<<" YOUR SCORE IS:- "<<pts;
f1.open("Game.txt",ios::app);
f1<<"n"<<pts;
f1.close();
cout<<"nPRESSANYKEY FORTHE NEXT QUESTION ";
getch();
s1.ques3();
}
else
{
cout<<"aWRONG ANSWER!!!!a";
}
}
voidquiz::fifty2()
{
clrscr();
cout<<"nWhohas writtenthe book'DIVINELIFE?";
cout<<"n(c)Swami Sivananda"<<"t(d)Karl Marx";
}
//******Question3
voidquiz::ques3()
{
clrscr();
cout<<"nWhohas writtenthe book'ONELIFE'?";
cout<<"n(a)ChristianBarnard"<<"t(b)Wendell Wilkie";
cout<<"n(c)WilliamWordsworth"<<"t(d)CharlesDarwin";
char rs[]="a";
cout<<"nDO YOU WANT 50/50 LIFELINE(Y/N)";
cin>>w;
if(w=='Y'||w=='y')
{
flag++;
s1.fifty3();}
cout<<"n Please give youranswer";
cin>>ans;
t=strcmp(ans,rs);
if(t==0) {
pts=3000;
cout<<" YOUR SCORE IS:- "<<pts;
cout<<"nPRESSANYKEY FORTHE NEXT QUESTION ";
f1.open("Game.txt",ios::app);
f1<<"n"<<pts;
f1.close();
getch();
s1.ques4();
}
else
{
cout<<"aWRONG ANSWER!!!!a";
}
}
voidquiz::fifty3()
{
clrscr();
cout<<"nWhohas writtenthe book'ONELIFE'?";
cout<<"n(a)ChristianBarnard"<<"n(c)WilliamWordsworth";
}
//**********Question 4
voidquiz::ques4()
{
clrscr();
cout<<"nWhichgame is associate with'YONEXCUP'?";
cout<<"n(a)Golf"<<"t(b)Baseball";
cout<<"n(c)YatchRacing"<<"t(d)Badminton";
char rs[]="d";
if(flag<3)
{
flag++;
cout<<"nDO YOU WANT 50/50 LIFELINE(Y/N)";
cin>>w;
if(w=='Y'||w=='y')
{
flag++;
s1.fifty4();
}
}
cout<<"n Please give youranswer";
cin>>ans;
t=strcmp(ans,rs);
if(t==0)
{
pts=5000;
cout<<" YOUR SCORE IS :- "<<pts;
cout<<"nPRESSANYKEY FORTHE NEXT QUESTION ";
f1.open("Game.txt",ios::app);
f1<<"n"<<pts;
f1.close();
getch();
s1.ques5();
}
else
{
cout<<"aWRONG ANSWER!!!!a";
}
}
voidquiz::fifty4()
{
clrscr();
cout<<"nWhichgame is associate with 'YONEXCUP'?";
cout<<"n(a)Golf"<<"t(d)Badminton";
}
//Question5
voidquiz::ques5()
{
clrscr();
cout<<"nWhoinvented'MECHANICALCLOCK'?";
cout<<"n(a)C.Hugyenst(b)SamuelColt";
cout<<"n(c)HsingandLing-Tsant(d)WilhelmRoentgen";
char rs[]="c";
if(flag<3)
{
cout<<"nDO YOU WANT 50/50 LIFELINE(Y/N)";
cin>>w;
if(w=='Y'||w=='y')
{
flag++;
s1.fifty5();
}
}
cout<<"n Please give youranswer";
cin>>ans;
t=strcmp(ans,rs);
if(t==0)
{
pts=10000;
cout<<" YOUR SCORE IS:- "<<pts;
f1.open("Game.txt",ios::app);
f1<<"n"<<pts;
f1.close();
getch();
clrscr();
cout<<"nttt**********************************************";
cout<<"ntttCONGRATULATIONSYOUHAVECOMPLETED THE FULL SET ";
cout<<"nttt**********************************************";
}
else
{
cout<<"aWRONG ANSWER!!!!a";
}
}
voidquiz::fifty5()
{
clrscr();
cout<<"nWhoinvented'MECHANICALCLOCK'?";
cout<<"nt(b)Samuel Coltn(c)HsingandLing-Tsan";
}
HELP FROM INTERNET
INFORMATION FROM BOOKS
HELP FROM TEACHERS
12th CBSE Computer Science Project
12th CBSE Computer Science Project
12th CBSE Computer Science Project
12th CBSE Computer Science Project
12th CBSE Computer Science Project
12th CBSE Computer Science Project
12th CBSE Computer Science Project
12th CBSE Computer Science Project

More Related Content

What's hot

Library Management Project (computer science) class 12
Library Management Project (computer science) class 12Library Management Project (computer science) class 12
Library Management Project (computer science) class 12
RithuJ
ย 
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THBANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
SHAJUS5
ย 
Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12
OmRanjan2
ย 
Computer Science Practical File class XII
Computer Science Practical File class XIIComputer Science Practical File class XII
Computer Science Practical File class XII
YugenJarwal
ย 
Ip project
Ip projectIp project
Ip project
Jasmeet Singh
ย 
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
chinthala Vijaya Kumar
ย 
computer science project class 12th
computer science project class 12thcomputer science project class 12th
computer science project class 12th
Nitesh Kushwaha
ย 
12th CBSE Computer Science Project
12th CBSE Computer Science Project12th CBSE Computer Science Project
12th CBSE Computer Science Project
Ashwin Francis
ย 
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
ArkaSarkar23
ย 
computer science project for class 12 on telephone billing
computer science project for class 12 on telephone billingcomputer science project for class 12 on telephone billing
computer science project for class 12 on telephone billing
anshi acharya
ย 
CS Project-Source code for shopping inventory for CBSE 12th
CS Project-Source code for shopping inventory for CBSE 12thCS Project-Source code for shopping inventory for CBSE 12th
CS Project-Source code for shopping inventory for CBSE 12th
Sudhindra Mudhol
ย 
COMPUTER SCIENCE INVESTIGATORY PROJECT ON FOOTBALL GAME AND SCORE MANAGEMENT ...
COMPUTER SCIENCE INVESTIGATORY PROJECT ON FOOTBALL GAME AND SCORE MANAGEMENT ...COMPUTER SCIENCE INVESTIGATORY PROJECT ON FOOTBALL GAME AND SCORE MANAGEMENT ...
COMPUTER SCIENCE INVESTIGATORY PROJECT ON FOOTBALL GAME AND SCORE MANAGEMENT ...
pankajkumbara
ย 
PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)
PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)
PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)
Anushka Rai
ย 
ENGLISH ASSIGNMENT INTERVIEW class xii.pdf
ENGLISH ASSIGNMENT INTERVIEW class xii.pdfENGLISH ASSIGNMENT INTERVIEW class xii.pdf
ENGLISH ASSIGNMENT INTERVIEW class xii.pdf
Akshat58365
ย 
ASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECTASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECT
RAM LAL ANAND COLLEGE, UNIVERSITY OF DELHI
ย 
BOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in PythonBOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in Python
vikram mahendra
ย 
cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project
D. j Vicky
ย 
photoelectric effect made by-chinmay jagadev pattanayak
 photoelectric effect  made by-chinmay jagadev pattanayak photoelectric effect  made by-chinmay jagadev pattanayak
photoelectric effect made by-chinmay jagadev pattanayak
CHINMAY JAGADEV
ย 
Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)
lokesh meena
ย 
class 12th computer science project Employee Management System In Python
 class 12th computer science project Employee Management System In Python class 12th computer science project Employee Management System In Python
class 12th computer science project Employee Management System In Python
AbhishekKumarMorla
ย 

What's hot (20)

Library Management Project (computer science) class 12
Library Management Project (computer science) class 12Library Management Project (computer science) class 12
Library Management Project (computer science) class 12
ย 
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THBANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
ย 
Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12
ย 
Computer Science Practical File class XII
Computer Science Practical File class XIIComputer Science Practical File class XII
Computer Science Practical File class XII
ย 
Ip project
Ip projectIp project
Ip project
ย 
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
ย 
computer science project class 12th
computer science project class 12thcomputer science project class 12th
computer science project class 12th
ย 
12th CBSE Computer Science Project
12th CBSE Computer Science Project12th CBSE Computer Science Project
12th CBSE Computer Science Project
ย 
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
Computer Science Investigatory Project Class XII CBSE(Latest Syllabus)(Python...
ย 
computer science project for class 12 on telephone billing
computer science project for class 12 on telephone billingcomputer science project for class 12 on telephone billing
computer science project for class 12 on telephone billing
ย 
CS Project-Source code for shopping inventory for CBSE 12th
CS Project-Source code for shopping inventory for CBSE 12thCS Project-Source code for shopping inventory for CBSE 12th
CS Project-Source code for shopping inventory for CBSE 12th
ย 
COMPUTER SCIENCE INVESTIGATORY PROJECT ON FOOTBALL GAME AND SCORE MANAGEMENT ...
COMPUTER SCIENCE INVESTIGATORY PROJECT ON FOOTBALL GAME AND SCORE MANAGEMENT ...COMPUTER SCIENCE INVESTIGATORY PROJECT ON FOOTBALL GAME AND SCORE MANAGEMENT ...
COMPUTER SCIENCE INVESTIGATORY PROJECT ON FOOTBALL GAME AND SCORE MANAGEMENT ...
ย 
PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)
PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)
PHYSICAL EDUCATION PRACTICAL FILE ( Class 12th)
ย 
ENGLISH ASSIGNMENT INTERVIEW class xii.pdf
ENGLISH ASSIGNMENT INTERVIEW class xii.pdfENGLISH ASSIGNMENT INTERVIEW class xii.pdf
ENGLISH ASSIGNMENT INTERVIEW class xii.pdf
ย 
ASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECTASL/ALS CLASS 12 ENGLISH PROJECT
ASL/ALS CLASS 12 ENGLISH PROJECT
ย 
BOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in PythonBOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in Python
ย 
cbse 12 computer science investigatory project
cbse 12 computer science investigatory project  cbse 12 computer science investigatory project
cbse 12 computer science investigatory project
ย 
photoelectric effect made by-chinmay jagadev pattanayak
 photoelectric effect  made by-chinmay jagadev pattanayak photoelectric effect  made by-chinmay jagadev pattanayak
photoelectric effect made by-chinmay jagadev pattanayak
ย 
Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)
ย 
class 12th computer science project Employee Management System In Python
 class 12th computer science project Employee Management System In Python class 12th computer science project Employee Management System In Python
class 12th computer science project Employee Management System In Python
ย 

Similar to 12th CBSE Computer Science Project

Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game
Pritam Samanta
ย 
Build 2016 - B880 - Top 6 Reasons to Move Your C++ Code to Visual Studio 2015
Build 2016 - B880 - Top 6 Reasons to Move Your C++ Code to Visual Studio 2015Build 2016 - B880 - Top 6 Reasons to Move Your C++ Code to Visual Studio 2015
Build 2016 - B880 - Top 6 Reasons to Move Your C++ Code to Visual Studio 2015
Windows Developer
ย 
OpenCL Programming 101
OpenCL Programming 101OpenCL Programming 101
OpenCL Programming 101
Yoss Cohen
ย 
Implementing OpenCL support in GEGL and GIMP
Implementing OpenCL support in GEGL and GIMPImplementing OpenCL support in GEGL and GIMP
Implementing OpenCL support in GEGL and GIMP
lgworld
ย 
C++ Kasirul Rashtawi Institute.pdf
C++ Kasirul Rashtawi Institute.pdfC++ Kasirul Rashtawi Institute.pdf
C++ Kasirul Rashtawi Institute.pdf
Kasirul Rashtawi Institute
ย 
How to build Kick Ass Games in the Cloud
How to build Kick Ass Games in the CloudHow to build Kick Ass Games in the Cloud
How to build Kick Ass Games in the Cloud
Chris Schalk
ย 
Fullstack workshop
Fullstack workshopFullstack workshop
Fullstack workshop
Assaf Gannon
ย 
Kivy for you
Kivy for youKivy for you
computer shop
computer shopcomputer shop
computer shop
saurabhswaraj
ย 
ELAVARASAN.pdf
ELAVARASAN.pdfELAVARASAN.pdf
ELAVARASAN.pdf
dharmendra kumar jaiswal
ย 
Ronak Kachhawa , BCA Third Year
Ronak Kachhawa , BCA Third YearRonak Kachhawa , BCA Third Year
Ronak Kachhawa , BCA Third Year
Dezyneecole
ย 
Introduction to Raspberry Pi and GPIO
Introduction to Raspberry Pi and GPIOIntroduction to Raspberry Pi and GPIO
Introduction to Raspberry Pi and GPIO
Kris Findlay
ย 
Open CL For Haifa Linux Club
Open CL For Haifa Linux ClubOpen CL For Haifa Linux Club
Open CL For Haifa Linux Club
Ofer Rosenberg
ย 
Kubernetes debug like a pro
Kubernetes debug like a proKubernetes debug like a pro
Kubernetes debug like a pro
Gianluca Arbezzano
ย 
Engineer Engineering Software
Engineer Engineering SoftwareEngineer Engineering Software
Engineer Engineering Software
Yung-Yu Chen
ย 
Kinect v2 Introduction and Tutorial
Kinect v2 Introduction and TutorialKinect v2 Introduction and Tutorial
Kinect v2 Introduction and Tutorial
Tsukasa Sugiura
ย 
ma project
ma projectma project
ma project
Aisu
ย 
Increase testability with code seams
Increase testability with code seamsIncrease testability with code seams
Increase testability with code seams
Llewellyn Falco
ย 
Telephone directory
Telephone directoryTelephone directory
Telephone directory
Upendra Sengar
ย 
Synopsis tic tac toe
Synopsis tic tac toeSynopsis tic tac toe
Synopsis tic tac toe
SYED HOZAIFA ALI
ย 

Similar to 12th CBSE Computer Science Project (20)

Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game Computer Project For Class XII Topic - The Snake Game
Computer Project For Class XII Topic - The Snake Game
ย 
Build 2016 - B880 - Top 6 Reasons to Move Your C++ Code to Visual Studio 2015
Build 2016 - B880 - Top 6 Reasons to Move Your C++ Code to Visual Studio 2015Build 2016 - B880 - Top 6 Reasons to Move Your C++ Code to Visual Studio 2015
Build 2016 - B880 - Top 6 Reasons to Move Your C++ Code to Visual Studio 2015
ย 
OpenCL Programming 101
OpenCL Programming 101OpenCL Programming 101
OpenCL Programming 101
ย 
Implementing OpenCL support in GEGL and GIMP
Implementing OpenCL support in GEGL and GIMPImplementing OpenCL support in GEGL and GIMP
Implementing OpenCL support in GEGL and GIMP
ย 
C++ Kasirul Rashtawi Institute.pdf
C++ Kasirul Rashtawi Institute.pdfC++ Kasirul Rashtawi Institute.pdf
C++ Kasirul Rashtawi Institute.pdf
ย 
How to build Kick Ass Games in the Cloud
How to build Kick Ass Games in the CloudHow to build Kick Ass Games in the Cloud
How to build Kick Ass Games in the Cloud
ย 
Fullstack workshop
Fullstack workshopFullstack workshop
Fullstack workshop
ย 
Kivy for you
Kivy for youKivy for you
Kivy for you
ย 
computer shop
computer shopcomputer shop
computer shop
ย 
ELAVARASAN.pdf
ELAVARASAN.pdfELAVARASAN.pdf
ELAVARASAN.pdf
ย 
Ronak Kachhawa , BCA Third Year
Ronak Kachhawa , BCA Third YearRonak Kachhawa , BCA Third Year
Ronak Kachhawa , BCA Third Year
ย 
Introduction to Raspberry Pi and GPIO
Introduction to Raspberry Pi and GPIOIntroduction to Raspberry Pi and GPIO
Introduction to Raspberry Pi and GPIO
ย 
Open CL For Haifa Linux Club
Open CL For Haifa Linux ClubOpen CL For Haifa Linux Club
Open CL For Haifa Linux Club
ย 
Kubernetes debug like a pro
Kubernetes debug like a proKubernetes debug like a pro
Kubernetes debug like a pro
ย 
Engineer Engineering Software
Engineer Engineering SoftwareEngineer Engineering Software
Engineer Engineering Software
ย 
Kinect v2 Introduction and Tutorial
Kinect v2 Introduction and TutorialKinect v2 Introduction and Tutorial
Kinect v2 Introduction and Tutorial
ย 
ma project
ma projectma project
ma project
ย 
Increase testability with code seams
Increase testability with code seamsIncrease testability with code seams
Increase testability with code seams
ย 
Telephone directory
Telephone directoryTelephone directory
Telephone directory
ย 
Synopsis tic tac toe
Synopsis tic tac toeSynopsis tic tac toe
Synopsis tic tac toe
ย 

Recently uploaded

Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
biruktesfaye27
ย 
Slides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptxSlides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptx
shabeluno
ย 
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptxScience-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Catherine Dela Cruz
ย 
Decolonizing Universal Design for Learning
Decolonizing Universal Design for LearningDecolonizing Universal Design for Learning
Decolonizing Universal Design for Learning
Frederic Fovet
ย 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapitolTechU
ย 
managing Behaviour in early childhood education.pptx
managing Behaviour in early childhood education.pptxmanaging Behaviour in early childhood education.pptx
managing Behaviour in early childhood education.pptx
nabaegha
ย 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
MJDuyan
ย 
bryophytes.pptx bsc botany honours second semester
bryophytes.pptx bsc botany honours  second semesterbryophytes.pptx bsc botany honours  second semester
bryophytes.pptx bsc botany honours second semester
Sarojini38
ย 
Keynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse CityKeynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse City
PJ Caposey
ย 
Non-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech ProfessionalsNon-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech Professionals
MattVassar1
ย 
How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...
Infosec
ย 
8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity
RuchiRathor2
ย 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
TechSoup
ย 
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptxContiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Kalna College
ย 
Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024
Friends of African Village Libraries
ย 
nutrition in plants chapter 1 class 7...
nutrition in plants chapter 1 class 7...nutrition in plants chapter 1 class 7...
nutrition in plants chapter 1 class 7...
chaudharyreet2244
ย 
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
ShwetaGawande8
ย 
How to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRMHow to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRM
Celine George
ย 
Talking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual AidsTalking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual Aids
MattVassar1
ย 
The Science of Learning: implications for modern teaching
The Science of Learning: implications for modern teachingThe Science of Learning: implications for modern teaching
The Science of Learning: implications for modern teaching
Derek Wenmoth
ย 

Recently uploaded (20)

Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
Ethiopia and Eritrea Eritrea's journey has been marked by resilience and dete...
ย 
Slides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptxSlides Peluncuran Amalan Pemakanan Sihat.pptx
Slides Peluncuran Amalan Pemakanan Sihat.pptx
ย 
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptxScience-9-Lesson-1-The Bohr Model-NLC.pptx pptx
Science-9-Lesson-1-The Bohr Model-NLC.pptx pptx
ย 
Decolonizing Universal Design for Learning
Decolonizing Universal Design for LearningDecolonizing Universal Design for Learning
Decolonizing Universal Design for Learning
ย 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
ย 
managing Behaviour in early childhood education.pptx
managing Behaviour in early childhood education.pptxmanaging Behaviour in early childhood education.pptx
managing Behaviour in early childhood education.pptx
ย 
Information and Communication Technology in Education
Information and Communication Technology in EducationInformation and Communication Technology in Education
Information and Communication Technology in Education
ย 
bryophytes.pptx bsc botany honours second semester
bryophytes.pptx bsc botany honours  second semesterbryophytes.pptx bsc botany honours  second semester
bryophytes.pptx bsc botany honours second semester
ย 
Keynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse CityKeynote given on June 24 for MASSP at Grand Traverse City
Keynote given on June 24 for MASSP at Grand Traverse City
ย 
Non-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech ProfessionalsNon-Verbal Communication for Tech Professionals
Non-Verbal Communication for Tech Professionals
ย 
How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...How to stay relevant as a cyber professional: Skills, trends and career paths...
How to stay relevant as a cyber professional: Skills, trends and career paths...
ย 
8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity8+8+8 Rule Of Time Management For Better Productivity
8+8+8 Rule Of Time Management For Better Productivity
ย 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
ย 
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptxContiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptx
ย 
Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024Library news letter Kitengesa Uganda June 2024
Library news letter Kitengesa Uganda June 2024
ย 
nutrition in plants chapter 1 class 7...
nutrition in plants chapter 1 class 7...nutrition in plants chapter 1 class 7...
nutrition in plants chapter 1 class 7...
ย 
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
INTRODUCTION TO HOSPITALS & AND ITS ORGANIZATION
ย 
How to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRMHow to Create a Stage or a Pipeline in Odoo 17 CRM
How to Create a Stage or a Pipeline in Odoo 17 CRM
ย 
Talking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual AidsTalking Tech through Compelling Visual Aids
Talking Tech through Compelling Visual Aids
ย 
The Science of Learning: implications for modern teaching
The Science of Learning: implications for modern teachingThe Science of Learning: implications for modern teaching
The Science of Learning: implications for modern teaching
ย 

12th CBSE Computer Science Project

  • 2. 1. Certificate 2. Declaration 3. Acknowledgement 4. Introduction to c++ 5. Introduction to Project 6. Codings 7. Outputs 8. Bibliography
  • 3. This is to certify that the project entitled โ€œQUIZ GAMEโ€ is a record of bonafide work carried out by โ€œAshwin Francis 12th Aโ€.In partial fulfilment of the requirements in COMPUTER SCIENCE prescribed by CBSE for CBSE BOARD 2014-2015 in the school Kendriya Vidyalaya Gole Market,New Delhi 110001. DATE PRINCIPAL INTERNAL EXTERNAL EXAMINER EXAMINER
  • 4. We hereby declare that the project work entitled โ€œQUIZ GAMEโ€œ. Submitted to KENDRIYA VIDYALAYA GOLE MARKET, NEW DELHI for theSubject of โ€œCOMPUTER SCIENCEโ€œ. Under the guidance of Mrs.Neera Singhal, PGT(COMP Sc.), Is a record of original work done by us.We further Declare that this project record or any part of this has not been Submitted elsewhere for any other class. DATE MEMBERS PLACE
  • 5. We wish to express our sincere thanks to Mr. DHIR SINGH Principal,Kendriya Vidyalaya Gole Market, New Delhi for guiding us to cause the successful outcome of this project work. We wish to express our deep & profound sense of gratitude to our guide/teacher Mrs.Neera Singhal, PGT(COMP Sc.), For her expert help &valuable guidance, comments and suggestions. We also place on record, our sincere Gratitude to one and all who ,Directly or Indirectly ,Have Lent their helping hand in this venture.
  • 6. C++ is a programming Language Developed by Bjarne Stroustrup. It was originally named as C with classes, was renamed as C++ in 1983.It is regarded as an intermediate-level language, as it comprises both high-level and low-level language features. Its application domains include systems software, application software, device drivers, embedded software, highperformance server and client applications, and entertainment software such as video games. C++ continues to be used and is one of the preferred programming languages to develop professional applications The Features of C++ as a Language Now that all the necessary theory has been covered, now it is possible to explain what C++ has to offer as a programming language. C++.... โ€ข ...is an open source ISO-standardized language. For a time, C++ had no official standard and was maintained by a defacto standard, however since 1998, C++ is standardized by a committee of the ISO. โ€ข ...is a compiled language. C++ compiles directly to a machine's native code, allowing it to be one of the fastest languages in the world, if optimized. โ€ข ...supports both static and dynamic type checking. C++ allows type conversions to be checked either at compile-time or at run-time, again offering another degree of flexibility. Most C++ type checking is, however, static. โ€ข ...is portable.
  • 7. As one of the most frequently used languages in the world and as an open language, C++ has a wide range of compilers that run on many different platforms that support it.Code that exclusively uses C++'s standard library will run on many platforms with few to no changes.
  • 8. Quiz game is a very popular General Knowledge Game. The quiz game increases the IQ knowledgeof the player. Itis used to check the knowledge within us. The provided sourcecode is the simple Quiz game programmed implementing C language. In this program severalquestion are provided to the player. The players are provided with 4 options in it. Player is all need to choice the suitable option from the 4 option available in the screen. The player needs to type either A, B, C, or D according to the suitable answer provided in it. The player will scorethe points with each correctanswer provided.
  • 10. fstreamf1; voidmain() { clrscr(); intn; char name[30],ch; fstreamf1; cout<<"nttttTHISIS A QUIZ GAMEnntCREATEDBY nttAMAN ROYnttSHOBHIT GUPTAnttVIMALKUMARnnPRESSENTER TO PLAY"; getch(); menu: clrscr(); cout<<"ttttMENUn1.Playgamen2.View game datannEnteryourchoice:"; cin>>n; if(n==2) { f1.open("Game.txt",ios::in); if(!f1) { cout<<"No DatannnPRESSENTER"; getch(); goto menu; }
  • 11. else { f1.seekg(0); while(!f1.eof()) { f1.get(ch); cout<<ch; } f1.close(); cout<<"nnnPRESSENTER"; getch(); goto menu; } } else { cout<<"nnnFIRSTANSWERTHE ELIGIBLE QUESTION TO PLAY THE GAME"; cout<<"nnEnterthe name:-"; gets(name); f1.open("Game.txt",ios::out); f1<<name<<" "; getch(); s1.set1(); label: cout<<"nntttTHANKYOUFORUSING THIS SOFTWAREnt THIS SOFTWAREIS CREATED BY THE STUDENTS OF K. V.GOLE MARKET.nttttPLEASEDONTCOPY";
  • 12. getch(); } } //*************** END OF MAIN ********************** //******** SET 1 voidquiz::set1() { clrscr(); cout<<"n Thisisyour eligibilityquestion"; cout<<"nnnnIncomputer,whatis1gigabyte?"; cout<<"n(a)1024*2 bytes"<<"t(b)1024*1024*1024 bytes"; cout<<"n(c)1024*3 bytes"<<"t(d)NONEOFTHESE"; char rs[]="b"; cout<<"nEnteryouranswer:- "; cin>>ans; t=strcmp(ans,rs); if(t==0) { clrscr(); cout<<"nYouhave qualified"; cout<<"n***********************************"; cout<<"n**WELCOME TO THIS GRAND QUIZ SHOW**"; cout<<"n***********************************"; cout<<"nnnnHEREYOU WILL BE ASKEDA QUESTION & FOUR OPTIONS"; cout<<"nWILL BE THERE, IN WHICH THREE ARE WRONG ANDONLY ONE"; cout<<"nISCORRECT.YOU HAVE TO GIVE THE CORRECT ANSWER"; cout<<"nYOU HAVEA 50 - 50 HELP LINE IN WHICH THERE WILL BE ";
  • 13. cout<<"nONLYTWO OPTIONSOFWHICH ONLY ONEIS CORRECT. YOU"; cout<<"nHAVETO GIVE THE CORRECT ANSWER.ANYWRONGANSWERMEANSYOU "; cout<<"nFINISHTHE GAME THERE ONLY. "; cout<<"n******** YOU CAN TAKEONLY THREE HELP LINES *********"; cout<<"nnnnnPRESSENTERTOSTART THE GAME "; getch(); s1.ques1(); } else { cout<<"aWRONG ANSWER!!!!a"; cout<<"nnttBETTER LUCK NEXT TIME "; getch(); } } //************** QUESTION 1 voidquiz::ques1() { clrscr(); cout<<"nWhatdo you meanbyHexadecimal incomputer?"; cout<<"n(a)Withabase of 16"<<"t(b)Witha base of 6"; cout<<"n(c)Withabase of 8"<<"t(d)NONEOFTHESE"; char rs[]="a"; cout<<"nDO YOU WANT 50/50 LIFELINE (Y/N) "; cin>>w; if(w=='Y'||w=='y') { flag++;
  • 14. s1.fifty1(); } cout<<"n Please give youranswer:- "; cin>>ans; t=strcmp(ans,rs); if(t==0) { pts=1000; cout<<" YOUR SCORE IS:- "<<pts; f1<<"n"<<pts; f1.close(); cout<<"nPRESSANYKEY FORTHE NEXT QUESTION "; getch(); s1.ques2(); } else { cout<<"aWRONG ANSWER!!!!a"; getch(); } } voidquiz::fifty1() { clrscr(); cout<<"nWhatdo you meanbyHexadecimal incomputer?"; cout<<"n(a)Withabase of 16"<<"t(b)Witha base of 6"; }
  • 15. //******** QUESTION 2 voidquiz::ques2() { clrscr(); cout<<"nWhohas writtenthe book'DIVINELIFE?"; cout<<"n(a)CharlesDickens"<<"t(b)Dante Alighieri"; cout<<"n(c)Swami Sivananda"<<"t(d)Karl Marx"; char rs[]="c"; cout<<"nDO YOU WANT 50/50 LIFELINE (Y/N)"; cin>>w; if(w=='Y'||w=='y') { flag++; s1.fifty2(); } cout<<"n Please give youranswer"; cin>>ans; t=strcmp(ans,rs); if(t==0) { pts=2000; cout<<" YOUR SCORE IS:- "<<pts; f1.open("Game.txt",ios::app); f1<<"n"<<pts; f1.close();
  • 16. cout<<"nPRESSANYKEY FORTHE NEXT QUESTION "; getch(); s1.ques3(); } else { cout<<"aWRONG ANSWER!!!!a"; } } voidquiz::fifty2() { clrscr(); cout<<"nWhohas writtenthe book'DIVINELIFE?"; cout<<"n(c)Swami Sivananda"<<"t(d)Karl Marx"; } //******Question3 voidquiz::ques3() { clrscr(); cout<<"nWhohas writtenthe book'ONELIFE'?"; cout<<"n(a)ChristianBarnard"<<"t(b)Wendell Wilkie"; cout<<"n(c)WilliamWordsworth"<<"t(d)CharlesDarwin"; char rs[]="a"; cout<<"nDO YOU WANT 50/50 LIFELINE(Y/N)"; cin>>w; if(w=='Y'||w=='y') {
  • 17. flag++; s1.fifty3();} cout<<"n Please give youranswer"; cin>>ans; t=strcmp(ans,rs); if(t==0) { pts=3000; cout<<" YOUR SCORE IS:- "<<pts; cout<<"nPRESSANYKEY FORTHE NEXT QUESTION "; f1.open("Game.txt",ios::app); f1<<"n"<<pts; f1.close(); getch(); s1.ques4(); } else { cout<<"aWRONG ANSWER!!!!a"; } } voidquiz::fifty3() { clrscr(); cout<<"nWhohas writtenthe book'ONELIFE'?"; cout<<"n(a)ChristianBarnard"<<"n(c)WilliamWordsworth";
  • 18. } //**********Question 4 voidquiz::ques4() { clrscr(); cout<<"nWhichgame is associate with'YONEXCUP'?"; cout<<"n(a)Golf"<<"t(b)Baseball"; cout<<"n(c)YatchRacing"<<"t(d)Badminton"; char rs[]="d"; if(flag<3) { flag++; cout<<"nDO YOU WANT 50/50 LIFELINE(Y/N)"; cin>>w; if(w=='Y'||w=='y') { flag++; s1.fifty4(); } } cout<<"n Please give youranswer"; cin>>ans; t=strcmp(ans,rs); if(t==0) { pts=5000; cout<<" YOUR SCORE IS :- "<<pts;
  • 19. cout<<"nPRESSANYKEY FORTHE NEXT QUESTION "; f1.open("Game.txt",ios::app); f1<<"n"<<pts; f1.close(); getch(); s1.ques5(); } else { cout<<"aWRONG ANSWER!!!!a"; } } voidquiz::fifty4() { clrscr(); cout<<"nWhichgame is associate with 'YONEXCUP'?"; cout<<"n(a)Golf"<<"t(d)Badminton"; } //Question5 voidquiz::ques5() { clrscr(); cout<<"nWhoinvented'MECHANICALCLOCK'?"; cout<<"n(a)C.Hugyenst(b)SamuelColt"; cout<<"n(c)HsingandLing-Tsant(d)WilhelmRoentgen";
  • 20. char rs[]="c"; if(flag<3) { cout<<"nDO YOU WANT 50/50 LIFELINE(Y/N)"; cin>>w; if(w=='Y'||w=='y') { flag++; s1.fifty5(); } } cout<<"n Please give youranswer"; cin>>ans; t=strcmp(ans,rs); if(t==0) { pts=10000; cout<<" YOUR SCORE IS:- "<<pts; f1.open("Game.txt",ios::app); f1<<"n"<<pts; f1.close(); getch(); clrscr(); cout<<"nttt**********************************************"; cout<<"ntttCONGRATULATIONSYOUHAVECOMPLETED THE FULL SET ";
  • 22.
  • 23. HELP FROM INTERNET INFORMATION FROM BOOKS HELP FROM TEACHERS
  ็ฟป่ฏ‘๏ผš