Home > C++ > C++ Project on Quiz

C++ Project on Quiz

Download Project
Share Facebook Twitter Orkut SMS

Quiz

#include<iostream .h>
#include<ctype .h>
#include<string .h>
#include<conio .h>
#include<stdio .h>
#include<stdlib .h>
class quiz
{ public :
void set1();
void ques1();
void ques2();
void ques3();
void ques4();
void ques5();
void ques6();
void ques7();
void ques8();
void ques9();
void ques10();
void ques11();
void ques12();
void ques13();
void ques14();
void ques15();
void fifty1();
void fifty2();
void fifty3();
void fifty4();
void fifty5();
void fifty6();
void fifty7();
void fifty8();
void fifty9();
void fifty10();
void fifty11();
void fifty12();
void fifty13();
void fifty14();
void fifty15();
}s1;
class quiz2
{ public :
void set2();
void ques1();
void ques2();
void ques3();
void ques4();
void ques5();
void ques6();
void ques7();
void ques8();
void ques9();
void ques10();
void ques11();
void ques12();
void ques13();
void ques14();
void ques15();
void fifty1();
void fifty2();
void fifty3();
void fifty4();
void fifty5();
void fifty6();
void fifty7();
void fifty8();
void fifty9();
void fifty10();
void fifty11();
void fifty12();
void fifty13();
void fifty14();
void fifty15();
}s2;
long int pts;
int t=0,flag=0;
char ans[1],w;
//******************* MAIN PART ****************
void main()
{
clrscr();
int age,q;
char name[30];
gotoxy(20,10);
cout< <"\n THIS IS A QUIZ GAME ";
cout<<"\n\n\n FIRST ANSWER THE ELIGIBLE QUESTION TO PLAY THE GAME";
 
cout<<"\nEnter the name:-";
gets(name);
cout<<"\nEnter the age:-";
cin>>age;
if(age>=25 && age< =35)
  {
  q=1;
  }
if(age>35 && age< =45)  {
  q=2;
  }
if(age>45 && age< =55)
  {
  q=3;
  }
switch(q)
  {
  case 1: s1.set1();
	  break;
  case 2: s2.set2();
	 break;
  default : cout<<"\aError";
 
  }
  getch();
}
//*************** END OF MAIN **********************
 
//******** SET 1
void quiz::set1()
	{
	clrscr();
	cout<<"\n This is your eligibility question ";
	cout<<"\n\n\n\nIn computer,what is 1 gigabyte?";
	cout<<"\n(a)1024*2 bytes"<<"\t(b)1024*1024*1024 bytes";
	cout<<"\n(c)1024*3 bytes"<<"\t(d)NONE OF THESE";
	char rs[]="b";
	cout<<"\nEnter your answer :- ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	  {
	  clrscr();
	  cout< <"\nYou have qualified";
	  gotoxy(20,10);
	  cout<<"\n***********************************";
	  cout<<"\n**WELCOME TO THIS GRAND QUIZ SHOW**";
	  cout<<"\n***********************************";
	  cout<<"\n\n\n\nHERE YOU WILL BE ASKED A QUESTION & FOUR OPTIONS ";
	  cout<<"\nWILL BE THERE, IN WHICH THREE ARE WRONG AND ONLY ONE";
	  cout<<"\nIS CORRECT.YOU HAVE TO GIVE THE CORRECT ANSWER ";
	  cout<<"\nYOU HAVE A 50 - 50 HELP LINE IN WHICH THERE WILL BE ";
	  cout<<"\nONLY TWO OPTIONS OF WHICH ONLY ONE IS CORRECT. YOU";
	  cout<<"\nHAVE TO GIVE THE CORRECT ANSWER.ANY WRONG ANSWER MEANS YOU ";
	  cout<<"\nFINISH THE GAME THERE ONLY. ";
	  cout<<"\n******** YOU CAN TAKE ONLY THREE HELP LINES *********";
	  cout<<"\n\n\n\n\nPRESS ENTER TO START THE GAME ";
	  getch();
	  s1.ques1();
	  }
	else
	  {
	  cout<<"\aUNSUCESSFUL\a";
	  cout<<"\n\n\t\t BETTER LUCK NEXT TIME ";
	  getch();
	  }
	}
 
 
 
//************** QUESTION 1
     void quiz::ques1()
	{
	clrscr();
	cout<<"\nWhat do you mean by Hexadecimal in computer?";
	cout<<"\n(a)With a base of 16"<<"\t(b)With a base of 6";
	cout<<"\n(c)With a base of 8"<<"\t(d)NONE OF THESE";
	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 your answer :- ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	  {
	  pts=1000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
	  s1.ques2();
	  }
	 else
	  {
	  cout<<"\aUNSUCESSFUL\a";
	  getch();
	  }
       }
       void quiz::fifty1()
		{
		clrscr();
		cout<<"\nWhat do you mean by Hexadecimal in computer?";
		cout<<"\n(a)With a base of 16"<<"\t(b)With a base of 6";
		}
 
       //******** QUESTION 2
	void quiz::ques2()
	{
	clrscr();
	cout<<"\nWho has written the book 'DIVINE LIFE?";
	cout<<"\n(a)Charles Dickens"<<"\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 your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	{
	  pts=2000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
	s1.ques3();
	}
	else
	{
	cout<<"\aUNSUCCESFUL\a";
		}
	}
	void quiz::fifty2()
	{
	clrscr();
	cout<<"\nWho has written the book 'DIVINE LIFE?";
	cout<<"\n(c)Swami Sivananda"<<"\t(d)Karl Marx";
	}
 
 
//******Question 3
	void quiz::ques3()
	{
	clrscr();
	cout<<"\nWho has written the book'ONE LIFE'?";
	cout<<"\n(a)Christian Barnard"<<"\t(b)Wendell Wilkie";
	cout<<"\n(c)William Wordsworth"<<"\t(d)Charles Darwin";
       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 your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	{
	   pts=3000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
	s1.ques4();
	}
	else
	{
	cout<<"\aUNSUCCESFUL\a";
		}
	}
	void quiz::fifty3()
	{
	clrscr();
	cout<<"\nWho has written the book'ONE LIFE'?";
	cout<<"\n(a)Christian Barnard"<<"\n(c)William Wordsworth";
	}
 
//**********Question 4
       void quiz::ques4()
	{
	clrscr();
	cout<<"\nWhich game is associate with 'YONEX CUP'?";
	cout<<"\n(a)Golf"<<"\t(b)Baseball";
	cout<<"\n(c)Yatch Racing"<<"\t(d)Badminton";
	char rs[]="d";
	if(flag&lt;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 your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	{
	  pts=5000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	s1.ques5();
	}
	else
	{
	cout<<"\aUNSUCCESFUL\a";
		}
	}
	void quiz::fifty4()
	{
	clrscr();
	cout<<"\nWhich game is associate with 'YONEX CUP'?";
	cout<<"\n(a)Golf"<<"\t(d)Badminton";
	}
 
//Question 5
	void quiz::ques5()
	{
	clrscr();
	cout<<"\nWho invented 'MECHANICAL CLOCK'?";
	cout<<"\n(a)C.Hugyens"<<"\t(b)Samuel Colt";
	cout<<"\n(c)Hsing and Ling-Tsan"<<"\t(d)Wilhelm Roentgen";
	char rs[]="c";
	if(flag&lt;3)
	{
	cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	cin>>w;
 
	if(w=='Y'||w=='y')
	{
	flag++;
	s1.fifty5();
	}
	}
	cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	{
	 pts=10000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
 
	s1.ques6();
	}
	else
	{
	cout<<"\aUNSUCCESFUL\a";
		}
	}
	void quiz::fifty5()
	{
	clrscr();
	cout<<"\nWho invented 'MECHANICAL CLOCK'?";
	cout<<"\n\t(b)Samuel Colt"<<"\n(c)Hsing and Ling-Tsan";
	}
 
//Question 6
	void quiz::ques6()
	{
	clrscr();
	cout<<"\nWho invented 'ELECTRIC RAZOR'?";
	cout<<"\n(a)K.G.Gillet1e"<<"\t(b)Viscose Co.";
	cout<<"\n(c)L.C.Young"<<"\t(d)Col.J.Schick";
	char rs[]="d";
	if(flag&lt;3)
	{
	cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	cin>>w;
 
	if(w=='Y'|| w=='y')
	{
	flag++;
	s1.fifty6();
	}
	}
	cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	{
	  pts=20000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	s1.ques7();
	}
	else
	{
	cout<<"\aUNSUCCESFUL\a";
		}
	}
	void quiz::fifty6()
	{
	clrscr();
	cout<<"\nWho invented 'ELECTRIC RAZOR'?";
	cout<<"\n\t(b)Viscose Co."<<"\n\t(d)Col.J.Schick";
	}
 
//Question 7
	void quiz::ques7()
	{
	clrscr();
	cout<<"\nWho invented 'WATERPROOF RUBBER'?";
	cout<<"\n(a)A.Catlin"<<"\t(b)Charles GoodYear";
	cout<<"\n(c)J.Harrison"<<"\t(d)Charles Macintosh";
	char rs[]="b";
	if(flag&lt;3)
	{
	cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	cin>>w;
 
	if(w=='Y'||w=='y')
	{
	flag++;
	s1.fifty7();
	}
	}
	cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	{
	  pts=40000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	s1.ques8();
	}
	else
	{
	cout<<"\aUNSUCCESFUL\a";
		}
	}
	void quiz::fifty7()
	{
	clrscr();
	cout<<"\nWho invented 'WATERPROOF RUBBER'?";
	cout<<"\n\t(b)Charles GoodYear"<<"\n\t(d)Charles Macintosh";
	}
//Question 8
	void quiz::ques8()
	 {
	 clrscr();
cout<<"\nWhere the disease named 'GLAUCOMA' is affected in the human body?";
	 cout<<"\n(a)Skin"<<"\t(b)Eyes"<<"\n(c)Spleen"<<"\t(d)blood";
	 char rs[]="b";
	 if(flag&lt;3)
	 {
	 cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	 cin>>w;
 
	 if(w=='Y'||w=='y')
	  {
	  flag++;
	  s1.fifty8();
	  }
	  }
	cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
		{
	  pts=80000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
		s1.ques9();
		}
	 else
		{
		cout<<"\aUNSUCCESFUL\a";
			}
	}
	void quiz::fifty8()
		{
		clrscr();
cout<<"\nWhere the disease named 'GLAUCOMA' is affected in the human body?";
		cout<<"\n\t(b)Eyes"<<"\n(c)Spleen";
		}
//Question 9
	void quiz::ques9()
	 {
	 clrscr();
cout<<"\nWhen was Abrahim Lincoln was re-elected as president of U.S.?";
	 cout<<"\n(a)1864"<<"\t(b)1814"<<"\n(c)1865"<<"\t(d)1819";
	 char rs[]="a";
	 if(flag&lt;3)
	 {
	 cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	 cin>>w;
 
	 if(w=='Y' || w=='y')
	   {
	   flag++;
	   s1.fifty9();
	   }
	   }
	   cout< <"\n Please give your answer ";
	   cin>>ans;
	   strlwr(ans);
	   t=strcmp(ans,rs);
	   if(t==0)
	       {
	  pts=160000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	       s1.ques10();
	       }
	   else
	       {
	       cout<<"\aUNSUCESSFUL\a";
	       }
	   }
void quiz::fifty9()
  {
  clrscr();
  cout<<"\nWhen was Abrahim Lincoln was re-elected as president of U.S.?";
  cout<<"\n(a)1864"<<"\n(c)1865";
  }
 
//Question 10
       void quiz::ques10()
       {
	clrscr();
cout<<"\nFormer prime minister 'Charan singh' was ";
cout<<"related to which political party?";
	cout<<"\n(a)Janata dal"<<"\t(b)Lok dal";
	cout<<"\n(c)Congress"<<"\t(d)A.I.A.D.M.K.";
	char rs[]="b";
	if(flag&lt;3)
	{
	cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	cin>>w;
 
	if(w=='Y' || w=='y')
	    {
	    flag++;
	    s1.fifty10();
	    }
	    }
	cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	  {
	  pts=320000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	  s1.ques11();
	  }
	else
	   {
	   cout<<"\aUNSUCESSFUL\a";
	   }
	}
void quiz::fifty10()
	{
	clrscr();
cout<<"\nFormer prime minister 'Charan singh' was related";
cout<<"to which political party?";
	cout<<"\n(a)Janata dal"<<"\t(b)Lok dal";
	}
 
//Question 11
	void quiz::ques11()
	{
	clrscr();
	cout<<"\nWhat was the invention of 'Edward Jenner?";
	cout<<"\n(a)BCG vaccine"<<"\t(b)Small-pox vaccine";
	cout<<"\n(c)ECG vaccine"<<"\t(d)NONE of THOESE";
	char rs[]="b";
	if(flag&lt;3)
	{
	cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	cin>>w;
 
	if(w=='Y' || w=='y')
	{
	flag++;
	s1.fifty11();
	}
	}
	cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	  {
	  pts=640000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	  s1.ques12();
	  }
	else
	  {
	  cout<<"\aUNSUCESSFUL\a";
	  }
	}
void quiz::fifty11()
	{
	clrscr();
	cout<<"\nWhat was the invention of 'Edward Jenner?";
	cout<<"\n\t(b)Small-pox vaccine"<<"\n(c)ECG vaccine";
	}
//Question 12
  void quiz::ques12()
  {
  clrscr();
  cout<<"\nWhich mirror is used as rear view mirror in vechicles?";
  cout<<"\n(a)Plain"<<"\t(b)Convex"<<"\n(c)Concave"<<"\t(d)Spherical";
  char rs[]="b";
  if(flag&lt;3)
  {
  cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
  cin>>w;
 
  if(w=='Y' || w=='y')
    {
    flag++;
    s1.fifty12();
    }
    }
   cout< <"\n Please give your answer ";
   cin>>ans;
   strlwr(ans);
   t=strcmp(ans,rs);
   if(t==0)
	{
	 pts=1250000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	s1.ques13();
	}
   else
	{
	cout<<"\aUNSUCESSFUL\a";
	}
  }
    void quiz::fifty12()
      {
      clrscr();
      cout<<"\nWhich mirror is used as rear view mirror in vechicles?";
      cout<<"\n(b)Convex"<<"\t\n(c)Concave";
      }
 
//Question 13
   void quiz::ques13()
     {
     clrscr();
     cout<<"\nThe scientist who shared the 'Nobel Prize' in";
     cout<<" physics with his son was";
     cout<<"\n(a)Henri Antonie Becquerel"<<"\t(b)Pierre curie";
     cout<<"\n(c)Louis de Broglie"<<"\t(d)W.H.Bragg";
     char rs[]="a";
     if(flag&lt;3)
     {
     cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
     cin>>w;
 
     if(w=='Y' || w=='y')
	{
	flag++;
	s1.fifty13();
	}
	}
    cout< <"\n Please give your answer ";
    cin>>ans;
    strlwr(ans);
    t=strcmp(ans,rs);
    if(t==0)
	{
	 pts=2500000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	s1.ques14();
	}
    else
	{
	cout<<"\aUNSUCESSFUL\a";
	}
      }
void quiz::fifty13()
  {
  clrscr();
  cout<<"\nThe scientist who shared the 'Nobel Prize' in physics ";
  cout<<"with his son was";
  cout<<"\n(a)Henri Antonie Becquerel"<<"\n\t(d)W.H.Bragg";
  }
 
// Question 14
void quiz::ques14()
   {
   clrscr();
   cout<<"\nVitamin b is produced by termination of sugar and starches by";
   cout<<"\n(a)Clostridum Botulinum"<<"\t(b)Clostridum Butyricum";
   cout<<"\n(c)Chostridum Acetobutylicum"<<"\t(d)Clostridum Pasteroianum";
   char rs[]="a";
   if(flag&lt;3)
   {
   cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
   cin>>w;
 
   if(w=='Y' || w=='y')
      {
      flag++;
      s1.fifty14();
      }
      }
     cout< <"\n Please give your answer ";
     cin>>ans;
     strlwr(ans);
	  t=strcmp(ans,rs);
	  if(t==0)
		{
		 pts=5000000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
 
		s1.ques15();
		}
	  else
		{
		cout<<"\aUNSUCESSFUL\a";
		getch();
		}
		}
 
      void quiz::fifty14()
	{
	 clrscr();
cout<<"\nVitamin b is produced by termination of sugar and starches by";
	 cout<<"\n(a)Clostridum Botulinum"<<"\t(b)Clostridum Butyricum";
	 }
//Question 15
	void quiz::ques15()
	{
	clrscr();
	cout<<"\nThe agriculture scientist to be awarded the";
	cout<<" 'Nobel Peace Prize' in 1970 was";
	cout<<"\n(a)Dr.M.S.Swaminathan"<<"\t(b)Dr.Norman Ernest Borlaug";
	cout<<"\n(c)Dr.Kurt Waldheim"<<"\t(d)Dr.James Watson";
	char rs[]="b";
	if(flag&lt;3)
	{
	cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	cin>>w;
 
	if(w=='Y'||w=='y')
		{
		flag++;
		s1.fifty15();
		}
		}
      cout< <"\n Please give your answer ";
      cin>>ans;
      strlwr(ans);
      t=strcmp(ans,rs);
      if(t==0)
      {
       pts=10000000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	    getch();
 
      clrscr();
      cout<<"\n**********************************************";
      cout<<"\nCONGRATULATIONS YOU HAVE COMPLETED THE FULL SET ";
      cout<<"\n**********************************************";
	    }
      else
      {
      cout<<"\aUNSUCESSFUL\a";
      }
       }
 
void quiz::fifty15()
       {
       clrscr();
       cout<<"\nThe agriculture scientist to be awarded the";
       cout<<" 'Nobel Peace Prize' in 1970 was";
       cout<<"\t\n(b)Dr.Norman Ernest Borlaug"<<"\n(c)Dr.Kurt Waldheim";
       }
       //******** SET 2
//flag=0;
void quiz2::set2()
	{
	clrscr();
	cout<<"\n This is your eligibility question ";
	cout<<"\n\n\n\nThe Provisional Government of Independent ";
	cout<<"India was formed at...?";
	cout<<"\n(a)Tokyo"<<"\t(b)Singapore";
	cout<<"\n(c)Jakarta"<<"\t(d)Kuala Lumpur";
	char rs[]="b";
	cout<<"\nEnter your answer :- ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	  {
	  clrscr();
	  cout< <"\nYou have qualified";
	  gotoxy(20,10);
	  cout<<"\n***********************************";
	  cout<<"\n**WELCOME TO THIS GRAND QUIZ SHOW**";
	  cout<<"\n***********************************";
	  cout<<"\n\n\n\nHERE YOU WILL BE ASKED A QUESTION & FOUR OPTIONS ";
	  cout<<"\nWILL BE THERE, IN WHICH THREE ARE WRONG AND ONLY ONE";
	  cout<<"\nIS CORRECT.YOU HAVE TO GIVE THE CORRECT ANSWER ";
	  cout<<"\nYOU HAVE A 50 - 50 HELP LINE IN WHICH THERE WILL BE ";
	  cout<<"\nONLY TWO OPTIONS OF WHICH ONLY ONE IS CORRECT. YOU";
	  cout<<"\nHAVE TO GIVE THE CORRECT ANSWER.ANY WRONG ANSWER MEANS YOU ";
	  cout<<"\nFINISH THE GAME THERE ONLY. ";
	  cout<<"\n******** YOU CAN TAKE ONLY THREE HELP LINES *********";
	  cout<<"\n\n\n\n\nPRESS ENTER TO START THE GAME ";
	  getch();
	  s2.ques1();
	  }
	else
	  {
	  cout<<"\aUNSUCESSFUL BETTER LUCK NEXT TIME \a";
	  getch();
	  }
	}
 
 
 
//************** QUESTION 1
     void quiz2::ques1()
	{
	clrscr();
	cout<<"\nThe British Viceroy who took a number of measures for";
cout<<"\npreserving ancient buildings and monuments in India was...?";
	cout<<"\n(a)Lord Rippon"<<"\t(b)Lord Curzon";
	cout<<"\n(c)Lord Minto"<<"\t(d)Lord Irwin";
	char rs[]="d";
	cout<<"\nDO YOU WANT 50/50 LIFELINE (Y/N) ";
	cin>>w;
	if(w=='Y'|| w=='y')
	  {
	  flag++;
	  s2.fifty1();
	  }
	cout< <"\n Please give your answer :- ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	  {
	  pts=1000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
	  s2.ques2();
	  }
	 else
	  {
	  cout<<"\aUNSUCESSFUL\a";
	  getch();
	  }
       }
       void quiz2::fifty1()
		{
		clrscr();
cout<<"\nThe British Viceroy who took a number of measures for ";
cout<<"preserving ancient buildings and monuments in India was...?";
		cout<<"\t(b)Lord Curzon"<<"\t(d)Lord Irwin";
		 }
 
       //******** QUESTION 2
	void quiz2::ques2()
	{
	clrscr();
	cout<<"\nThe name of the bird sancuary at Bharatpur is....?";
	cout<<"\n(a)Bhansrod Garh sanctuary"<<"\t(b)Darrah Sanctuary";
	cout<<"\n(c)Ghana Sanctuary"<<"\t(d)Ghatprabha Sanctuary";
	char rs[]="c";
	cout<<"\nDO YOU WANT 50/50 LIFELINE (Y/N)";
	cin>>w;
 
	if(w=='Y'||w=='y')
	{
	flag++;
	s2.fifty2();
	}
		cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	{
	  pts=2000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
	s2.ques3();
	}
	else
	{
	cout<<"\aUNSUCCESFUL\a";
		}
	}
	void quiz2::fifty2()
	{
	clrscr();
	cout<<"\nThe name of the bird sancuary at bharatpur is....?";
	cout<<"\n(a)Bhansrod Garh sanctuary"<<"\n(c)Ghana Sanctuary";
 
		}
 
 
//******Question 3
	void quiz2::ques3()
	{
	clrscr();
	cout<<"\nWho is known as the 'Father of Geometry'?";
cout<<"\n(a)Kepler"<<"\t(b)Euclid"<<"\n(c)Pythagoras"<<"\t(d)Newton";
       char rs[]="b";
	cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	cin>>w;
 
	if(w=='Y'||w=='y')
	{
	flag++;
	s1.fifty3();
	}
	cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	{
	   pts=3000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
	s2.ques4();
	}
	else
	{
	cout<<"\aUNSUCCESFUL\a";
		}
	}
	void quiz2::fifty3()
	{
	clrscr();
		cout<<"\nWho is known as the 'Father of Geometry'?";
	cout<<"\n(b)Euclid"<<"\n(c)Pythagoras";
 
 
	}
 
//**********Question 4
       void quiz2::ques4()
	{
	clrscr();
	cout<<"\nHow many centuries did Sachin score against Kenya ?";
	cout<<"\n(a)2"<<"\t(b)3"<<"\n(c)6"<<"\t(d)4";
	char rs[]="d";
	if(flag&lt;3)
	{
	flag++;
	cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	cin>>w;
 
	if(w=='Y'||w=='y')
	{
	flag++;
	s2.fifty4();
	}
	}
	cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	{
	  pts=5000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	s2.ques5();
	}
	else
	{
	cout<<"\aUNSUCCESFUL\a";
		}
	}
	void quiz2::fifty4()
	{
	clrscr();
	cout<<"\nHow many centuries did Sachin score against Kenya ?";
	cout<<"\n(c)6"<<"\n(d)4";
	}
 
//Question 5
	void quiz2::ques5()
	{
	clrscr();
	cout<<"\nThe disease caused in apple by bacteria is...?";
	cout<<"\n(a)Wild fire disease" <<"\t(b)Black rot disease";
	cout<<"\n(c)Ring disease"<<"\t(d)Fire blight disease";
	char rs[]="d";
	if(flag&lt;3)
	{
	cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	cin>>w;
 
	if(w=='Y'||w=='y')
	{
	flag++;
	s2.fifty5();
	}
	}
	cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	{
	 pts=10000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
 
	s2.ques6();
	}
	else
	{
	cout<<"\aUNSUCCESFUL\a";
		}
	}
	void quiz2::fifty5()
	{
	clrscr();
		cout<<"\nThe disease caused in apple by bacteria is...?";
	cout<<"\n(a)Wild fire disease" <<"\t(d)Fire blight disease";
	  }
 
//Question 6
	void quiz2::ques6()
	{
	clrscr();
cout<<"\nBlood calcium level can be increased by administration of.... ?";
	cout<<"\n(a)Glucagon"<<"\t(b)Parathormone";
	cout<<"\n(c)Thyroxine"<<"\t(d)Calcitonin";
	char rs[]="b";
	if(flag&lt;3)
	{
	cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	cin>>w;
 
	if(w=='Y'|| w=='y')
	{
	flag++;
	s2.fifty6();
	}
	}
	cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	{
	  pts=20000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	s2.ques7();
	}
	else
	{
	cout<<"\aUNSUCCESFUL\a";
		}
	}
	void quiz2::fifty6()
	{
	clrscr();
 
cout<<"\nBlood calcium level can be increased by administration of.... ?";
	cout<<"\t(b)Parathormone"<<"\n(c)Thyroxine";
 
 
	}
 
//Question 7
	void quiz2::ques7()
	{
	clrscr();
	cout<<"\nAn element E from a solid oxide which dissolves";
cout<<"\nin water to give an acidic solution, the element-E is....?";
	cout<<"\n(a)H"<<"\t(b)P"<<"\n(c)Mg"<<"\t(d)N";
	char rs[]="b";
	if(flag&lt;3)
	{
	cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	cin>>w;
 
	if(w=='Y'||w=='y')
	{
	flag++;
	s2.fifty7();
	}
		}
	cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	{
	  pts=40000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	s2.ques8();
	}
	else
	{
	cout<<"\aUNSUCCESFUL\a";
		}
	}
	void quiz2::fifty7()
	{
	clrscr();
cout<<"\nAn element E from a solid oxide which dissolves in water";
cout<<" to give an acidic solution, the element-E is....?";
	cout<<"\n(b)P"<<"\n(c)Mg";
	}
 
 
//Question 8
	void quiz2::ques8()
	 {
	 clrscr();
	 cout<<"\nEzra Cup is associated with which sports?";
	 cout<<"\n(a)Rowing"<<"\t(b)Golf"<<"\n(c)Air races"<<"\t(d)polo";
	 char rs[]="d";
	 if(flag&lt;3)
	 {
	 cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	 cin>>w;
 
	 if(w=='Y'||w=='y')
	  {
	  flag++;
	  s2.fifty8();
	  }
	  }
	cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
		{
	  pts=80000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
		s2.ques9();
		}
	 else
		{
		cout<<"\aUNSUCCESFUL\a";
			}
	}
	void quiz2::fifty8()
		{
		clrscr();
		cout<<"\nEzra Cup is associated with which sports?";
		cout<<"\n(c)Air races"<<"\n(d)polo";
		}
//Question 9
	void quiz2::ques9()
	 {
	 clrscr();
	 cout<<"\nThe headquaters of ILO is located in...?";
 cout<<"\n(a)Geneva"<<"\t(b)The Hague"<<"\n(c)New York"<<"\t(d)Rome";
	 char rs[]="a";
	 if(flag&lt;3)
	 {
	 cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	 cin>>w;
 
	 if(w=='Y' || w=='y')
	   {
	   flag++;
	   s2.fifty9();
	   }
	   }
	   cout< <"\n Please give your answer ";
	   cin>>ans;
	   strlwr(ans);
	   t=strcmp(ans,rs);
	   if(t==0)
	       {
	  pts=160000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	       s2.ques10();
	       }
	   else
	       {
	       cout<<"\aUNSUCESSFUL\a";
	       }
	   }
void quiz2::fifty9()
  {
  clrscr();
   cout<<"\nThe headquaters of ILO is located in...?";
	 cout<<"\n(a)Geneva"<<"\t(b)The Hague";
 
  }
 
//Question 10
       void quiz2::ques10()
       {
	clrscr();
	cout<<"\nWhat is October 8th celebrated for...?";
	cout<<"\n(a)Army Day"<<"\t(b)U.N.O Day";
	cout<<"\n(c)Airforce Day"<<"\t(d)Navy Day";
	char rs[]="c";
	if(flag&lt;3)
	{
	cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	cin>>w;
 
	if(w=='Y' || w=='y')
	    {
	    flag++;
	    s2.fifty10();
	    }
	    }
	cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	  {
	  pts=320000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	  s2.ques11();
	  }
	else
	   {
	   cout<<"\aUNSUCESSFUL\a";
	   }
	}
void quiz2::fifty10()
	{
	clrscr();
		cout<<"\nWhat is October 8th celebrated for...?";
	cout<<"\n(c)Airforce Day"<<"\t(d)Navy Day";
 
	}
 
//Question 11
	void quiz2::ques11()
	{
	clrscr();
	cout<<"\nWhat is the National emblem of Denmark?";
	cout<<"\n(a)Lily"<<"\t(b)Rose"<<"\n(c)Beach"<<"\t(d)Eagle";
	char rs[]="c";
	if(flag&lt;3)
	{
	cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	cin>>w;
 
	if(w=='Y' || w=='y')
	{
	flag++;
	s2.fifty11();
	}
	}
	cout< <"\n Please give your answer ";
	cin>>ans;
	strlwr(ans);
	t=strcmp(ans,rs);
	if(t==0)
	  {
	  pts=640000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	  s2.ques12();
	  }
	else
	  {
	  cout<<"\aUNSUCESSFUL\a";
	  }
	}
void quiz2::fifty11()
	{
	clrscr();
		cout<<"\nWhat is the National emblem of Denmark?";
	cout<<"\n(b)Rose"<<"\n(c)Beach";
 
	}
//Question 12
  void quiz2::ques12()
  {
  clrscr();
  cout<<"\nIn which sports the word 'cue' is used?";
  cout<<"\n(a)Glof"<<"\t(b)Chess"<<"\n(c)Hockey"<<"\t(d)Billiards";
    char rs[]="d";
  if(flag&lt;3)
  {
  cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
  cin>>w;
 
  if(w=='Y' || w=='y')
    {
    flag++;
    s2.fifty12();
    }
    }
   cout< <"\n Please give your answer ";
   cin>>ans;
   strlwr(ans);
   t=strcmp(ans,rs);
   if(t==0)
	{
	 pts=1250000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	s2.ques13();
	}
   else
	{
	cout<<"\aUNSUCESSFUL\a";
	}
  }
    void quiz2::fifty12()
      {
      clrscr();
	cout<<"\nIn which sports the word 'cue' is used?";
	cout<<"\n(a)Glof"<<"\n(d)Billiards";
      }
 
//Question 13
   void quiz2::ques13()
     {
     clrscr();
     cout<<"\nWhat for  the October 13th is  celebrated";
     cout<<"\n(a)World Thrift Day"<<"\t(b)World proverty Day";
cout<<"\n(c)World diasaster reduction Day"<<"\t(d)World Standards Day";
     char rs[]="c";
     if(flag&lt;3)
     {
     cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
     cin>>w;
 
     if(w=='Y' || w=='y')
	{
	flag++;
	s2.fifty13();
	}
	}
    cout< <"\n Please give your answer ";
    cin>>ans;
    strlwr(ans);
    t=strcmp(ans,rs);
    if(t==0)
	{
	 pts=2500000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
	s2.ques14();
	}
    else
	{
	cout<<"\aUNSUCESSFUL\a";
	}
      }
void quiz2::fifty13()
  {
  clrscr();
    cout<<"\nWhat for  the October 13th is  celebrated";
     cout<<"\t(b)World proverty Day"<<"\n(c)World diasaster reduction Day";
 
    }
 
// Question 14
void quiz2::ques14()
   {
   clrscr();
   cout<<"\nHow many wickets did country walsh has been taken in";
   cout<<" his test carrer";
   cout<<"\n(a)512"<<"\t(b)434"<<"\n(c)519"<<"\t(d)524";
   char rs[]="c";
   if(flag&lt;3)
   {
   cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
   cin>>w;
 
   if(w=='Y' || w=='y')
      {
      flag++;
      s2.fifty14();
      }
      }
     cout< <"\n Please give your answer ";
     cin>>ans;
     strlwr(ans);
	  t=strcmp(ans,rs);
	  if(t==0)
		{
		 pts=5000000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	  cout<<"\nPRESS ANY KEY FOR THE NEXT QUESTION ";
	  getch();
 
 
		s2.ques15();
		}
	  else
		{
		cout<<"\aUNSUCESSFUL\a";
		getch();
		}
		}
 
      void quiz2::fifty14()
	{
	 clrscr();
cout<<"\nHow many wickets did country walsh has been taken ";
cout<<"in his test carrer";
   cout<<"\n(a)512"<<"\n(c)519";
 
	 }
//Question 15
	void quiz2::ques15()
	{
	clrscr();
	cout<<"\n18 carat Gold contains....";
	cout<<"\n(a)18% gold"<<"\t(b)24% gold";
	cout<<"\n(c)75% gold"<<"\t(d)60% gold";
	char rs[]="c";
	if(flag&lt;3)
	{
	cout<<"\nDO YOU WANT 50/50 LIFELINE(Y/N)";
	cin>>w;
 
	if(w=='Y'||w=='y')
		{
		flag++;
		s2.fifty15();
		}
		}
      cout< <"\n Please give your answer ";
      cin>>ans;
      strlwr(ans);
      t=strcmp(ans,rs);
      if(t==0)
      {
       pts=10000000;
	  gotoxy(50,22);
	  cout< <" YOUR SCORE IS :- "<<pts;
	    getch();
 
      clrscr();
      cout<<"\n**********************************************";
      cout<<"\nCONGRATULATIONS YOU HAVE COMPLETED THE FULL SET ";
      cout<<"\n**********************************************";
	    }
      else
      {
      cout<<"\aUNSUCESSFUL\a";
      }
      }
void quiz2::fifty15()
       {
       clrscr();
	cout<<"\n18 carat Gold contains....";
	cout<<"\n(a)18% gold"<<"\t(b)24% gold";
	cout<<"\n(c)75% gold"<<"\t(d)60% gold";
	}

  1. No comments yet.
  1. No trackbacks yet.