Guest User

Untitled

a guest
Dec 27th, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 73.60 KB | None | 0 0
  1. #include<iostream.h>
  2. #include<string.h>
  3. #include<stdio.h>
  4. #include<conio.h>
  5. #include<iomanip.h>
  6. #include<fstream.h>
  7. using namespace std;
  8. fstream s1;
  9. fstream s2;
  10. class quiz
  11. {
  12. int amount,total,gkscore,mathscore,option,i,a,score;
  13. char phoneno[25];
  14. char name[25],place[30];
  15. public:
  16. void get_info();
  17. void rules();
  18. int gkscores();
  19. int mathscores();
  20. void gk(int i);
  21. void maths(int i);
  22. void display();
  23. };
  24. void quiz::get_info()
  25. {
  26. cout<<"*****************************INFORMATION****************************************\n";
  27. cout<<"\nBefore starting we would like to know some informations about you."<<endl;
  28. cin.get();
  29. cout<<"Your name:"<<endl;
  30. gets(name);
  31. cout<<"Your place:"<<endl;
  32. gets(place);
  33. cout<<"Your phone number:"<<endl;
  34. cin>>phoneno;
  35. cout<<"********************************************************************************\n";
  36. }
  37. void quiz::display()
  38. {
  39. cout<<"*****************************INFORMATION****************************************\n";
  40. puts(name);
  41. puts(place);
  42. cout<<phoneno<<endl;
  43. }
  44. void quiz::rules()
  45. {
  46. cout<<"*******************************RULES********************************************\n";
  47. cout<<"1.In this game you will be given the opportunity to choose from any \n three subjects: "<<endl;
  48. cout<<"i.GENERAL KNOWLEDGE\tii.MATHEMATICS\n"<<endl;
  49. cout<<"2.For every correct anewer you will get 10 points and for every wrong \n answer minus 2 points\n"<<endl;
  50. cout<<"********************************************************************************\n";
  51. }
  52. void quiz::gk( int i)
  53. {
  54. a=i%3;
  55. switch(a)
  56. {
  57. case 0:
  58. gkscore=0;
  59. cout<<"Q.1 :"<<endl<<endl;
  60. cout<<"What was the name of the first U.S civilian ship to be sunk by a\n german submarine in World War 1?"<<endl;
  61. cout<<"your options are:"<<endl;
  62. cout<<"\n**********************"<<setw(5)<<"**********************";
  63. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  64. cout<<"\n* ATIK *"<<setw(5)<<"* MOUNT HOOD *";
  65. cout<<"\n**********************"<<setw(5)<<"**********************";
  66. cout<<"\n**********************"<<setw(5)<<"**********************";
  67. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  68. cout<<"\n* POLLUX *"<<setw(5)<<"* LUSITANIA *";
  69. cout<<"\n**********************"<<setw(5)<<"**********************";
  70. cout<<endl;
  71. cout<<"choose your option"<<endl;
  72. cin>>option;
  73. if(option==4)
  74. {
  75. cout<<"Right answer!!"<<endl;
  76. cout<<"+10 points"<<endl;
  77. gkscore=gkscore+10;
  78. cout<<"Your score: "<<gkscore<<endl<<endl;
  79.  
  80. }
  81. else
  82. {
  83. cout<<"Wrong answer"<<endl;
  84. cout<<"The correct answer is: Lusitania"<<endl;
  85. cout<<"-2 points"<<endl;
  86. gkscore=gkscore-2;
  87. cout<<"Your score: "<<gkscore<<endl;
  88. }
  89. cout<<"Q.2 :"<<endl<<endl;
  90. cout<<"Epsom (England) is the place associated with?"<<endl;
  91. cout<<"your options are:"<<endl;
  92. cout<<"\n**********************"<<setw(5)<<"**********************";
  93. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  94. cout<<"\n* Horse racing *"<<setw(5)<<"* Polo *";
  95. cout<<"\n**********************"<<setw(5)<<"**********************";
  96. cout<<"\n**********************"<<setw(5)<<"**********************";
  97. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  98. cout<<"\n* SNOOKER *"<<setw(5)<<"* SHOOTING *";
  99. cout<<"\n**********************"<<setw(5)<<"**********************";
  100. cout<<endl;
  101. cout<<"choose your option"<<endl;
  102. cin>>option;
  103. if(option==1)
  104. {
  105. cout<<"Right answer!!"<<endl;
  106. cout<<"+10 points"<<endl;
  107. gkscore=gkscore+10;
  108. cout<<"Your score: "<<gkscore<<endl<<endl;
  109.  
  110. }
  111. else
  112. {
  113. cout<<"Wrong answer"<<endl;
  114. cout<<"The correct answer is: Horse racing"<<endl;
  115. cout<<"-2 points"<<endl;
  116. gkscore=gkscore-2;
  117. cout<<"Your score: "<<gkscore<<endl;
  118. }
  119. cout<<"Q.3 :"<<endl<<endl;
  120. cout<<"Golf player Vijay Singh belongs to which country?"<<endl;
  121. cout<<"your options are:"<<endl;
  122. cout<<"\n**********************"<<setw(5)<<"**********************";
  123. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  124. cout<<"\n* USA *"<<setw(5)<<"* FIJI *";
  125. cout<<"\n**********************"<<setw(5)<<"**********************";
  126. cout<<"\n**********************"<<setw(5)<<"**********************";
  127. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  128. cout<<"\n* INDIA *"<<setw(5)<<"* UK *";
  129. cout<<"\n**********************"<<setw(5)<<"**********************";
  130. cout<<endl;
  131. cout<<"choose your option"<<endl;
  132. cin>>option;
  133. if(option==2)
  134. {
  135. cout<<"Right answer!!"<<endl;
  136. cout<<"+10 points"<<endl;
  137. gkscore=gkscore+10;
  138. cout<<"Your score: "<<gkscore<<endl<<endl;
  139.  
  140. }
  141. else
  142. {
  143. cout<<"Wrong answer"<<endl;
  144. cout<<"The correct answer is: Fiji"<<endl;
  145. cout<<"-2 points"<<endl;
  146. gkscore=gkscore-2;
  147. cout<<"Your score: "<<gkscore<<endl;
  148. }
  149. cout<<"Q.4 :"<<endl<<endl;
  150. cout<<"Each year World Red Cross and Red Crescent Day is celebrated on?"<<endl;
  151. cout<<"your options are:"<<endl;
  152. cout<<"\n**********************"<<setw(5)<<"**********************";
  153. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  154. cout<<"\n* May 8 *"<<setw(5)<<"* May 18 *";
  155. cout<<"\n**********************"<<setw(5)<<"**********************";
  156. cout<<"\n**********************"<<setw(5)<<"**********************";
  157. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  158. cout<<"\n* June 8 *"<<setw(5)<<"* June 18 *";
  159. cout<<"\n**********************"<<setw(5)<<"**********************";
  160. cout<<endl;
  161. cout<<"choose your option"<<endl;
  162. cin>>option;
  163. if(option==1)
  164. {
  165. cout<<"Right answer!!"<<endl;
  166. cout<<"+10 points"<<endl;
  167. gkscore=gkscore+10;
  168. cout<<"Your score: "<<gkscore<<endl<<endl;
  169.  
  170. }
  171. else
  172. {
  173. cout<<"Wrong answer"<<endl;
  174. cout<<"The correct answer is: May 8"<<endl;
  175. cout<<"-2 points"<<endl;
  176. gkscore=gkscore-2;
  177. cout<<"Your score: "<<gkscore<<endl;
  178. }
  179. cout<<"Q.5 :"<<endl<<endl;
  180. cout<<"Guwahati High Court is the judicature of?"<<endl;
  181. cout<<"your options are:"<<endl;
  182. cout<<"\n**********************"<<setw(5)<<"**********************";
  183. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  184. cout<<"\n* Nagaland *"<<setw(5)<<"* Arunachal Pradesh *";
  185. cout<<"\n**********************"<<setw(5)<<"**********************";
  186. cout<<"\n**********************"<<setw(5)<<"**********************";
  187. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  188. cout<<"\n* Assam *"<<setw(5)<<"* None of the above *";
  189. cout<<"\n**********************"<<setw(5)<<"**********************";
  190. cout<<endl;
  191. cout<<"choose your option"<<endl;
  192. cin>>option;
  193. if(option==4)
  194. {
  195. cout<<"Right answer!!"<<endl;
  196. cout<<"+10 points"<<endl;
  197. gkscore=gkscore+10;
  198. cout<<"Your score: "<<gkscore<<endl<<endl;
  199.  
  200. }
  201. else
  202. {
  203. cout<<"Wrong answer"<<endl;
  204. cout<<"The correct answer is: Non of the above"<<endl;
  205. cout<<"-2 points"<<endl;
  206. gkscore=gkscore-2;
  207. cout<<"Your score: "<<gkscore<<endl;
  208. }
  209. cout<<"Q.6 :"<<endl<<endl;
  210. cout<<"Friction can be reduced by changing from?"<<endl;
  211. cout<<"your options are:"<<endl;
  212. cout<<"\n**********************"<<setw(5)<<"**********************";
  213. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  214. cout<<"\n* Sliding to rolling *"<<setw(5)<<"* Rolling to sliding *";
  215. cout<<"\n**********************"<<setw(5)<<"**********************";
  216. cout<<"\n**********************"<<setw(5)<<"**********************";
  217. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  218. cout<<"\n* Dynamic to static *"<<setw(5)<<"* Non of the abovE *";
  219. cout<<"\n**********************"<<setw(5)<<"**********************";
  220. cout<<endl;
  221. cout<<"choose your option"<<endl;
  222. cin>>option;
  223. if(option==1)
  224. {
  225. cout<<"Right answer!!"<<endl;
  226. cout<<"+10 points"<<endl;
  227. gkscore=gkscore+10;
  228. cout<<"Your score: "<<gkscore<<endl<<endl;
  229.  
  230. }
  231. else
  232. {
  233. cout<<"Wrong answer"<<endl;
  234. cout<<"The correct answer is: Sliding to rolling"<<endl;
  235. cout<<"-2 points"<<endl;
  236. gkscore=gkscore-2;
  237. cout<<"Your score: "<<gkscore<<endl;
  238. }
  239. cout<<"Q.7 :"<<endl<<endl;
  240. cout<<"Film and TV institute of India is located at?"<<endl;
  241. cout<<"your options are:"<<endl;
  242. cout<<"\n**********************"<<setw(5)<<"**********************";
  243. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  244. cout<<"\n* Rajkot (Gujarat) *"<<setw(5)<<"* Pune (Maharashtra) *";
  245. cout<<"\n**********************"<<setw(5)<<"**********************";
  246. cout<<"\n**********************"<<setw(5)<<"**********************";
  247. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  248. cout<<"\n* Pimpri(Maharashtra)*"<<setw(5)<<"* Perambur(Tamilnadu)*";
  249. cout<<"\n**********************"<<setw(5)<<"**********************";
  250. cout<<endl;
  251. cout<<"choose your option"<<endl;
  252. cin>>option;
  253. if(option==2)
  254. {
  255. cout<<"Right answer!!"<<endl;
  256. cout<<"+10 points"<<endl;
  257. gkscore=gkscore+10;
  258. cout<<"Your score: "<<gkscore<<endl<<endl;
  259.  
  260. }
  261. else
  262. {
  263. cout<<"Wrong answer"<<endl;
  264. cout<<"The correct answer is: Pune(Maharashtra)"<<endl;
  265. cout<<"-2 points"<<endl;
  266. gkscore=gkscore-2;
  267. cout<<"Your score: "<<gkscore<<endl;
  268. }
  269. cout<<"Q.8 :"<<endl<<endl;
  270. cout<<"The power to decide an election petition is vested in the?"<<endl;
  271. cout<<"your options are:"<<endl;
  272. cout<<"\n**********************"<<setw(5)<<"**********************";
  273. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  274. cout<<"\n* Parliament *"<<setw(5)<<"* Supreme Court *";
  275. cout<<"\n**********************"<<setw(5)<<"**********************";
  276. cout<<"\n**********************"<<setw(5)<<"**********************";
  277. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  278. cout<<"\n* High courts *"<<setw(5)<<"* Election Commission*";
  279. cout<<"\n**********************"<<setw(5)<<"**********************";
  280. cout<<endl;
  281. cout<<"choose your option"<<endl;
  282. cin>>option;
  283. if(option==3)
  284. {
  285. cout<<"Right answer!!"<<endl;
  286. cout<<"+10 points"<<endl;
  287. gkscore=gkscore+10;
  288. cout<<"Your score: "<<gkscore<<endl<<endl;
  289.  
  290. }
  291. else
  292. {
  293. cout<<"Wrong answer"<<endl;
  294. cout<<"The correct answer is: High Courts"<<endl;
  295. cout<<"-2 points"<<endl;
  296. gkscore=gkscore-2;
  297. cout<<"Your score: "<<gkscore<<endl;
  298. }
  299. cout<<"Q.9 :"<<endl<<endl;
  300. cout<<"The members of Lok Sabha hold office for a term of"<<endl;
  301. cout<<"your options are:"<<endl;
  302. cout<<"\n**********************"<<setw(5)<<"**********************";
  303. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  304. cout<<"\n* 4 years *"<<setw(5)<<"* 5 years *";
  305. cout<<"\n**********************"<<setw(5)<<"**********************";
  306. cout<<"\n**********************"<<setw(5)<<"**********************";
  307. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  308. cout<<"\n* 6 years *"<<setw(5)<<"* 3 years *";
  309. cout<<"\n**********************"<<setw(5)<<"**********************";
  310. cout<<endl;
  311. cout<<"choose your option"<<endl;
  312. cin>>option;
  313. if(option==2)
  314. {
  315. cout<<"Right answer!!"<<endl;
  316. cout<<"+10 points"<<endl;
  317. gkscore=gkscore+10;
  318. cout<<"Your score: "<<gkscore<<endl<<endl;
  319.  
  320. }
  321. else
  322. {
  323. cout<<"Wrong answer"<<endl;
  324. cout<<"The correct answer is: 5 years"<<endl;
  325. cout<<"-2 points"<<endl;
  326. gkscore=gkscore-2;
  327. cout<<"Your score: "<<gkscore<<endl;
  328. }
  329. cout<<"Q.10 :"<<endl<<endl;
  330. cout<<"The Centre for Cellular and Molecular Biology is situated at?"<<endl;
  331. cout<<"your options are:"<<endl;
  332. cout<<"\n**********************"<<setw(5)<<"**********************";
  333. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  334. cout<<"\n* Patna *"<<setw(5)<<"* Jaipur *";
  335. cout<<"\n**********************"<<setw(5)<<"**********************";
  336. cout<<"\n**********************"<<setw(5)<<"**********************";
  337. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  338. cout<<"\n* Hyderabad *"<<setw(5)<<"* New Delhi *";
  339. cout<<"\n**********************"<<setw(5)<<"**********************";
  340. cout<<endl;
  341. cout<<"choose your option"<<endl;
  342. cin>>option;
  343. if(option==3)
  344. {
  345. cout<<"Right answer!!"<<endl;
  346. cout<<"+10 points"<<endl;
  347. gkscore=gkscore+10;
  348. cout<<"Your score: "<<gkscore<<endl<<endl;
  349.  
  350. }
  351. else
  352. {
  353. cout<<"Wrong answer"<<endl;
  354. cout<<"The correct answer is: Hyderabad"<<endl;
  355. cout<<"-2 points"<<endl;
  356. gkscore=gkscore-2;
  357. cout<<"Your score: "<<gkscore<<endl;
  358. }
  359. break;
  360. case 1:
  361. gkscore=0;
  362. cout<<"Q.1 :"<<endl<<endl;
  363. cout<<"The minimum age to qualify for election to the Lok Sabha is"<<endl;
  364. cout<<"your options are:"<<endl;
  365. cout<<"\n**********************"<<setw(5)<<"**********************";
  366. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  367. cout<<"\n* 25 years *"<<setw(5)<<"* 21 years *";
  368. cout<<"\n**********************"<<setw(5)<<"**********************";
  369. cout<<"\n**********************"<<setw(5)<<"**********************";
  370. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  371. cout<<"\n* 18 years *"<<setw(5)<<"* 35 years *";
  372. cout<<"\n**********************"<<setw(5)<<"**********************";
  373. cout<<endl;
  374. cout<<"choose your option"<<endl;
  375. cin>>option;
  376. if(option==1)
  377. {
  378. cout<<"Right answer!!"<<endl;
  379. cout<<"+10 points"<<endl;
  380. gkscore=gkscore+10;
  381. cout<<"Your score: "<<gkscore<<endl<<endl;
  382.  
  383. }
  384. else
  385. {
  386. cout<<"Wrong answer"<<endl;
  387. cout<<"The correct answer is: 25 years"<<endl;
  388. cout<<"-2 points"<<endl;
  389. gkscore=gkscore-2;
  390. cout<<"Your score: "<<gkscore<<endl;
  391. }
  392. cout<<"Q.2 :"<<endl<<endl;
  393. cout<<"The minimum age of the voter in India is?"<<endl;
  394. cout<<"your options are:"<<endl;
  395. cout<<"\n**********************"<<setw(5)<<"**********************";
  396. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  397. cout<<"\n* 15 years *"<<setw(5)<<"* 18 years *";
  398. cout<<"\n**********************"<<setw(5)<<"**********************";
  399. cout<<"\n**********************"<<setw(5)<<"**********************";
  400. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  401. cout<<"\n* 21 years *"<<setw(5)<<"* 25 years *";
  402. cout<<"\n**********************"<<setw(5)<<"**********************";
  403. cout<<endl;
  404. cout<<"choose your option"<<endl;
  405. cin>>option;
  406. if(option==2)
  407. {
  408. cout<<"Right answer!!"<<endl;
  409. cout<<"+10 points"<<endl;
  410. gkscore=gkscore+10;
  411. cout<<"Your score: "<<gkscore<<endl<<endl;
  412.  
  413. }
  414. else
  415. {
  416. cout<<"Wrong answer"<<endl;
  417. cout<<"The correct answer is: 18 years"<<endl;
  418. cout<<"-2 points"<<endl;
  419. gkscore=gkscore-2;
  420. cout<<"Your score: "<<gkscore<<endl;
  421. }
  422. cout<<"Q.3 :"<<endl<<endl;
  423. cout<<"Wadia Institute of Himalayan Geology is located at?"<<endl;
  424. cout<<"your options are:"<<endl;
  425. cout<<"\n**********************"<<setw(5)<<"**********************";
  426. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  427. cout<<"\n* Delhi *"<<setw(5)<<"* Shimla *";
  428. cout<<"\n**********************"<<setw(5)<<"**********************";
  429. cout<<"\n**********************"<<setw(5)<<"**********************";
  430. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  431. cout<<"\n* Dehradun *"<<setw(5)<<"* Kulu *";
  432. cout<<"\n**********************"<<setw(5)<<"**********************";
  433. cout<<endl;
  434. cout<<"choose your option"<<endl;
  435. cin>>option;
  436. if(option==3)
  437. {
  438. cout<<"Right answer!!"<<endl;
  439. cout<<"+10 points"<<endl;
  440. gkscore=gkscore+10;
  441. cout<<"Your score: "<<gkscore<<endl<<endl;
  442.  
  443. }
  444. else
  445. {
  446. cout<<"Wrong answer"<<endl;
  447. cout<<"The correct answer is: Dehradun"<<endl;
  448. cout<<"-2 points"<<endl;
  449. gkscore=gkscore-2;
  450. cout<<"Your score: "<<gkscore<<endl;
  451. }
  452. cout<<"Q.4 :"<<endl<<endl;
  453. cout<<"The Indian Institute of Science is located at?"<<endl;
  454. cout<<"your options are:"<<endl;
  455. cout<<"\n**********************"<<setw(5)<<"**********************";
  456. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  457. cout<<"\n* Kerala *"<<setw(5)<<"* Nanded *";
  458. cout<<"\n**********************"<<setw(5)<<"**********************";
  459. cout<<"\n**********************"<<setw(5)<<"**********************";
  460. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  461. cout<<"\n* New Delhi *"<<setw(5)<<"* Bangalore *";
  462. cout<<"\n**********************"<<setw(5)<<"**********************";
  463. cout<<endl;
  464. cout<<"choose your option"<<endl;
  465. cin>>option;
  466. if(option==4)
  467. {
  468. cout<<"Right answer!!"<<endl;
  469. cout<<"+10 points"<<endl;
  470. gkscore=gkscore+10;
  471. cout<<"Your score: "<<gkscore<<endl<<endl;
  472.  
  473. }
  474. else
  475. {
  476. cout<<"Wrong answer"<<endl;
  477. cout<<"The correct answer is: Bangalore"<<endl;
  478. cout<<"-2 points"<<endl;
  479. gkscore=gkscore-2;
  480. cout<<"Your score: "<<gkscore<<endl;
  481. }
  482. cout<<"Q.5 :"<<endl<<endl;
  483. cout<<"Which scientist discovered the radioactive element radium??"<<endl;
  484. cout<<"your options are:"<<endl;
  485. cout<<"\n**********************"<<setw(5)<<"**********************";
  486. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  487. cout<<"\n* Isaac Newton *"<<setw(5)<<"* Albert Einstein *";
  488. cout<<"\n**********************"<<setw(5)<<"**********************";
  489. cout<<"\n**********************"<<setw(5)<<"**********************";
  490. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  491. cout<<"\n* Benjamin Franklin *"<<setw(5)<<"* Marie Curie *";
  492. cout<<"\n**********************"<<setw(5)<<"**********************";
  493. cout<<endl;
  494. cout<<"choose your option"<<endl;
  495. cin>>option;
  496. if(option==4)
  497. {
  498. cout<<"Right answer!!"<<endl;
  499. cout<<"+10 points"<<endl;
  500. gkscore=gkscore+10;
  501. cout<<"Your score: "<<gkscore<<endl<<endl;
  502.  
  503. }
  504. else
  505. {
  506. cout<<"Wrong answer"<<endl;
  507. cout<<"The correct answer is: Marie Curie"<<endl;
  508. cout<<"-2 points"<<endl;
  509. gkscore=gkscore-2;
  510. cout<<"Your score: "<<gkscore<<endl;
  511. }
  512. cout<<"Q.6 :"<<endl<<endl;
  513. cout<<"What now-ubiquitous device was invented by Zenith engineer Eugene Polley in 1955??"<<endl;
  514. cout<<"your options are:"<<endl;
  515. cout<<"\n**********************"<<setw(5)<<"**********************";
  516. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  517. cout<<"\n* Microwave oven *"<<setw(5)<<"* Remote control *";
  518. cout<<"\n**********************"<<setw(5)<<"**********************";
  519. cout<<"\n**********************"<<setw(5)<<"**********************";
  520. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  521. cout<<"\n* VCR *"<<setw(5)<<"* Calculator *";
  522. cout<<"\n**********************"<<setw(5)<<"**********************";
  523. cout<<endl;
  524. cout<<"choose your option"<<endl;
  525. cin>>option;
  526. if(option==2)
  527. {
  528. cout<<"Right answer!!"<<endl;
  529. cout<<"+10 points"<<endl;
  530. gkscore=gkscore+10;
  531. cout<<"Your score: "<<gkscore<<endl<<endl;
  532.  
  533. }
  534. else
  535. {
  536. cout<<"Wrong answer"<<endl;
  537. cout<<"The correct answer is: Remote control"<<endl;
  538. cout<<"-2 points"<<endl;
  539. gkscore=gkscore-2;
  540. cout<<"Your score: "<<gkscore<<endl;
  541. }
  542. cout<<"Q.7 :"<<endl<<endl;
  543. cout<<"January 15 is celebrated as the?"<<endl;
  544. cout<<"your options are:"<<endl;
  545. cout<<"\n**********************"<<setw(5)<<"**********************";
  546. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  547. cout<<"\n* Republic Day *"<<setw(5)<<"* Ugadhi *";
  548. cout<<"\n**********************"<<setw(5)<<"**********************";
  549. cout<<"\n**********************"<<setw(5)<<"**********************";
  550. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  551. cout<<"\n* Teachers'Day *"<<setw(5)<<"* Army Day *";
  552. cout<<"\n**********************"<<setw(5)<<"**********************";
  553. cout<<endl;
  554. cout<<"choose your option"<<endl;
  555. cin>>option;
  556. if(option==4)
  557. {
  558. cout<<"Right answer!!"<<endl;
  559. cout<<"+10 points"<<endl;
  560. gkscore=gkscore+10;
  561. cout<<"Your score: "<<gkscore<<endl<<endl;
  562.  
  563. }
  564. else
  565. {
  566. cout<<"Wrong answer"<<endl;
  567. cout<<"The correct answer is: Army Day"<<endl;
  568. cout<<"-2 points"<<endl;
  569. gkscore=gkscore-2;
  570. cout<<"Your score: "<<gkscore<<endl;
  571. }
  572. cout<<"Q.8 :"<<endl<<endl;
  573. cout<<"The 'Char Minar' is in?"<<endl;
  574. cout<<"your options are:"<<endl;
  575. cout<<"\n**********************"<<setw(5)<<"**********************";
  576. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  577. cout<<"\n* Ahmedabad *"<<setw(5)<<"* Hyderabad *";
  578. cout<<"\n**********************"<<setw(5)<<"**********************";
  579. cout<<"\n**********************"<<setw(5)<<"**********************";
  580. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  581. cout<<"\n* Delhi *"<<setw(5)<<"* Sikri *";
  582. cout<<"\n**********************"<<setw(5)<<"**********************";
  583. cout<<endl;
  584. cout<<"choose your option"<<endl;
  585. cin>>option;
  586. if(option==2)
  587. {
  588. cout<<"Right answer!!"<<endl;
  589. cout<<"+10 points"<<endl;
  590. gkscore=gkscore+10;
  591. cout<<"Your score: "<<gkscore<<endl<<endl;
  592.  
  593. }
  594. else
  595. {
  596. cout<<"Wrong answer"<<endl;
  597. cout<<"The correct answer is: Hyderabad"<<endl;
  598. cout<<"-2 points"<<endl;
  599. gkscore=gkscore-2;
  600. cout<<"Your score: "<<gkscore<<endl;
  601. }
  602. cout<<"Q.9 :"<<endl<<endl;
  603. cout<<"Where is the National Institute of Virology situated??"<<endl;
  604. cout<<"your options are:"<<endl;
  605. cout<<"\n**********************"<<setw(5)<<"**********************";
  606. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  607. cout<<"\n* Pune *"<<setw(5)<<"* Delhi *";
  608. cout<<"\n**********************"<<setw(5)<<"**********************";
  609. cout<<"\n**********************"<<setw(5)<<"**********************";
  610. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  611. cout<<"\n* Kolkatta *"<<setw(5)<<"* Madras *";
  612. cout<<"\n**********************"<<setw(5)<<"**********************";
  613. cout<<endl;
  614. cout<<"choose your option"<<endl;
  615. cin>>option;
  616. if(option==1)
  617. {
  618. cout<<"Right answer!!"<<endl;
  619. cout<<"+10 points"<<endl;
  620. gkscore=gkscore+10;
  621. cout<<"Your score: "<<gkscore<<endl<<endl;
  622.  
  623. }
  624. else
  625. {
  626. cout<<"Wrong answer"<<endl;
  627. cout<<"The correct answer is: Pune"<<endl;
  628. cout<<"-2 points"<<endl;
  629. gkscore=gkscore-2;
  630. cout<<"Your score: "<<gkscore<<endl;
  631. }
  632. cout<<"Q.10 :"<<endl<<endl;
  633. cout<<"Nuclear sizes are expressed in a unit named?"<<endl;
  634. cout<<"your options are:"<<endl;
  635. cout<<"\n**********************"<<setw(5)<<"**********************";
  636. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  637. cout<<"\n* Fermi *"<<setw(5)<<"* angstrom *";
  638. cout<<"\n**********************"<<setw(5)<<"**********************";
  639. cout<<"\n**********************"<<setw(5)<<"**********************";
  640. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  641. cout<<"\n* newton *"<<setw(5)<<"* tesla *";
  642. cout<<"\n**********************"<<setw(5)<<"**********************";
  643. cout<<endl;
  644. cout<<"choose your option"<<endl;
  645. cin>>option;
  646. if(option==1)
  647. {
  648. cout<<"Right answer!!"<<endl;
  649. cout<<"+10 points"<<endl;
  650. gkscore=gkscore+10;
  651. cout<<"Your score: "<<gkscore<<endl<<endl;
  652.  
  653. }
  654. else
  655. {
  656. cout<<"Wrong answer"<<endl;
  657. cout<<"The correct answer is: Fermi"<<endl;
  658. cout<<"-2 points"<<endl;
  659. gkscore=gkscore-2;
  660. cout<<"Your score: "<<gkscore<<endl;
  661. }
  662. break;
  663. case 2:
  664. gkscore=0;
  665. cout<<"Q.1 :"<<endl<<endl;
  666. cout<<"What was the name of the first U.S civilian ship to be sunk by a\n german submarine in World War 1?"<<endl;
  667. cout<<"your options are:"<<endl;
  668. cout<<"\n**********************"<<setw(5)<<"**********************";
  669. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  670. cout<<"\n* ATIK *"<<setw(5)<<"* MOUNT HOOD *";
  671. cout<<"\n**********************"<<setw(5)<<"**********************";
  672. cout<<"\n**********************"<<setw(5)<<"**********************";
  673. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  674. cout<<"\n* POLLUX *"<<setw(5)<<"* LUSITANIA *";
  675. cout<<"\n**********************"<<setw(5)<<"**********************";
  676. cout<<endl;
  677. cout<<"choose your option"<<endl;
  678. cin>>option;
  679. if(option==4)
  680. {
  681. cout<<"Right answer!!"<<endl;
  682. cout<<"+10 points"<<endl;
  683. gkscore=gkscore+10;
  684. cout<<"Your score: "<<gkscore<<endl<<endl;
  685.  
  686. }
  687. else
  688. {
  689. cout<<"Wrong answer"<<endl;
  690. cout<<"The correct answer is: Lusitania"<<endl;
  691. cout<<"-2 points"<<endl;
  692. gkscore=gkscore-2;
  693. cout<<"Your score: "<<gkscore<<endl;
  694. }
  695. cout<<"Q.2 :"<<endl<<endl;
  696. cout<<"Epsom (England) is the place associated with?"<<endl;
  697. cout<<"your options are:"<<endl;
  698. cout<<"\n**********************"<<setw(5)<<"**********************";
  699. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  700. cout<<"\n* Horse racing *"<<setw(5)<<"* Polo *";
  701. cout<<"\n**********************"<<setw(5)<<"**********************";
  702. cout<<"\n**********************"<<setw(5)<<"**********************";
  703. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  704. cout<<"\n* SNOOKER *"<<setw(5)<<"* SHOOTING *";
  705. cout<<"\n**********************"<<setw(5)<<"**********************";
  706. cout<<endl;
  707. cout<<"choose your option"<<endl;
  708. cin>>option;
  709. if(option==1)
  710. {
  711. cout<<"Right answer!!"<<endl;
  712. cout<<"+10 points"<<endl;
  713. gkscore=gkscore+10;
  714. cout<<"Your score: "<<gkscore<<endl<<endl;
  715.  
  716. }
  717. else
  718. {
  719. cout<<"Wrong answer"<<endl;
  720. cout<<"The correct answer is: Horse racing"<<endl;
  721. cout<<"-2 points"<<endl;
  722. gkscore=gkscore-2;
  723. cout<<"Your score: "<<gkscore<<endl;
  724. }
  725. cout<<"Q.3 :"<<endl<<endl;
  726. cout<<"Golf player Vijay Singh belongs to which country?"<<endl;
  727. cout<<"your options are:"<<endl;
  728. cout<<"\n**********************"<<setw(5)<<"**********************";
  729. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  730. cout<<"\n* USA *"<<setw(5)<<"* FIJI *";
  731. cout<<"\n**********************"<<setw(5)<<"**********************";
  732. cout<<"\n**********************"<<setw(5)<<"**********************";
  733. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  734. cout<<"\n* INDIA *"<<setw(5)<<"* UK *";
  735. cout<<"\n**********************"<<setw(5)<<"**********************";
  736. cout<<endl;
  737. cout<<"choose your option"<<endl;
  738. cin>>option;
  739. if(option==2)
  740. {
  741. cout<<"Right answer!!"<<endl;
  742. cout<<"+10 points"<<endl;
  743. gkscore=gkscore+10;
  744. cout<<"Your score: "<<gkscore<<endl<<endl;
  745.  
  746. }
  747. else
  748. {
  749. cout<<"Wrong answer"<<endl;
  750. cout<<"The correct answer is: Fiji"<<endl;
  751. cout<<"-2 points"<<endl;
  752. gkscore=gkscore-2;
  753. cout<<"Your score: "<<gkscore<<endl;
  754. }
  755. cout<<"Q.4 :"<<endl<<endl;
  756. cout<<"Each year World Red Cross and Red Crescent Day is celebrated on?"<<endl;
  757. cout<<"your options are:"<<endl;
  758. cout<<"\n**********************"<<setw(5)<<"**********************";
  759. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  760. cout<<"\n* May 8 *"<<setw(5)<<"* May 18 *";
  761. cout<<"\n**********************"<<setw(5)<<"**********************";
  762. cout<<"\n**********************"<<setw(5)<<"**********************";
  763. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  764. cout<<"\n* June 8 *"<<setw(5)<<"* June 18 *";
  765. cout<<"\n**********************"<<setw(5)<<"**********************";
  766. cout<<endl;
  767. cout<<"choose your option"<<endl;
  768. cin>>option;
  769. if(option==1)
  770. {
  771. cout<<"Right answer!!"<<endl;
  772. cout<<"+10 points"<<endl;
  773. gkscore=gkscore+10;
  774. cout<<"Your score: "<<gkscore<<endl<<endl;
  775.  
  776. }
  777. else
  778. {
  779. cout<<"Wrong answer"<<endl;
  780. cout<<"The correct answer is: May 8"<<endl;
  781. cout<<"-2 points"<<endl;
  782. gkscore=gkscore-2;
  783. cout<<"Your score: "<<gkscore<<endl;
  784. }
  785. cout<<"Q.5 :"<<endl<<endl;
  786. cout<<"Guwahati High Court is the judicature of?"<<endl;
  787. cout<<"your options are:"<<endl;
  788. cout<<"\n**********************"<<setw(5)<<"**********************";
  789. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  790. cout<<"\n* Nagaland *"<<setw(5)<<"* Arunachal Pradesh *";
  791. cout<<"\n**********************"<<setw(5)<<"**********************";
  792. cout<<"\n**********************"<<setw(5)<<"**********************";
  793. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  794. cout<<"\n* Assam *"<<setw(5)<<"* None of the above *";
  795. cout<<"\n**********************"<<setw(5)<<"**********************";
  796. cout<<endl;
  797. cout<<"choose your option"<<endl;
  798. cin>>option;
  799. if(option==4)
  800. {
  801. cout<<"Right answer!!"<<endl;
  802. cout<<"+10 points"<<endl;
  803. gkscore=gkscore+10;
  804. cout<<"Your score: "<<gkscore<<endl<<endl;
  805.  
  806. }
  807. else
  808. {
  809. cout<<"Wrong answer"<<endl;
  810. cout<<"The correct answer is: Non of the above"<<endl;
  811. cout<<"-2 points"<<endl;
  812. gkscore=gkscore-2;
  813. cout<<"Your score: "<<gkscore<<endl;
  814. }
  815. cout<<"Q.6 :"<<endl<<endl;
  816. cout<<"The minimum age to qualify for election to the Lok Sabha is"<<endl;
  817. cout<<"your options are:"<<endl;
  818. cout<<"\n**********************"<<setw(5)<<"**********************";
  819. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  820. cout<<"\n* 25 years *"<<setw(5)<<"* 21 years *";
  821. cout<<"\n**********************"<<setw(5)<<"**********************";
  822. cout<<"\n**********************"<<setw(5)<<"**********************";
  823. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  824. cout<<"\n* 18 years *"<<setw(5)<<"* 35 years *";
  825. cout<<"\n**********************"<<setw(5)<<"**********************";
  826. cout<<endl;
  827. cout<<"choose your option"<<endl;
  828. cin>>option;
  829. if(option==1)
  830. {
  831. cout<<"Right answer!!"<<endl;
  832. cout<<"+10 points"<<endl;
  833. gkscore=gkscore+10;
  834. cout<<"Your score: "<<gkscore<<endl<<endl;
  835.  
  836. }
  837. else
  838. {
  839. cout<<"Wrong answer"<<endl;
  840. cout<<"The correct answer is: 25 years"<<endl;
  841. cout<<"-2 points"<<endl;
  842. gkscore=gkscore-2;
  843. cout<<"Your score: "<<gkscore<<endl;
  844. }
  845. cout<<"Q.7 :"<<endl<<endl;
  846. cout<<"The minimum age of the voter in India is?"<<endl;
  847. cout<<"your options are:"<<endl;
  848. cout<<"\n**********************"<<setw(5)<<"**********************";
  849. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  850. cout<<"\n* 15 years *"<<setw(5)<<"* 18 years *";
  851. cout<<"\n**********************"<<setw(5)<<"**********************";
  852. cout<<"\n**********************"<<setw(5)<<"**********************";
  853. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  854. cout<<"\n* 21 years *"<<setw(5)<<"* 25 years *";
  855. cout<<"\n**********************"<<setw(5)<<"**********************";
  856. cout<<endl;
  857. cout<<"choose your option"<<endl;
  858. cin>>option;
  859. if(option==2)
  860. {
  861. cout<<"Right answer!!"<<endl;
  862. cout<<"+10 points"<<endl;
  863. gkscore=gkscore+10;
  864. cout<<"Your score: "<<gkscore<<endl<<endl;
  865.  
  866. }
  867. else
  868. {
  869. cout<<"Wrong answer"<<endl;
  870. cout<<"The correct answer is: 18 years"<<endl;
  871. cout<<"-2 points"<<endl;
  872. gkscore=gkscore-2;
  873. cout<<"Your score: "<<gkscore<<endl;
  874. }
  875. cout<<"Q.8 :"<<endl<<endl;
  876. cout<<"Wadia Institute of Himalayan Geology is located at?"<<endl;
  877. cout<<"your options are:"<<endl;
  878. cout<<"\n**********************"<<setw(5)<<"**********************";
  879. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  880. cout<<"\n* Delhi *"<<setw(5)<<"* Shimla *";
  881. cout<<"\n**********************"<<setw(5)<<"**********************";
  882. cout<<"\n**********************"<<setw(5)<<"**********************";
  883. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  884. cout<<"\n* Dehradun *"<<setw(5)<<"* Kulu *";
  885. cout<<"\n**********************"<<setw(5)<<"**********************";
  886. cout<<endl;
  887. cout<<"choose your option"<<endl;
  888. cin>>option;
  889. if(option==3)
  890. {
  891. cout<<"Right answer!!"<<endl;
  892. cout<<"+10 points"<<endl;
  893. gkscore=gkscore+10;
  894. cout<<"Your score: "<<gkscore<<endl<<endl;
  895.  
  896. }
  897. else
  898. {
  899. cout<<"Wrong answer"<<endl;
  900. cout<<"The correct answer is: Dehradun"<<endl;
  901. cout<<"-2 points"<<endl;
  902. gkscore=gkscore-2;
  903. cout<<"Your score: "<<gkscore<<endl;
  904. }
  905. cout<<"Q.9 :"<<endl<<endl;
  906. cout<<"The Indian Institute of Science is located at?"<<endl;
  907. cout<<"your options are:"<<endl;
  908. cout<<"\n**********************"<<setw(5)<<"**********************";
  909. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  910. cout<<"\n* Kerala *"<<setw(5)<<"* Nanded *";
  911. cout<<"\n**********************"<<setw(5)<<"**********************";
  912. cout<<"\n**********************"<<setw(5)<<"**********************";
  913. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  914. cout<<"\n* New Delhi *"<<setw(5)<<"* Bangalore *";
  915. cout<<"\n**********************"<<setw(5)<<"**********************";
  916. cout<<endl;
  917. cout<<"choose your option"<<endl;
  918. cin>>option;
  919. if(option==4)
  920. {
  921. cout<<"Right answer!!"<<endl;
  922. cout<<"+10 points"<<endl;
  923. gkscore=gkscore+10;
  924. cout<<"Your score: "<<gkscore<<endl<<endl;
  925.  
  926. }
  927. else
  928. {
  929. cout<<"Wrong answer"<<endl;
  930. cout<<"The correct answer is: Bangalore"<<endl;
  931. cout<<"-2 points"<<endl;
  932. gkscore=gkscore-2;
  933. cout<<"Your score: "<<gkscore<<endl;
  934. }
  935. cout<<"Q.10 :"<<endl<<endl;
  936. cout<<"Which scientist discovered the radioactive element radium??"<<endl;
  937. cout<<"your options are:"<<endl;
  938. cout<<"\n**********************"<<setw(5)<<"**********************";
  939. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  940. cout<<"\n* Isaac Newton *"<<setw(5)<<"* Albert Einstein *";
  941. cout<<"\n**********************"<<setw(5)<<"**********************";
  942. cout<<"\n**********************"<<setw(5)<<"**********************";
  943. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  944. cout<<"\n* Benjamin Franklin *"<<setw(5)<<"* Marie Curie *";
  945. cout<<"\n**********************"<<setw(5)<<"**********************";
  946. cout<<endl;
  947. cout<<"choose your option"<<endl;
  948. cin>>option;
  949. if(option==4)
  950. {
  951. cout<<"Right answer!!"<<endl;
  952. cout<<"+10 points"<<endl;
  953. gkscore=gkscore+10;
  954. cout<<"Your score: "<<gkscore<<endl<<endl;
  955.  
  956. }
  957. else
  958. {
  959. cout<<"Wrong answer"<<endl;
  960. cout<<"The correct answer is: Marie Curie"<<endl;
  961. cout<<"-2 points"<<endl;
  962. gkscore=gkscore-2;
  963. cout<<"Your score: "<<gkscore<<endl;
  964. }
  965. }
  966. }
  967. void quiz::maths(int i)
  968. {
  969. a=i%3;
  970. switch(a)
  971. {
  972. case 0:
  973. mathscore=0;
  974. cout<<"Q.1 :"<<endl<<endl;
  975. cout<<"A clock strikes once at 1 o'clock, twice at 2 o'clock, thrice at\n 3 o'clock and so on.How many times will it strike in 24 hours?"<<endl;
  976. cout<<"your options are:"<<endl<<endl;
  977. cout<<"\n**********************"<<setw(5)<<"**********************";
  978. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  979. cout<<"\n* 78 *"<<setw(5)<<"* 136 *";
  980. cout<<"\n**********************"<<setw(5)<<"**********************";
  981. cout<<"\n**********************"<<setw(5)<<"**********************";
  982. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  983. cout<<"\n* 156 *"<<setw(5)<<"* 196 *";
  984. cout<<"\n**********************"<<setw(5)<<"**********************";
  985. cout<<endl;
  986. cout<<"choose your option"<<endl;
  987. cin>>option;
  988. if(option==3)
  989. {
  990. cout<<"Right answer!!"<<endl;
  991. cout<<"+10 points"<<endl;
  992. mathscore= mathscore+10;
  993. cout<<"Your score: "<<mathscore<<endl;
  994. }
  995. else
  996. {
  997. cout<<"Wrong answer"<<endl;
  998. cout<<"The correct answer is:156"<<endl;
  999. cout<<"-2 points"<<endl;
  1000. mathscore=mathscore-2;
  1001. cout<<"Your score: "<<mathscore<<endl;
  1002. }
  1003. cout<<"Q.2 :"<<endl<<endl;
  1004. cout<<"What is the next number in this sequence?\n26, 29, 32, ___"<<endl;
  1005. cout<<"your options are:"<<endl<<endl;
  1006. cout<<"\n**********************"<<setw(5)<<"**********************";
  1007. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1008. cout<<"\n* 35 *"<<setw(5)<<"* 36 *";
  1009. cout<<"\n**********************"<<setw(5)<<"**********************";
  1010. cout<<"\n**********************"<<setw(5)<<"**********************";
  1011. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1012. cout<<"\n* 32 *"<<setw(5)<<"* 33 *";
  1013. cout<<"\n**********************"<<setw(5)<<"**********************";
  1014. cout<<endl;
  1015. cout<<"choose your option"<<endl;
  1016. cin>>option;
  1017. if(option==1)
  1018. {
  1019. cout<<"Right answer!!"<<endl;
  1020. cout<<"+10 points"<<endl;
  1021. mathscore=mathscore+10;
  1022. cout<<"Your score: "<<mathscore<<endl;
  1023. }
  1024. else
  1025. {
  1026. cout<<"Wrong answer"<<endl;
  1027. cout<<"The correct answer is:35"<<endl;
  1028. cout<<"-2 points"<<endl;
  1029. mathscore=mathscore-2;
  1030. cout<<"Your score: "<<mathscore<<endl;
  1031. }
  1032. cout<<"Q.3 :"<<endl<<endl;
  1033. cout<<"A rectangle has width 2.5 m and area is 20,000 square centimeters.\nWhat is its area?"<<endl;
  1034. cout<<"your options are:"<<endl<<endl;
  1035. cout<<"\n**********************"<<setw(5)<<"**********************";
  1036. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1037. cout<<"\n* 80m *"<<setw(5)<<"* 100m *";
  1038. cout<<"\n**********************"<<setw(5)<<"**********************";
  1039. cout<<"\n**********************"<<setw(5)<<"**********************";
  1040. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1041. cout<<"\n* 40cm *"<<setw(5)<<"* 80cm *";
  1042. cout<<"\n**********************"<<setw(5)<<"**********************";
  1043. cout<<endl;
  1044. cout<<"choose your option"<<endl;
  1045. cin>>option;
  1046. if(option==4)
  1047. {
  1048. cout<<"Right answer!!"<<endl;
  1049. cout<<"+10 points"<<endl;
  1050. mathscore=mathscore+10;
  1051. cout<<"Your score: "<<mathscore<<endl;
  1052. }
  1053. else
  1054. {
  1055. cout<<"Wrong answer"<<endl;
  1056. cout<<"The correct answer is:35"<<endl;
  1057. cout<<"-2 points"<<endl;
  1058. mathscore=mathscore-2;
  1059. cout<<"Your score: "<<mathscore<<endl;
  1060. }
  1061. cout<<"Q.4 :"<<endl<<endl;
  1062. cout<<"Two fair cubical dice are thrown at the same time and their\n scores added together.What is the probability that the sum of the scores\n is greater than 7?"<<endl;
  1063. cout<<"your options are:"<<endl<<endl;
  1064. cout<<"\n**********************"<<setw(5)<<"**********************";
  1065. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1066. cout<<"\n* 1/3 *"<<setw(5)<<"* 13/36 *";
  1067. cout<<"\n**********************"<<setw(5)<<"**********************";
  1068. cout<<"\n**********************"<<setw(5)<<"**********************";
  1069. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1070. cout<<"\n* 7/8 *"<<setw(5)<<"* 5/12 *";
  1071. cout<<"\n**********************"<<setw(5)<<"**********************";
  1072. cout<<endl;
  1073. cout<<"choose your option"<<endl;
  1074. cin>>option;
  1075. if(option==4)
  1076. {
  1077. cout<<"Right answer!!"<<endl;
  1078. cout<<"+10 points"<<endl;
  1079. mathscore=mathscore+10;
  1080. cout<<"Your score: "<<mathscore<<endl;
  1081. }
  1082. else
  1083. {
  1084. cout<<"Wrong answer"<<endl;
  1085. cout<<"The correct answer is:5/12"<<endl;
  1086. cout<<"-2 points"<<endl;
  1087. mathscore=mathscore-2;
  1088. cout<<"Your score: "<<mathscore<<endl;
  1089. }
  1090. cout<<"Q.5 :"<<endl<<endl;
  1091. cout<<"What is the mean of the set of numbers {3, 9, 15, 6, 18, 12, 33, 24, 15}?"<<endl;
  1092. cout<<"your options are:"<<endl<<endl;
  1093. cout<<"\n**********************"<<setw(5)<<"**********************";
  1094. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1095. cout<<"\n* 8 *"<<setw(5)<<"* 10 *";
  1096. cout<<"\n**********************"<<setw(5)<<"**********************";
  1097. cout<<"\n**********************"<<setw(5)<<"**********************";
  1098. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1099. cout<<"\n* 15 *"<<setw(5)<<"* 12 *";
  1100. cout<<"\n**********************"<<setw(5)<<"**********************";
  1101. cout<<endl;
  1102. cout<<"choose your option"<<endl;
  1103. cin>>option;
  1104. if(option==3)
  1105. {
  1106. cout<<"Right answer!!"<<endl;
  1107. cout<<"+10 points"<<endl;
  1108. mathscore=mathscore+10;
  1109. cout<<"Your score: "<<mathscore<<endl;
  1110. }
  1111. else
  1112. {
  1113. cout<<"Wrong answer"<<endl;
  1114. cout<<"The correct answer is:15"<<endl;
  1115. cout<<"-2 points"<<endl;
  1116. mathscore=mathscore-2;
  1117. cout<<"Your score: "<<mathscore<<endl;
  1118. }
  1119. cout<<"Q.6 :"<<endl<<endl;
  1120. cout<<"ABCD is a quadrilateral with A=(-5,-1), B=(0,4), C=(1,-3), and \nD=(-4,-8).Without drawing the quadrilateral,decide which one of the following\n most accurately describes ABCD:"<<endl;
  1121. cout<<"your options are:"<<endl<<endl;
  1122. cout<<"\n**********************"<<setw(5)<<"**********************";
  1123. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1124. cout<<"\n* A RECTANGLE *"<<setw(5)<<"* A RHOMBUS *";
  1125. cout<<"\n**********************"<<setw(5)<<"**********************";
  1126. cout<<"\n**********************"<<setw(5)<<"**********************";
  1127. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1128. cout<<"\n* A PARALLELOGRAM *"<<setw(5)<<"* A TRAPEZOID *";
  1129. cout<<"\n**********************"<<setw(5)<<"**********************";
  1130. cout<<endl;
  1131. cout<<"choose your option"<<endl;
  1132. cin>>option;
  1133. if(option==2)
  1134. {
  1135. cout<<"Right answer!!"<<endl;
  1136. cout<<"+10 points"<<endl;
  1137. mathscore=mathscore+10;
  1138. cout<<"Your score: "<<mathscore<<endl;
  1139. }
  1140. else
  1141. {
  1142. cout<<"Wrong answer"<<endl;
  1143. cout<<"The correct answer is:A Rhombus"<<endl;
  1144. cout<<"-2 points"<<endl;
  1145. mathscore=mathscore-2;
  1146. cout<<"Your score: "<<mathscore<<endl;
  1147. }
  1148. cout<<"Q.7 :"<<endl<<endl;
  1149. cout<<"Which one of the following is discrete data?"<<endl;
  1150. cout<<"your options are:"<<endl<<endl;
  1151. cout<<"\n**********************"<<setw(5)<<"**********************";
  1152. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1153. cout<<"\n* sam is 60cm long *"<<setw(5)<<"* sam weighs 60kg *";
  1154. cout<<"\n**********************"<<setw(5)<<"**********************";
  1155. cout<<"\n**********************"<<setw(5)<<"**********************";
  1156. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1157. cout<<"\n* sam has 2 sisters *"<<setw(5)<<"* sam ran 5m in 0.2s *";
  1158. cout<<"\n**********************"<<setw(5)<<"**********************";
  1159. cout<<endl;
  1160. cout<<"choose your option"<<endl;
  1161. cin>>option;
  1162. if(option==3)
  1163. {
  1164. cout<<"Right answer!!"<<endl;
  1165. cout<<"+10 points"<<endl;
  1166. mathscore=mathscore+10;
  1167. cout<<"Your score: "<<mathscore<<endl;
  1168. }
  1169. else
  1170. {
  1171. cout<<"Wrong answer"<<endl;
  1172. cout<<"The correct answer is:35"<<endl;
  1173. cout<<"-2 points"<<endl;
  1174. mathscore=mathscore-2;
  1175. cout<<"Your score: "<<mathscore<<endl;
  1176. }
  1177. cout<<"Q.8 :"<<endl<<endl;
  1178. cout<<"If 4x + 3y = 18xy and 2x - 5y + 4xy = 0, then what are the values\n of x and y respectively?"<<endl;
  1179. cout<<"your options are:"<<endl<<endl;
  1180. cout<<"\n**********************"<<setw(5)<<"**********************";
  1181. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1182. cout<<"\n* -1/2,-1/3 *"<<setw(5)<<"* -1,-3 *";
  1183. cout<<"\n**********************"<<setw(5)<<"**********************";
  1184. cout<<"\n**********************"<<setw(5)<<"**********************";
  1185. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1186. cout<<"\n* 1/2,1/3 *"<<setw(5)<<"* 1/4,1/3 *";
  1187. cout<<"\n**********************"<<setw(5)<<"**********************";
  1188. cout<<endl;
  1189. cout<<"choose your option"<<endl;
  1190. cin>>option;
  1191. if(option==3)
  1192. {
  1193. cout<<"Right answer!!"<<endl;
  1194. cout<<"+10 points"<<endl;
  1195. mathscore=mathscore+10;
  1196. cout<<"Your score: "<<mathscore<<endl;
  1197. }
  1198. else
  1199. {
  1200. cout<<"Wrong answer"<<endl;
  1201. cout<<"The correct answer is:\t1/2,1/3"<<endl;
  1202. cout<<"-2 points"<<endl;
  1203. mathscore=mathscore-2;
  1204. cout<<"Your score: "<<mathscore<<endl;
  1205. }
  1206. cout<<"Q.9 :"<<endl<<endl;
  1207. cout<<"What three positive numbers give the same result when multiplied\n and added together"<<endl;
  1208. cout<<"your options are:"<<endl<<endl;
  1209. cout<<"\n**********************"<<setw(5)<<"**********************";
  1210. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1211. cout<<"\n* 1,2 and 3 *"<<setw(5)<<"* 1,8 and 6 *";
  1212. cout<<"\n**********************"<<setw(5)<<"**********************";
  1213. cout<<"\n**********************"<<setw(5)<<"**********************";
  1214. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1215. cout<<"\n* 1,3 and 9 *"<<setw(5)<<"* 1,5 and 4 *";
  1216. cout<<"\n**********************"<<setw(5)<<"**********************";
  1217. cout<<endl;
  1218. cout<<"choose your option"<<endl;
  1219. cin>>option;
  1220. if(option==1)
  1221. {
  1222. cout<<"Right answer!!"<<endl;
  1223. cout<<"+10 points"<<endl;
  1224. mathscore=mathscore+10;
  1225. cout<<"Your score: "<<mathscore<<endl;
  1226. }
  1227. else
  1228. {
  1229. cout<<"Wrong answer"<<endl;
  1230. cout<<"The correct answer is:\t1,2 and 3"<<endl;
  1231. cout<<"-2 points"<<endl;
  1232. mathscore=mathscore-2;
  1233. cout<<"Your score: "<<mathscore<<endl;
  1234. }
  1235. cout<<"Q.10 :"<<endl<<endl;
  1236. cout<<"Who invented zero?"<<endl;
  1237. cout<<"your options are:"<<endl<<endl;
  1238. cout<<"\n**********************"<<setw(5)<<"**********************";
  1239. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1240. cout<<"\n* ARYABHATTA *"<<setw(5)<<"* BRAHMAGUPTA *";
  1241. cout<<"\n**********************"<<setw(5)<<"**********************";
  1242. cout<<"\n**********************"<<setw(5)<<"**********************";
  1243. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1244. cout<<"\n* EUCLID *"<<setw(5)<<"* C.V RAMAN *";
  1245. cout<<"\n**********************"<<setw(5)<<"**********************";
  1246. cout<<endl;
  1247. cout<<"choose your option"<<endl;
  1248. cin>>option;
  1249. if(option==1)
  1250. {
  1251. cout<<"Right answer!!"<<endl;
  1252. cout<<"+10 points"<<endl;
  1253. mathscore=mathscore+10;
  1254. cout<<"Your score: "<<mathscore<<endl;
  1255. }
  1256. else
  1257. {
  1258. cout<<"Wrong answer"<<endl;
  1259. cout<<"The correct answer is:\tAryabhatta"<<endl;
  1260. cout<<"-2 points"<<endl;
  1261. mathscore=mathscore-2;
  1262. cout<<"Your score: "<<mathscore<<endl;
  1263. }
  1264. break;
  1265. case 1:
  1266. mathscore=0;
  1267. cout<<"Q.1:"<<endl<<endl;
  1268. cout<<"What kind of sequence is this? \n1, 10, 100, 1,000, ..."<<endl;
  1269. cout<<"your options are:"<<endl<<endl;
  1270. cout<<"\n**********************"<<setw(5)<<"**********************";
  1271. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1272. cout<<"\n* ARITHMETIC *"<<setw(5)<<"* GEOMETRIC *";
  1273. cout<<"\n**********************"<<setw(5)<<"**********************";
  1274. cout<<"\n**********************"<<setw(5)<<"**********************";
  1275. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1276. cout<<"\n* BOTH *"<<setw(5)<<"* NONE OF THE ABOVE *";
  1277. cout<<"\n**********************"<<setw(5)<<"**********************";
  1278. cout<<endl;
  1279. cout<<"choose your option"<<endl;
  1280. cin>>option;
  1281. if(option==2)
  1282. {
  1283. cout<<"Right answer!!"<<endl;
  1284. cout<<"+10 points"<<endl;
  1285. mathscore=mathscore+10;
  1286. cout<<"Your score: "<<mathscore<<endl;
  1287. }
  1288. else
  1289. {
  1290. cout<<"Wrong answer"<<endl;
  1291. cout<<"The correct answer is:\tGeometric"<<endl;
  1292. cout<<"-2 points"<<endl;
  1293. mathscore=mathscore-2;
  1294. cout<<"Your score: "<<mathscore<<endl;
  1295. }
  1296. cout<<"Q.2 :"<<endl<<endl;
  1297. cout<<" In my row in the theatre the seats are numbered consecutively\n from T1 to T50. I am sitting in seat T17 and you are sitting in seat T39.\n How many seats are there between us?"<<endl;
  1298. cout<<"your options are:"<<endl<<endl;
  1299. cout<<"\n**********************"<<setw(5)<<"**********************";
  1300. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1301. cout<<"\n* 20 *"<<setw(5)<<"* 21 *";
  1302. cout<<"\n**********************"<<setw(5)<<"**********************";
  1303. cout<<"\n**********************"<<setw(5)<<"**********************";
  1304. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1305. cout<<"\n* 22 *"<<setw(5)<<"* 23 *";
  1306. cout<<"\n**********************"<<setw(5)<<"**********************";
  1307. cout<<endl;
  1308. cout<<"choose your option"<<endl;
  1309. cin>>option;
  1310. if(option==2)
  1311. {
  1312. cout<<"Right answer!!"<<endl;
  1313. cout<<"+10 points"<<endl;
  1314. mathscore=mathscore+10;
  1315. cout<<"Your score: "<<mathscore<<endl;
  1316. }
  1317. else
  1318. {
  1319. cout<<"Wrong answer"<<endl;
  1320. cout<<"The correct answer is:21"<<endl;
  1321. cout<<"-2 points"<<endl;
  1322. mathscore=mathscore-2;
  1323. cout<<"Your score: "<<mathscore<<endl;
  1324. }
  1325. cout<<"Q.3 :"<<endl<<endl;
  1326. cout<<"How many prime numbers are there in the list \n1, 12, 123, 1234, 12 345, 123 456 ?"<<endl;
  1327. cout<<"your options are:"<<endl<<endl;
  1328. cout<<"\n**********************"<<setw(5)<<"**********************";
  1329. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1330. cout<<"\n* 1 *"<<setw(5)<<"* 2 *";
  1331. cout<<"\n**********************"<<setw(5)<<"**********************";
  1332. cout<<"\n**********************"<<setw(5)<<"**********************";
  1333. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1334. cout<<"\n* none *"<<setw(5)<<"* 5 *";
  1335. cout<<"\n**********************"<<setw(5)<<"**********************";
  1336. cout<<endl;
  1337. cout<<"choose your option"<<endl;
  1338. cin>>option;
  1339. if(option==3)
  1340. {
  1341. cout<<"Right answer!!"<<endl;
  1342. cout<<"+10 points"<<endl;
  1343. mathscore=mathscore+10;
  1344. cout<<"Your score: "<<mathscore<<endl;
  1345. }
  1346. else
  1347. {
  1348. cout<<"Wrong answer"<<endl;
  1349. cout<<"The correct answer is:\tNone"<<endl;
  1350. cout<<"-2 points"<<endl;
  1351. mathscore=mathscore-2;
  1352. cout<<"Your score: "<<mathscore<<endl;
  1353. }
  1354. cout<<"Q.4 :"<<endl<<endl;
  1355. cout<<"A function machine changes 49 to 98 and changes 26 to 52.\n What function is the machine carrying out on each number?"<<endl;
  1356. cout<<"your options are:"<<endl<<endl;
  1357. cout<<"\n**********************"<<setw(5)<<"**********************";
  1358. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1359. cout<<"\n* ADDING 49 *"<<setw(5)<<"* ADDING 26 *";
  1360. cout<<"\n**********************"<<setw(5)<<"**********************";
  1361. cout<<"\n**********************"<<setw(5)<<"**********************";
  1362. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1363. cout<<"\n* DOUBLING NUMBER *"<<setw(5)<<"* NONE OF ABOVE *";
  1364. cout<<"\n**********************"<<setw(5)<<"**********************";
  1365. cout<<endl;
  1366. cout<<"choose your option"<<endl;
  1367. cin>>option;
  1368. if(option==3)
  1369. {
  1370. cout<<"Right answer!!"<<endl;
  1371. cout<<"+10 points"<<endl;
  1372. mathscore=mathscore+10;
  1373. cout<<"Your score: "<<mathscore<<endl;
  1374. }
  1375. else
  1376. {
  1377. cout<<"Wrong answer"<<endl;
  1378. cout<<"The correct answer is:\nDOUBLING NUMBER"<<endl;
  1379. cout<<"-2 points"<<endl;
  1380. mathscore=mathscore-2;
  1381. cout<<"Your score: "<<mathscore<<endl;
  1382. }
  1383. cout<<"Q.5 :"<<endl<<endl;
  1384. cout<<"Whose theorem states that ‘a square on the hypotenuse is equal\n to the sum of the squares on the other two sides?"<<endl;
  1385. cout<<"your options are:"<<endl<<endl;
  1386. cout<<"\n**********************"<<setw(5)<<"**********************";
  1387. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1388. cout<<"\n* ARYABHATTA *"<<setw(5)<<"* PYTHAGORAS *";
  1389. cout<<"\n**********************"<<setw(5)<<"**********************";
  1390. cout<<"\n**********************"<<setw(5)<<"**********************";
  1391. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1392. cout<<"\n* EUCLID *"<<setw(5)<<"* NONE OF THE ABOVE *";
  1393. cout<<"\n**********************"<<setw(5)<<"**********************";
  1394. cout<<endl;
  1395. cout<<"choose your option"<<endl;
  1396. cin>>option;
  1397. if(option==2)
  1398. {
  1399. cout<<"Right answer!!"<<endl;
  1400. cout<<"+10 points"<<endl;
  1401. mathscore=mathscore+10;
  1402. cout<<"Your score: "<<mathscore<<endl;
  1403. }
  1404. else
  1405. {
  1406. cout<<"Wrong answer"<<endl;
  1407. cout<<"The correct answer is:\tPYTHAGORAS"<<endl;
  1408. cout<<"-2 points"<<endl;
  1409. mathscore=mathscore-2;
  1410. cout<<"Your score: "<<mathscore<<endl;
  1411. }
  1412. cout<<"Q.6 :"<<endl<<endl;
  1413. cout<<"What is missing out of the trio. Sine, Cosine and…?"<<endl;
  1414. cout<<"your options are:"<<endl<<endl;
  1415. cout<<"\n**********************"<<setw(5)<<"**********************";
  1416. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1417. cout<<"\n* TANGENT *"<<setw(5)<<"* COT *";
  1418. cout<<"\n**********************"<<setw(5)<<"**********************";
  1419. cout<<"\n**********************"<<setw(5)<<"**********************";
  1420. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1421. cout<<"\n* COSEC *"<<setw(5)<<"* SEC *";
  1422. cout<<"\n**********************"<<setw(5)<<"**********************";
  1423. cout<<endl;
  1424. cout<<"choose your option"<<endl;
  1425. cin>>option;
  1426. if(option==1)
  1427. {
  1428. cout<<"Right answer!!"<<endl;
  1429. cout<<"+10 points"<<endl;
  1430. mathscore=mathscore+10;
  1431. cout<<"Your score: "<<mathscore<<endl;
  1432. }
  1433. else
  1434. {
  1435. cout<<"Wrong answer"<<endl;
  1436. cout<<"The correct answer is:\nTangent"<<endl;
  1437. cout<<"-2 points"<<endl;
  1438. mathscore=mathscore-2;
  1439. cout<<"Your score: "<<mathscore<<endl;
  1440. }
  1441. cout<<"Q.7 :"<<endl<<endl;
  1442. cout<<"If a bag of 30 sweets weighs 20g, how many sweets would weigh 1kg?"<<endl;
  1443. cout<<"your options are:"<<endl<<endl;
  1444. cout<<"\n**********************"<<setw(5)<<"**********************";
  1445. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1446. cout<<"\n* 1000 *"<<setw(5)<<"* 500 *";
  1447. cout<<"\n**********************"<<setw(5)<<"**********************";
  1448. cout<<"\n**********************"<<setw(5)<<"**********************";
  1449. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1450. cout<<"\n* 2000 *"<<setw(5)<<"* 1500 *";
  1451. cout<<"\n**********************"<<setw(5)<<"**********************";
  1452. cout<<endl;
  1453. cout<<"choose your option"<<endl;
  1454. cin>>option;
  1455. if(option==4)
  1456. {
  1457. cout<<"Right answer!!"<<endl;
  1458. cout<<"+10 points"<<endl;
  1459. mathscore=mathscore+10;
  1460. cout<<"Your score: "<<mathscore<<endl;
  1461. }
  1462. else
  1463. {
  1464. cout<<"Wrong answer"<<endl;
  1465. cout<<"The correct answer is:1500"<<endl;
  1466. cout<<"-2 points"<<endl;
  1467. mathscore=mathscore-2;
  1468. cout<<"Your score: "<<mathscore<<endl;
  1469. }
  1470. cout<<"Q.8 :"<<endl<<endl;
  1471. cout<<"If 4x + 3y = 18xy and 2x - 5y + 4xy = 0, then what are the values\n of x and y respectively?"<<endl;
  1472. cout<<"your options are:"<<endl<<endl;
  1473. cout<<"\n**********************"<<setw(5)<<"**********************";
  1474. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1475. cout<<"\n* -1/2,-1/3 *"<<setw(5)<<"* -1,-3 *";
  1476. cout<<"\n**********************"<<setw(5)<<"**********************";
  1477. cout<<"\n**********************"<<setw(5)<<"**********************";
  1478. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1479. cout<<"\n* 1/2,1/3 *"<<setw(5)<<"* 1/4,1/3 *";
  1480. cout<<"\n**********************"<<setw(5)<<"**********************";
  1481. cout<<endl;
  1482. cout<<"choose your option"<<endl;
  1483. cin>>option;
  1484. if(option==3)
  1485. {
  1486. cout<<"Right answer!!"<<endl;
  1487. cout<<"+10 points"<<endl;
  1488. mathscore=mathscore+10;
  1489. cout<<"Your score: "<<mathscore<<endl;
  1490. }
  1491. else
  1492. {
  1493. cout<<"Wrong answer"<<endl;
  1494. cout<<"The correct answer is:\t1/2,1/3"<<endl;
  1495. cout<<"-2 points"<<endl;
  1496. mathscore=mathscore-2;
  1497. cout<<"Your score: "<<mathscore<<endl;
  1498. }
  1499. cout<<"Q.9 :"<<endl<<endl;
  1500. cout<<"What three positive numbers give the same result when multiplied\n and added together"<<endl;
  1501. cout<<"your options are:"<<endl<<endl;
  1502. cout<<"\n**********************"<<setw(5)<<"**********************";
  1503. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1504. cout<<"\n* 1,2 and 3 *"<<setw(5)<<"* 1,8 and 6 *";
  1505. cout<<"\n**********************"<<setw(5)<<"**********************";
  1506. cout<<"\n**********************"<<setw(5)<<"**********************";
  1507. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1508. cout<<"\n* 1,3 and 9 *"<<setw(5)<<"* 1,5 and 4 *";
  1509. cout<<"\n**********************"<<setw(5)<<"**********************";
  1510. cout<<endl;
  1511. cout<<"choose your option"<<endl;
  1512. cin>>option;
  1513. if(option==1)
  1514. {
  1515. cout<<"Right answer!!"<<endl;
  1516. cout<<"+10 points"<<endl;
  1517. mathscore=mathscore+10;
  1518. cout<<"Your score: "<<mathscore<<endl;
  1519. }
  1520. else
  1521. {
  1522. cout<<"Wrong answer"<<endl;
  1523. cout<<"The correct answer is:\t1,2 and 3"<<endl;
  1524. cout<<"-2 points"<<endl;
  1525. mathscore=mathscore-2;
  1526. cout<<"Your score: "<<mathscore<<endl;
  1527. }
  1528. cout<<"Q.10 :"<<endl<<endl;
  1529. cout<<"The geometric compass was invented by?"<<endl;
  1530. cout<<"your options are:"<<endl<<endl;
  1531. cout<<"\n**********************"<<setw(5)<<"**********************";
  1532. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1533. cout<<"\n* ARYABHATTA *"<<setw(5)<<"* GALILEO *";
  1534. cout<<"\n**********************"<<setw(5)<<"**********************";
  1535. cout<<"\n**********************"<<setw(5)<<"**********************";
  1536. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1537. cout<<"\n* EUCLID *"<<setw(5)<<"* C.V RAMAN *";
  1538. cout<<"\n**********************"<<setw(5)<<"**********************";
  1539. cout<<endl;
  1540. cout<<"choose your option"<<endl;
  1541. cin>>option;
  1542. if(option==2)
  1543. {
  1544. cout<<"Right answer!!"<<endl;
  1545. cout<<"+10 points"<<endl;
  1546. mathscore=mathscore+10;
  1547. cout<<"Your score: "<<mathscore<<endl;
  1548. }
  1549. else
  1550. {
  1551. cout<<"Wrong answer"<<endl;
  1552. cout<<"The correct answer is:\tGalileo"<<endl;
  1553. cout<<"-2 points"<<endl;
  1554. mathscore=mathscore-2;
  1555. cout<<"Your score: "<<mathscore<<endl;
  1556. }
  1557. break;
  1558. case 2:
  1559. mathscore=0;
  1560. cout<<"Q.1 :"<<endl<<endl;
  1561. cout<<"If it takes 3 men 2 hours to dig a hole, how long will it theoretically take one man?"<<endl;
  1562. cout<<"your options are:"<<endl<<endl;
  1563. cout<<"\n**********************"<<setw(5)<<"**********************";
  1564. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1565. cout<<"\n* 2 HOURS *"<<setw(5)<<"* 4 HOURS *";
  1566. cout<<"\n**********************"<<setw(5)<<"**********************";
  1567. cout<<"\n**********************"<<setw(5)<<"**********************";
  1568. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1569. cout<<"\n* 6 HOURS *"<<setw(5)<<"* 8 HOURS *";
  1570. cout<<"\n**********************"<<setw(5)<<"**********************";
  1571. cout<<endl;
  1572. cout<<"choose your option"<<endl;
  1573. cin>>option;
  1574. if(option==3)
  1575. {
  1576. cout<<"Right answer!!"<<endl;
  1577. cout<<"+10 points"<<endl;
  1578. mathscore=mathscore+10;
  1579. cout<<"Your score: "<<mathscore<<endl;
  1580. }
  1581. else
  1582. {
  1583. cout<<"Wrong answer"<<endl;
  1584. cout<<"The correct answer is:\n6 HOURS"<<endl;
  1585. cout<<"-2 points"<<endl;
  1586. mathscore=mathscore-2;
  1587. cout<<"Your score: "<<mathscore<<endl;
  1588. }
  1589. cout<<"Q.2 :"<<endl<<endl;
  1590. cout<<"How many prime numbers are there in the list \n1, 12, 123, 1234, 12 345, 123 456 ?"<<endl;
  1591. cout<<"your options are:"<<endl<<endl;
  1592. cout<<"\n**********************"<<setw(5)<<"**********************";
  1593. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1594. cout<<"\n* 5 *"<<setw(5)<<"* 3 *";
  1595. cout<<"\n**********************"<<setw(5)<<"**********************";
  1596. cout<<"\n**********************"<<setw(5)<<"**********************";
  1597. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1598. cout<<"\n* 2 *"<<setw(5)<<"* NONE *";
  1599. cout<<"\n**********************"<<setw(5)<<"**********************";
  1600. cout<<endl;
  1601. cout<<"choose your option"<<endl;
  1602. cin>>option;
  1603. if(option==1)
  1604. {
  1605. cout<<"Right answer!!"<<endl;
  1606. cout<<"+10 points"<<endl;
  1607. mathscore=mathscore+10;
  1608. cout<<"Your score: "<<mathscore<<endl;
  1609. }
  1610. else
  1611. {
  1612. cout<<"Wrong answer"<<endl;
  1613. cout<<"The correct answer is:\nNone"<<endl;
  1614. cout<<"-2 points"<<endl;
  1615. mathscore=mathscore-2;
  1616. cout<<"Your score: "<<mathscore<<endl;
  1617. }
  1618. cout<<"Q.3 :"<<endl<<endl;
  1619. cout<<"A rectangle has width 2.5 m and area is 20,000 square centimeters.\nWhat is its area?"<<endl;
  1620. cout<<"your options are:"<<endl<<endl;
  1621. cout<<"\n**********************"<<setw(5)<<"**********************";
  1622. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1623. cout<<"\n* 80m *"<<setw(5)<<"* 100m *";
  1624. cout<<"\n**********************"<<setw(5)<<"**********************";
  1625. cout<<"\n**********************"<<setw(5)<<"**********************";
  1626. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1627. cout<<"\n* 40cm *"<<setw(5)<<"* 80cm *";
  1628. cout<<"\n**********************"<<setw(5)<<"**********************";
  1629. cout<<endl;
  1630. cout<<"choose your option"<<endl;
  1631. cin>>option;
  1632. if(option==4)
  1633. {
  1634. cout<<"Right answer!!"<<endl;
  1635. cout<<"+10 points"<<endl;
  1636. mathscore=mathscore+10;
  1637. cout<<"Your score: "<<mathscore<<endl;
  1638. }
  1639. else
  1640. {
  1641. cout<<"Wrong answer"<<endl;
  1642. cout<<"The correct answer is:35"<<endl;
  1643. cout<<"-2 points"<<endl;
  1644. mathscore=mathscore-2;
  1645. cout<<"Your score: "<<mathscore<<endl;
  1646. }
  1647. cout<<"Q.4 :"<<endl<<endl;
  1648. cout<<"What is the mean of the set of numbers {3, 9, 15, 6, 18, 12, 33, 24, 15}?"<<endl;
  1649. cout<<"your options are:"<<endl<<endl;
  1650. cout<<"\n**********************"<<setw(5)<<"**********************";
  1651. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1652. cout<<"\n* 12 *"<<setw(5)<<"* 33 *";
  1653. cout<<"\n**********************"<<setw(5)<<"**********************";
  1654. cout<<"\n**********************"<<setw(5)<<"**********************";
  1655. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1656. cout<<"\n* 18 *"<<setw(5)<<"* 15 *";
  1657. cout<<"\n**********************"<<setw(5)<<"**********************";
  1658. cout<<endl;
  1659. cout<<"choose your option"<<endl;
  1660. cin>>option;
  1661. if(option==4)
  1662. {
  1663. cout<<"Right answer!!"<<endl;
  1664. cout<<"+10 points"<<endl;
  1665. mathscore=mathscore+10;
  1666. cout<<"Your score: "<<mathscore<<endl;
  1667. }
  1668. else
  1669. {
  1670. cout<<"Wrong answer"<<endl;
  1671. cout<<"The correct answer is:15"<<endl;
  1672. cout<<"-2 points"<<endl;
  1673. mathscore=mathscore-2;
  1674. cout<<"Your score: "<<mathscore<<endl;
  1675. }
  1676. cout<<"Q.5 :"<<endl<<endl;
  1677. cout<<"The roman numeral XXIV is how many?"<<endl;
  1678. cout<<"your options are:"<<endl<<endl;
  1679. cout<<"\n**********************"<<setw(5)<<"**********************";
  1680. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1681. cout<<"\n* 8 *"<<setw(5)<<"* 24 *";
  1682. cout<<"\n**********************"<<setw(5)<<"**********************";
  1683. cout<<"\n**********************"<<setw(5)<<"**********************";
  1684. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1685. cout<<"\n* 15 *"<<setw(5)<<"* 12 *";
  1686. cout<<"\n**********************"<<setw(5)<<"**********************";
  1687. cout<<endl;
  1688. cout<<"choose your option"<<endl;
  1689. cin>>option;
  1690. if(option==2)
  1691. {
  1692. cout<<"Right answer!!"<<endl;
  1693. cout<<"+10 points"<<endl;
  1694. mathscore=mathscore+10;
  1695. cout<<"Your score: "<<mathscore<<endl;
  1696. }
  1697. else
  1698. {
  1699. cout<<"Wrong answer"<<endl;
  1700. cout<<"The correct answer is:24"<<endl;
  1701. cout<<"-2 points"<<endl;
  1702. mathscore=mathscore-2;
  1703. cout<<"Your score: "<<mathscore<<endl;
  1704. }
  1705. cout<<"Q.6 :"<<endl<<endl;
  1706. cout<<"How many seconds are there in four and a half minutes?"<<endl;
  1707. cout<<"your options are:"<<endl<<endl;
  1708. cout<<"\n**********************"<<setw(5)<<"**********************";
  1709. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1710. cout<<"\n* 60 *"<<setw(5)<<"* 30 *";
  1711. cout<<"\n**********************"<<setw(5)<<"**********************";
  1712. cout<<"\n**********************"<<setw(5)<<"**********************";
  1713. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1714. cout<<"\n* 120 *"<<setw(5)<<"* 270 *";
  1715. cout<<"\n**********************"<<setw(5)<<"**********************";
  1716. cout<<endl;
  1717. cout<<"choose your option"<<endl;
  1718. cin>>option;
  1719. if(option==2)
  1720. {
  1721. cout<<"Right answer!!"<<endl;
  1722. cout<<"+10 points"<<endl;
  1723. mathscore=mathscore+10;
  1724. cout<<"Your score: "<<mathscore<<endl;
  1725. }
  1726. else
  1727. {
  1728. cout<<"Wrong answer"<<endl;
  1729. cout<<"The correct answer is:270"<<endl;
  1730. cout<<"-2 points"<<endl;
  1731. mathscore=mathscore-2;
  1732. cout<<"Your score: "<<mathscore<<endl;
  1733. }
  1734. cout<<"Q.7 :"<<endl<<endl;
  1735. cout<<"Which one of the following is discrete data?"<<endl;
  1736. cout<<"your options are:"<<endl<<endl;
  1737. cout<<"\n**********************"<<setw(5)<<"**********************";
  1738. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1739. cout<<"\n* sam is 60cm long *"<<setw(5)<<"* sam weighs 60kg *";
  1740. cout<<"\n**********************"<<setw(5)<<"**********************";
  1741. cout<<"\n**********************"<<setw(5)<<"**********************";
  1742. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1743. cout<<"\n* sam has 2 sisters *"<<setw(5)<<"* sam ran 5m in 0.2s *";
  1744. cout<<"\n**********************"<<setw(5)<<"**********************";
  1745. cout<<endl;
  1746. cout<<"choose your option"<<endl;
  1747. cin>>option;
  1748. if(option==3)
  1749. {
  1750. cout<<"Right answer!!"<<endl;
  1751. cout<<"+10 points"<<endl;
  1752. mathscore=mathscore+10;
  1753. cout<<"Your score: "<<mathscore<<endl;
  1754. }
  1755. else
  1756. {
  1757. cout<<"Wrong answer"<<endl;
  1758. cout<<"The correct answer is:35"<<endl;
  1759. cout<<"-2 points"<<endl;
  1760. mathscore=mathscore-2;
  1761. cout<<"Your score: "<<mathscore<<endl;
  1762. }
  1763. cout<<"Q.8 :"<<endl<<endl;
  1764. cout<<"If 4x + 3y = 18xy and 2x - 5y + 4xy = 0, then what are the values\n of x and y respectively?"<<endl;
  1765. cout<<"your options are:"<<endl<<endl;
  1766. cout<<"\n**********************"<<setw(5)<<"**********************";
  1767. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1768. cout<<"\n* -1/2,-1/3 *"<<setw(5)<<"* -1,-3 *";
  1769. cout<<"\n**********************"<<setw(5)<<"**********************";
  1770. cout<<"\n**********************"<<setw(5)<<"**********************";
  1771. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1772. cout<<"\n* 1/2,1/3 *"<<setw(5)<<"* 1/4,1/3 *";
  1773. cout<<"\n**********************"<<setw(5)<<"**********************";
  1774. cout<<endl;
  1775. cout<<"choose your option"<<endl;
  1776. cin>>option;
  1777. if(option==3)
  1778. {
  1779. cout<<"Right answer!!"<<endl;
  1780. cout<<"+10 points"<<endl;
  1781. mathscore=mathscore+10;
  1782. cout<<"Your score: "<<mathscore<<endl;
  1783. }
  1784. else
  1785. {
  1786. cout<<"Wrong answer"<<endl;
  1787. cout<<"The correct answer is:\t1/2,1/3"<<endl;
  1788. cout<<"-2 points"<<endl;
  1789. mathscore=mathscore-2;
  1790. cout<<"Your score: "<<mathscore<<endl;
  1791. }
  1792. cout<<"Q.9 :"<<endl<<endl;
  1793. cout<<"What three positive numbers give the same result when multiplied\n and added together"<<endl;
  1794. cout<<"your options are:"<<endl<<endl;
  1795. cout<<"\n**********************"<<setw(5)<<"**********************";
  1796. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1797. cout<<"\n* 1,2 and 3 *"<<setw(5)<<"* 1,8 and 6 *";
  1798. cout<<"\n**********************"<<setw(5)<<"**********************";
  1799. cout<<"\n**********************"<<setw(5)<<"**********************";
  1800. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1801. cout<<"\n* 1,3 and 9 *"<<setw(5)<<"* 1,5 and 4 *";
  1802. cout<<"\n**********************"<<setw(5)<<"**********************";
  1803. cout<<endl;
  1804. cout<<"choose your option"<<endl;
  1805. cin>>option;
  1806. if(option==1)
  1807. {
  1808. cout<<"Right answer!!"<<endl;
  1809. cout<<"+10 points"<<endl;
  1810. mathscore=mathscore+10;
  1811. cout<<"Your score: "<<mathscore<<endl;
  1812. }
  1813. else
  1814. {
  1815. cout<<"Wrong answer"<<endl;
  1816. cout<<"The correct answer is:\t1,2 and 3"<<endl;
  1817. cout<<"-2 points"<<endl;
  1818. mathscore=mathscore-2;
  1819. cout<<"Your score: "<<mathscore<<endl;
  1820. }
  1821. cout<<"Q.10 :"<<endl<<endl;
  1822. cout<<"Who invented geometry"<<endl;
  1823. cout<<"your options are:"<<endl<<endl;
  1824. cout<<"\n**********************"<<setw(5)<<"**********************";
  1825. cout<<"\n* OPTION 1 *"<<setw(5)<<"* OPTION 2 *";
  1826. cout<<"\n* ARYABHATTA *"<<setw(5)<<"* BRAHMAGUPTA *";
  1827. cout<<"\n**********************"<<setw(5)<<"**********************";
  1828. cout<<"\n**********************"<<setw(5)<<"**********************";
  1829. cout<<"\n* OPTION 3 *"<<setw(5)<<"* OPTION 4 *";
  1830. cout<<"\n* EUCLID *"<<setw(5)<<"* C.V RAMAN *";
  1831. cout<<"\n**********************"<<setw(5)<<"**********************";
  1832. cout<<endl;
  1833. cout<<"choose your option"<<endl;
  1834. cin>>option;
  1835. if(option==3)
  1836. {
  1837. cout<<"Right answer!!"<<endl;
  1838. cout<<"+10 points"<<endl;
  1839. mathscore=mathscore+10;
  1840. cout<<"Your score: "<<mathscore<<endl;
  1841. }
  1842. else
  1843. {
  1844. cout<<"Wrong answer"<<endl;
  1845. cout<<"The correct answer is:\tEuclid"<<endl;
  1846. cout<<"-2 points"<<endl;
  1847. mathscore=mathscore-2;
  1848. cout<<"Your score: "<<mathscore<<endl;
  1849. }
  1850. }
  1851. }
  1852. int quiz::gkscores()
  1853. {
  1854. cout<<"Final score is: "<<gkscore<<endl;
  1855. }
  1856. int quiz::mathscores()
  1857. {
  1858. cout<<"Final score is: "<<mathscore<<endl;
  1859. }
  1860. int main()
  1861. {
  1862. quiz obj;
  1863. int choice,a=0,p,option,f,pass=12345,io;
  1864.  
  1865. do
  1866. {
  1867. cout<<"\t\t\t\tKAUN BANEGA PROFESSIONL";
  1868. cout<< "\n================================================================================\n\n" ;
  1869. cout<< "\n\t\t1.Please press 1 to register\n\n" ;
  1870. cout<< "\t\t2.Please press 2 If you are already registered and want to play \t\t the game\n\n";
  1871. cout<< "\t\t3.Please press 3 for a access\n\n";
  1872. cout<< "\t\t4.Please press 4 to exit\n\n" ;
  1873. cin>>option;
  1874.  
  1875. switch(option)
  1876. {
  1877. case 1:
  1878. s1.open("details.dat",ios::binary|ios::out|ios::app);
  1879. obj.get_info();
  1880. s1.write((char *)&obj,sizeof(obj));
  1881. s1.close();
  1882. obj.rules();
  1883. case 2:
  1884. do
  1885. {
  1886. cout<<"Select your subject according to the corresponding number:"<<endl;
  1887. cout<<"1.GENERAL KNOWLEDGE"<<endl<<"2.MATHEMATICS"<<endl<<"3.EXIT"<<endl;
  1888. cin>>choice;
  1889. //fjsdfasj
  1890. switch(choice)
  1891. {
  1892. case 1:
  1893. obj.gk(a);
  1894. s1.open("details.dat",ios::binary|ios::out|ios::app);
  1895. obj.gkscores();
  1896. s1.write((char *)&obj,sizeof(obj));
  1897. s1.close();
  1898. a++;
  1899. break;
  1900. case 2:
  1901. obj.maths(a);
  1902. s1.open("details.dat",ios::binary|ios::out|ios::app);
  1903. obj.mathscores();
  1904. s1.write((char *)&obj,sizeof(obj));
  1905. s1.close();
  1906. a++;
  1907. break;
  1908. case 3:
  1909. break;
  1910. }
  1911. }
  1912. while(choice!=3);
  1913. break;
  1914. case 3:
  1915. cout<<"ADMIN please enter your password\n";
  1916. cin>>p;
  1917. //fjsdfasj
  1918. if(p==pass)
  1919. {
  1920. cout<<"***********************welcome ADMIN********************************************\n";
  1921. s2.open("details.dat",ios::binary|ios::in);
  1922. do
  1923. {
  1924. cout<<"1.General knowledge topers"<<endl;
  1925. cout<<"2.Mathematics topers"<<endl;
  1926. cout<<"3.Exit"<<endl;
  1927. cin>>io;
  1928. //fjsdfasj
  1929. switch(io)
  1930. {
  1931. case 1:
  1932. while(s2.read((char *)&obj,sizeof(obj)))
  1933. {
  1934. obj.display();
  1935. obj.gkscores();
  1936. }
  1937. break;
  1938. s2.close();
  1939. break;
  1940. case 2:
  1941. while(s2.read((char *)&obj,sizeof(obj)))
  1942. {
  1943. obj.display();
  1944. obj.mathscores();
  1945. }
  1946. break;
  1947. s2.close();
  1948. break;
  1949. case 3:
  1950. break;
  1951. }
  1952. }
  1953. while(io!=3);
  1954. }
  1955. else
  1956. {
  1957. cout<<"Incorrect password!!!!!!\n";
  1958. //fjsdfasj
  1959. break;
  1960. }
  1961.  
  1962. }
  1963.  
  1964. }
  1965. while(option!=4);
  1966.  
  1967. }
Add Comment
Please, Sign In to add comment