Kaun Banega Crorepati Simulation Quiz - C++ Programming Project

Friday, February 28, 2020

#include<iostream.h>
#include<conio.h>
#include<graphics.h>
#include<stdlib.h>
#include<dos.h>

void main()
{
clrscr();
int x=0,your,n,m;
char ch1[100],ch2,ch3,ch4,ch5,ch6,ch7,ch8,ch9,ch10,ch11,opt;
cout<<"\n @@------------------------------------@@   ";
cout<<"\n @@  WELCOME TO KAUN BANEGA CROREPATI  @@   ";
cout<<"\n @@                                    @@   ";
cout<<"\n @@            SEASON - 9              @@   ";
cout<<"\n @@                                    @@   ";
cout<<"\n @@              2018                  @@   ";
cout<<"\n @@                                    @@   ";
cout<<"\n @@    PROGRAM PARTNER HERO MOTORS     @@   ";
cout<<"\n @@         POWERED BY NISAAN          @@   ";
cout<<"\n @@      ASSOCIATION WITH SONYTV       @@   ";
cout<<"\n @@                                    @@   ";
cout<<"\n @@------------------------------------@@   ";
cout<<"\n Enter Your Name : ";
cin>>ch1;
cout<<"\n Enter Your Age : ";
cin>>n;
textcolor(CYAN);
clrscr();
cout<<"Which Country is Known as THE HOLYLAND ? \nA.Jerusalem\nB.Iraq\nC.Arab ";
cout<<"\nAnswer : ";
cin>>ch2;
textcolor(YELLOW);
if(ch2=='A')
{
x=x+10;
cout<<"Good Job.Your Score is "<<x;
}
else
cout<<"Sorry wrong answer.";
getch();
clrscr();
cout<<"\n Press Y to Continue OR N to EXIT .(Y/N): ";
cin>>opt;
if(opt=='N')
{exit(0);
}
cout<<"Which is THE LONGEST RIVER IN THE WORLD ?\nA.GANGA\nB.NILE\nC.CASPIAN ";
cout<<"\nAnswer : ";
cin>>ch2;
textcolor(WHITE);
if(ch2=='B')
{
x=x+10;
cout<<"Good Job.Your Score is "<<x;
}
else
cout<<"Sorry wrong answer.";
getch();
clrscr();
cout<<"\n Press Y to Continue OR N to EXIT .(Y/N): ";
cin>>opt;
if(opt=='N')
{exit(0);
}
cout<<"Which is Known THE ROOF OF THE WORLD ?\nA.Nepal\nB.Kathmandu\nC.Tibet ";
cout<<"\nAnswer : ";
cin>>ch2;
textcolor(LIGHTGREEN);
if(ch2=='C')
{
x=x+10;
cout<<"Good Job.Your Score is "<<x;
}
else
cout<<"Sorry wrong answer.";
getch();
clrscr();
cout<<"\n Press Y to Continue OR N to EXIT .(Y/N): ";
cin>>opt;
if(opt=='N')
{exit(0);
}
cout<<"Which Country is Known as THE LAND OF RISING SUN ?\nA.Norway\nB.Japan\nC.Tibet ";
cout<<"\nAnswer : ";
cin>>ch2;
textcolor(WHITE);
if(ch2=='B')
{
x=x+10;
cout<<"Good Job.Your Score is "<<x;
}
else
cout<<"Sorry wrong answer.";
getch();
clrscr();
cout<<"\n Press Y to Continue OR N to EXIT .(Y/N): ";
cin>>opt;
if(opt=='N')
{exit(0);
}
cout<<"Which Country is Known as THE GIFT OF NILE ?\nA.Nigeria\nB.Egypt\nC.Africa ";
cout<<"\nAnswer : ";
cin>>ch2;
textcolor(LIGHTBLUE);
if(ch2=='B')
{
x=x+10;
cout<<"Your Score is "<<x;
}
else
cout<<"Sorry wrong answer.";
getch();
clrscr();
cout<<"\n Press Y to Continue OR N to EXIT .(Y/N): ";
cin>>opt;
if(opt=='N')
{exit(0);
}
cout<<"Which Country is Known as THE LAND OF MIDNIGHT SUN ?\nA.Norway\nB.Japan\nC.Australia ";
cout<<"\nAnswer : ";
cin>>ch2;
textcolor(BROWN);
if(ch2=='A')
{
x=x+10;
cout<<"Your Score is "<<x;
}
else
cout<<"Sorry wrong answer.";
getch();
clrscr();
cout<<"\n Press Y to Continue OR N to EXIT .(Y/N): ";
cin>>opt;
if(opt=='N')
{exit(0);
}
cout<<"Which Country is Known as THE LAND OF THUNDERBOLT ?\nA.Bhutan\nB.Canada\nC.Brazil ";
cout<<"\nAnswer : ";
textcolor(LIGHTBLUE);
cin>>ch2;
if(ch2=='A')
{
x=x+10;
cout<<"Your Score is "<<x;
}
else
cout<<"Sorry wrong answer.";
getch();
clrscr();
cout<<"\n Press Y to Continue OR N to EXIT .(Y/N): ";
cin>>opt;
if(opt=='N')
{exit(0);
}
cout<<"Which City is Known as THE WINDY CITY ?\nA.Jerusalem\nB.Japan\nC.Chicago ";
cout<<"\nAnswer : ";
cin>>ch2;
textcolor(LIGHTRED);
if(ch2=='C')
{
x=x+10;
cout<<"Your Score is "<<x;
}
else
cout<<"Sorry wrong answer.";
getch();
clrscr();
cout<<"\n Press Y to Continue OR N to EXIT .(Y/N): ";
cin>>opt;
if(opt=='N')
{exit(0);
}
cout<<"Which Country is Known as THE LAND OF WHITE ELEPHANTS ?\nA.Bangladesh\nB.Thailand\nC.India ";
cout<<"\nAnswer : ";
cin>>ch2;
if(ch2=='B')
{
x=x+10;
cout<<"Your Score is "<<x;
}
else
cout<<"Sorry wrong answer.";
getch();
clrscr();
cout<<"\n Press Y to Continue OR N to EXIT .(Y/N): ";
cin>>opt;
if(opt=='N')
{exit(0);
}
cout<<"Which City is Known as THE CITY OF SEVEN HILLS ?\nA.Rome\nB.Nilgiri Hills\nC.Tibet ";
cout<<"\nAnswer : ";
textcolor(CYAN);
cin>>ch2;
if(ch2=='A')
{
x=x+10;
cout<<"Your Score is "<<x;}
else
cout<<"Sorry wrong answer.";
getch();
clrscr();
cout<<"\n Press Y to Continue OR N to EXIT .(Y/N): ";
cin>>opt;
if(opt=='N')
{exit(0);
}
cout<<"Which Continent is Known as THE DARK CONTINENT ?\nA.Asia\nB.Australia\nC.Africa ";
cout<<"\nAnswer : ";
textcolor(LIGHTBLUE);
cin>>ch2;
if(ch2=='C')
{
x=x+10;
cout<<"Your Score is "<<x;
}
else
cout<<"Sorry wrong answer.";
 getch();
clrscr();
 if(x==100)
 cout<<"Superb Good Job ! Play Again ";
 if(x==90)
{ cout<<"Congratulations ! Well Played ";
 cout<<"Your Score is 90 ?";
}
 if(x==80)
{ cout<<" Well Played .";
 cout<<"Your Score is 80 ?";
}
if(50==x||x==70||x==60)
{ cout<<"Average Score .";
 cout<<"Your Score is "<<x<<" Better Luck next time ";
}
 else if(x<=40)
 cout<<"Poor Performance ! Not Even 5 Questions are Right ";
getch();
}

You Might Also Like

0 Comments

Like us on Facebook

Flickr Images

Flickr Short Films