Anda di halaman 1dari 10

# include<iostream>

using namespace std;


int main(void)
{
char name[50],ch[11],choice,place[50];
int x,count=0,cal,choose;

do
{
x=0;

cout<<"\t\t*****************************************************KBC****************
*******************************************";
cout<<"\nWelcome to kbc game";
cout<<"\nEnter your name\n";
cin>>name;
cout<<"\nEnter the place\n";
cin>>place;
cout<<"\n\n Hi "<<name<<" from "<<place<<" now lets play the kbc
game\n\n\n\n ";
cout<<"RULES :\n\n";
cout<<"\n1.This is the 2500000 game and each question will be awarded with
the respected amount ";
cout<<"\n2.Enter answer in form of 'a','b','c' and 'd' only.";
cout<<"\n3.You have a single lifeline called 50:50 and choose this option
by pressing 1\n\n\n\n ";
cout<<"\n Q1.Which is the only finger in the human body that contains two
bones ?\n";
cout<<"\n a.Thumb\n";
cout<<"\n b.Forefinger\n";
cout<<"\n c.little finger\n";
cout<<"\n d.Ring finger\n";
cout<<"\nWill you take the lifeline\n";
cout<<"\nY OR N\n ";
cin>>choice;
if(choice=='Y'&&count==0)
{ cout<<"\n1.50:50\n";
cin>>choose;
if(choose==1)
{
cout<<"\nQ1.Which is the only finger in the human body that contains two
bones ? \n";
cout<<"\n a.Thumb";
cout<<"\n c.little finger\n\n";
cin>>ch[1];
count=1;
if(ch[1]=='a')
{
x=x+5000;
cout<<"\n Good Job. well played ";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.Oh you could have choosen the life line";
goto abc;
}

}
}
else
{cout<<"\nOk enter the choice then\n\n";
cin>>ch[1];
if(ch[1]=='a')
{
x=x+5000;
cout<<"\n Good Job.Great work";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}}
cout<<"\n Q2.Under whose captaincy Deccan chargers once become IPL
Champions ?";
cout<<"\n a.V.V.S Laxman";
cout<<"\n b.Shahid Afridi";
cout<<"\n c.Adam Gilchrist";
cout<<"\n d.Rohit sharma";
cout<<"\nWill you take the lifeline\n";
cout<<"\nY OR N\n ";
cin>>choice;
if(choice=='Y'&&count==0)
{ cout<<"\n1.50:50\n";
cin>>choose;
count=1;
if(choose==1)
{
cout<<"\n Q2.Under whose captaincy Deccan chargers once become IPL
Champions ?";
cout<<"\n a.V.V.S Laxman";
cout<<"\n c.Adam Gilchrist\n";
cin>>ch[2];
if(ch[2]=='c')
{
x=x+5000;
cout<<"\n Good Job.Congratulations keep it up";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.I am very sorry better luck next time ";
goto abc;
}

}
}

else
if(choice=='N')
{
cout<<"\nOk enter the choice then\n\n";
cin>>ch[2];
if(ch[2]=='c')
{
x=x+5000;
cout<<"\n Good Job.Congratulations keep it up";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.I am very sorry better luck next time";
goto abc;
}}
cout<<"\n Q3.Which of this state had more than one women chief minister'?";
cout<<"\n a.Bihar";
cout<<"\n b.Uttar Pradesh";
cout<<"\n c.Madhya Pradesh";
cout<<"\n d.Rajasthan";
cout<<"\nWill you take the lifeline\n";
cout<<"\nY OR N\n ";
cin>>choice;
if(choice=='Y'&&count==0)
{ cout<<"\n1.50:50\n";
cin>>choose;
if(choose==1)
{cout<<"\n Q3.Which of this state had more than one women chief
minister'?";
cout<<"\n b.Uttar Pradesh";
cout<<"\n d.Rajasthan\n";
cin>>ch[3];
count=1;
if(ch[3]=='b')
{
x=x+10000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}

}
}
else
{cout<<"\nOk enter the choice then\n\n";
cin>>ch[3];
if(ch[3]=='b')
{
x=x+10000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}}
cout<<"\n Q4.The Delhi House where Mahatma Gandhi spent his last day was
the residence of which of the Industrialist'?";
cout<<"\n a.K.P Goenka";
cout<<"\n b.G.D Birla";
cout<<"\n c.Jamshed TATA";
cout<<"\n d.Ambalal Sarabhai";
cout<<"\nWill you take the lifeline\n";
cout<<"\nY OR N\n ";
cin>>choice;
if(choice=='Y'&&count==0)
{
cout<<"\n1.50:50\n";
cin>>choose;
if(choose==1)
{
cout<<"\n Q4.The Delhi House where Mahatma Gandhi spent his last day was
the residence of which of the Industrialist'?";
cout<<"\n a.K.P Goenka";
cout<<"\n b.G.D Birla\n";

cin>>ch[4];
count=1;
if(ch[4]=='b')
{
x=x+20000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}

}
}
else
{cout<<"\nOk enter the choice then\n\n";
cin>>ch[4];
if(ch[4]=='b')
{
x=x+20000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}}
cout<<"\n Q5.Which of this metal has the highest melting point as well as
the highest boiling point'?";
cout<<"\n a.Platinum";
cout<<"\n b.Iron";
cout<<"\n c.Tungsten";
cout<<"\n d.Cobalt";
cout<<"\nWill you take the lifeline\n";
cout<<"\nY OR N\n ";
cin>>choice;
if(choice=='Y'&&count==0)
{ cout<<"\n1.50:50\n";
cin>>choose;
if(choose==1)
{cout<<"\n Q5.Which of this metal has the highest melting point as well as
the highest boiling point'?";
cout<<"\n a.Platinum";
cout<<"\n d.Cobalt\n";
cin>>ch[5];
count=1;
if(ch[5]=='a')
{
x=x+40000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}

}
}
else
{cout<<"\nOk enter the choice then\n\n";
cin>>ch[5];
if(ch[5]=='a')
{
x=x+40000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}}
cout<<"\n Q6.What is called as ' THE LAND OF THUNDERBOLT'?";
cout<<"\n a.Bhutan";
cout<<"\n b.Canada";
cout<<"\n c.Arab";
cout<<"\n d.America";
cout<<"\nWill you take the lifeline\n";
cout<<"\nY OR N\n ";
cin>>choice;
if(choice=='Y'&&count==0)
{ cout<<"\n1.50:50\n";
cin>>choose;
if(choose==1)
{cout<<"\n Q6.What is called as ' THE LAND OF THUNDERBOLT'?";
cout<<"\n a.Bhutan";
cout<<"\n b.Canada\n";
cin>>ch[6];
count=1;
if(ch[6]=='a')
{
x=x+80000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}

}
}
else
{cout<<"\nOk enter the choice then\n\n";
cin>>ch[6];
if(ch[6]=='a')
{
x=x+80000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}}
cout<<"\n Q7.According to the MAHABHARAT who is the son of Karna";
cout<<"\n a.Lakshmana Kumara";
cout<<"\n b.Vrishasena";
cout<<"\n c.Abhimanyu";
cout<<"\n d.vichitravirya";
cout<<"\nWill you take the lifeline\n";
cout<<"\nY OR N\n ";
cin>>choice;
if(choice=='Y'&&count==0)
{ cout<<"\n1.50:50\n";
cin>>choose;
if(choose==1)
{cout<<"\n Q7.According to the MAHABHARAT who is the son of Karna";
cout<<"\n a.Lakshmana Kumara";
cout<<"\n b.Vrishasena\n";
cin>>ch[7];
count=1;
if(ch[7]=='b')
{
x=x+160000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}

}
}
else
{cout<<"\nOk enter the choice then\n\n";
cin>>ch[7];
if(ch[7]=='b')
{
x=x+160000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}}

cout<<"\n Q8.Who is the winner of loksabha election in 2014 at Darbhanga


and who is also former Indian cricket player ";
cout<<"\n a.Veng sarkar";
cout<<"\n b.Kirti Azad";
cout<<"\n c.Prasoon Joshi";
cout<<"\n d.Suresh vada";
cout<<"\nWill you take the lifeline\n";
cout<<"\nY OR N\n ";
cin>>choice;
if(choice=='Y'&&count==0)
{ cout<<"\n1.50:50\n";
cin>>choose;
if(choose==1)
{
cout<<"\n Q8.Who is the winner of loksabha election in 2014 at Darbhanga
and who is also former Indian cricket player ";
cout<<"\n b.Kirti Azad";
cout<<"\n c.Prasoon Joshi\n";
cin>>ch[8];
count=1;
if(ch[8]=='b')
{
x=x+320000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}

}
}
else
{
cout<<"\nOk enter the choice then\n\n";
cin>>ch[8];
if(ch[8]=='b')
{
x=x+320000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}}

cout<<"\n Q9.The Delhi-Lahore bus inauguarated by Sri Atal Bihari Vajpayee


officially known as\n";
cout<<"\n a.Bada-e-sarhad";
cout<<"\n b.sahee-seema";
cout<<"\n c.sada-e-sarhad";
cout<<"\n d.videshi dosti";
cout<<"\nWill you take the lifeline\n";
cout<<"\nY OR N\n ";
cin>>choice;
if(choice=='Y'&&count==0)
{ cout<<"\n1.50:50\n";
cin>>choose;
if(choose==1)
{
cout<<"\nOk then enter your choice then\n";
cin>>ch[9];
cout<<"\n Q9.The Delhi-Lahore bus inauguarated by Sri Atal Bihari Vajpayee
officially known as\n";
cout<<"\n c.sada-e-sarhad";
cout<<"\n d.videshi dosti\n";
cin>>ch[9];
count=1;
if(ch[9]=='c')
{
x=x+610000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}

}
}
else
{cout<<"\nOk enter the choice then\n\n";
cin>>ch[9];
if(ch[9]=='c')
{
x=x+610000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}}

cout<<"\n Q10.Which one among the following didnot awarded with the noble
prize\n";
cout<<"\n a.Aage Bohr";
cout<<"\n b.Dimitri Mendeleev";
cout<<"\n c.J.J Thomson";
cout<<"\n d.Erwin Schrodinger";
cout<<"\nWill you take the lifeline\n";
cout<<"\nY OR N\n ";
cin>>choice;
if(choice=='Y'&&count==0)
{ cout<<"\n1.50:50\n";
cin>>choose;
if(choose==1)
{
cout<<"\n Q10.Which one among the following didnot awarded with the noble
prize\n";
cout<<"\n b.Dimitri Mendeleev";
cout<<"\n d.Erwin Schrodinger\n";
cin>>ch[10];
count=1;
if(ch[10]=='b')
{
x=x+1250000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}

}
}
else
{cout<<"\nOk enter the choice then\n\n";
cin>>ch[10];
if(ch[10]=='b')
{
x=x+1250000;
cout<<"\n Good Job.";
cout<<"\n Your score is "<<x;
}
else
{
cout<<"\n Sorry wrong answer.";
goto abc;
}}
abc:
if(x==2500000)
{
cout<<"\n No cheating...... "<<name<<" you have done this earlier
also.";
cout<<"\ncongratulation you are the winner of kbc\n";
cout<<"\nYou have made the history\n";
cout<<"\nYou have won 2500000";
break;
}
if(x==1250000)
{
cout<<"\n "<<name<<" you are extremely intelligent.";
cout<<"\n Your have won 1250000";
}
if(x==640000)
{
cout<<"\n "<<name<<" you are intelligent.";
cout<<"\n Your Score is 640000";
}
if(x==320000)
{
cout<<"\n "<<name<<" you are good and good luck for the next time";
cout<<"\nYou have won 320000";
}
if(x==160000)
{ cout<<"\n "<<name<<"\n ";
cout<<"\nOk well played you could have played even better ";
cout<<"\nYou won 160000 ";
}
if(x==80000)
{ cout<<"\n "<<name<<"\n ";
cout<<"\nOk better luck next time and do well ";
cout<<"\nYou won 80000 ";
}
if(x==40000)
{ cout<<"\n "<<name<<"\n ";
cout<<"\nOh sorry you could have used the lifeline properly ";
cout<<"\nYou won 40000 ";

}
if(x==20000)
{
cout<<"\n "<<name<<"\n ";
cout<<"\n You won 20000";
}
if(x==10000)
{
cout<<"\n "<<name<<"\n ";
cout<<"\nExtremely helpless better luck next time ";
cout<<"\nYou won 10000";
}
if(x==5000)
{
cout<<"\n "<<name<<"\n ";
cout<<"\n Oh sorry you could have think and answer the question ";
cout<<"\nYou won 5000";

}
if(x==0)
{
cout<<"\n "<<name<<"\n ";
cout<<"\nYou won nothing you could have choosen lifeline ";
}
cout<<"\n\n\n Do you want to play again?(y/n)";
cin>>ch[11];

}
while(ch[11]=='Y'||ch[11]=='y');
}

Anda mungkin juga menyukai