Advertisement
saluxx

Pretty much finished

Sep 9th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.80 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApplication9
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int correctanswer = 0;
  14. int correctanswer1 = 0;
  15. int correctanswer2 = 0;
  16. int correctanswer3 = 0;
  17. int correctanswer4 = 0;
  18. int correctanswer5 = 0;
  19. Console.ForegroundColor = ConsoleColor.Green; // Ändra färg
  20. Console.WriteLine("Welcome");
  21. Console.ResetColor(); // Reseta färgen
  22. Console.WriteLine();
  23. Console.ForegroundColor = ConsoleColor.White;
  24. Console.WriteLine("You will be able to see 5 different questions with 3 different options");
  25. Console.WriteLine("type 1,2 or 3 depending on what the answer you believe it is.");
  26. Console.WriteLine();
  27. Console.Write("Correct answer = ");
  28. Console.ForegroundColor = ConsoleColor.Magenta;
  29. Console.Write("1");
  30. Console.ForegroundColor = ConsoleColor.White;
  31. Console.WriteLine(" Point");
  32. Console.WriteLine();
  33. Console.Write("Uncorrect answer = ");
  34. Console.ForegroundColor = ConsoleColor.Magenta;
  35. Console.Write("0");
  36. Console.ForegroundColor = ConsoleColor.White;
  37. Console.Write(" Points");
  38. Console.ResetColor();
  39. Console.WriteLine(); // Hoppar ner 1 rad
  40. Console.WriteLine();
  41. Console.WriteLine("Press any button to start the quiz");
  42.  
  43. Console.ReadKey();
  44. Console.Clear();
  45.  
  46. Console.WriteLine("What color is a banana?");
  47. Console.WriteLine("1 Black");
  48. Console.WriteLine("2 Yellow");
  49. Console.WriteLine("3 Green");
  50. Console.WriteLine("");
  51. string banan = Console.ReadLine();
  52. if (banan == "2")
  53. {
  54. correctanswer = 1;
  55. Console.WriteLine();
  56. Console.Write("The Right Answer is 2");
  57. Console.ForegroundColor = ConsoleColor.Yellow;
  58. Console.Write(" Yellow");
  59. Console.ResetColor();
  60. Console.WriteLine();
  61. Console.Write("Your Points: ");
  62. Console.ForegroundColor = ConsoleColor.Magenta;
  63. Console.Write(correctanswer);
  64. Console.ResetColor();
  65. Console.WriteLine();
  66. Console.WriteLine();
  67. Console.WriteLine("Press any button to continue");
  68. }
  69.  
  70. else
  71. {
  72. correctanswer = 0;
  73. Console.Write("The Right Answer is 2");
  74. Console.ForegroundColor = ConsoleColor.Yellow;
  75. Console.Write(" Yellow");
  76. Console.ResetColor();
  77. Console.WriteLine();
  78. Console.Write("Your Points: ");
  79. Console.ForegroundColor = ConsoleColor.Magenta;
  80. Console.Write(correctanswer);
  81. Console.ResetColor();
  82. Console.WriteLine();
  83. Console.WriteLine();
  84. Console.WriteLine("Press any button to continue");
  85. }
  86.  
  87. Console.ReadKey();
  88. Console.Clear();
  89.  
  90. Console.WriteLine("Who created Minecraft?");
  91. Console.WriteLine("1 Adam Persson");
  92. Console.WriteLine("2 Lukas Persson");
  93. Console.WriteLine("3 Markus Persson");
  94. Console.WriteLine("");
  95. string minecraft = Console.ReadLine();
  96. if (minecraft == "3")
  97. {
  98. correctanswer1 = 1;
  99. Console.WriteLine();
  100. Console.WriteLine("The Right Answer is 3 Markus Persson");
  101. Console.Write("Your Points: ");
  102. Console.ForegroundColor = ConsoleColor.Magenta;
  103. Console.WriteLine(correctanswer + correctanswer1);
  104. Console.ResetColor();
  105. Console.WriteLine();
  106. Console.WriteLine("Press any button to continue");
  107. }
  108.  
  109. else
  110.  
  111. {
  112. correctanswer1 = 0;
  113. Console.WriteLine("The Right Answer is 3 Markus Persson");
  114. Console.Write("Your Points: ");
  115. Console.ForegroundColor = ConsoleColor.Magenta;
  116. Console.WriteLine(correctanswer + correctanswer1);
  117. Console.ResetColor();
  118. Console.WriteLine();
  119. Console.WriteLine("Press any button to continue");
  120. }
  121. Console.ReadKey();
  122. Console.Clear();
  123.  
  124. Console.WriteLine("In which continent is Moçambique located?");
  125. Console.WriteLine("1 Africa");
  126. Console.WriteLine("2 Europe");
  127. Console.WriteLine("3 South America");
  128. Console.WriteLine("");
  129. string Mosambik = Console.ReadLine();
  130. if (Mosambik == "1")
  131. {
  132. correctanswer2 = 1;
  133. Console.WriteLine();
  134. Console.WriteLine("The Right Answer is 1 Africa");
  135. Console.Write("Your Points: ");
  136. Console.ForegroundColor = ConsoleColor.Magenta;
  137. Console.WriteLine(correctanswer + correctanswer1 + correctanswer2);
  138. Console.ResetColor();
  139. Console.WriteLine();
  140. Console.WriteLine("Press any button to continue");
  141.  
  142. }
  143.  
  144. else
  145. {
  146. correctanswer2 = 0;
  147. Console.WriteLine();
  148. Console.WriteLine("The Right Answer is 1 Africa");
  149. Console.Write("Your Points: ");
  150. Console.ForegroundColor = ConsoleColor.Magenta;
  151. Console.WriteLine(correctanswer + correctanswer1 + correctanswer2);
  152. Console.ResetColor();
  153. Console.WriteLine();
  154. Console.WriteLine("Press any button to continue");
  155. }
  156.  
  157. Console.ReadKey();
  158. Console.Clear();
  159.  
  160. Console.WriteLine("What color is Cobalt?");
  161. Console.WriteLine("1 Blue");
  162. Console.WriteLine("2 Red");
  163. Console.WriteLine("3 Black");
  164. Console.WriteLine();
  165. String Cobalt = Console.ReadLine();
  166. if (Cobalt == "1")
  167. {
  168. correctanswer3 = 1;
  169. Console.WriteLine();
  170. Console.Write("The Right Answer is 1 ");
  171. Console.ForegroundColor = ConsoleColor.Blue;
  172. Console.Write("Blue");
  173. Console.ResetColor();
  174. Console.WriteLine();
  175. Console.Write("Your Points: ");
  176. Console.ForegroundColor = ConsoleColor.Magenta;
  177. Console.WriteLine(correctanswer + correctanswer1 + correctanswer2 + correctanswer3); // Press any button hoppar ner ett steg om du har write "line" här
  178. Console.ResetColor();
  179. Console.WriteLine();
  180. Console.WriteLine("Press any button to continue");
  181.  
  182. }
  183.  
  184. else
  185. {
  186. correctanswer3 = 0;
  187. Console.WriteLine();
  188. Console.Write("The Right Answer is 1 ");
  189. Console.ForegroundColor = ConsoleColor.Blue;
  190. Console.Write("Blue");
  191. Console.ResetColor();
  192. Console.WriteLine();
  193. Console.Write("Your Points: ");
  194. Console.ForegroundColor = ConsoleColor.Magenta;
  195. Console.WriteLine(correctanswer + correctanswer1 + correctanswer2 + correctanswer3);
  196. Console.ResetColor();
  197. Console.WriteLine();
  198. Console.WriteLine("Press any button to continue");
  199.  
  200. }
  201.  
  202. Console.ReadKey();
  203. Console.Clear();
  204.  
  205. Console.BackgroundColor = ConsoleColor.Red;
  206. Console.ForegroundColor = ConsoleColor.White;
  207. Console.WriteLine("If u get the last question right you will be rewarded with a bonus question");
  208. Console.WriteLine();
  209. Console.WriteLine("NOTE: The bonus question will give you 3 points");
  210. Console.ResetColor();
  211. Console.WriteLine();
  212. Console.WriteLine("Press any button to continue to the last question...");
  213.  
  214. Console.ReadKey();
  215. Console.Clear();
  216.  
  217. Console.WriteLine("What school is the best in Helsingborg?");
  218. Console.WriteLine("1 IT Gymnasiet");
  219. Console.WriteLine("2 Olympia");
  220. Console.WriteLine("3 LBS");
  221. Console.WriteLine();
  222. string school = Console.ReadLine();
  223. if (school == "3")
  224. {
  225. correctanswer4 = 1;
  226. Console.WriteLine();
  227. Console.Write("The Right Answer is 3 LBS ");
  228. Console.WriteLine();
  229. Console.Write("Your Points: ");
  230. Console.ForegroundColor = ConsoleColor.Magenta;
  231. Console.WriteLine(correctanswer + correctanswer1 + correctanswer2 + correctanswer3 + correctanswer4);
  232. Console.ResetColor();
  233. Console.WriteLine();
  234. Console.WriteLine("Awesome, you got it right!");
  235. Console.WriteLine("Press any button to continue to the bonus question");
  236.  
  237. }
  238.  
  239. else
  240.  
  241. {
  242.  
  243. correctanswer4 = 1;
  244. Console.WriteLine();
  245. Console.Write("The Right Answer is 3 LBS ");
  246. Console.WriteLine();
  247. Console.Write("Your Points: ");
  248. Console.ForegroundColor = ConsoleColor.Magenta;
  249. Console.WriteLine(correctanswer + correctanswer1 + correctanswer2 + correctanswer3 + correctanswer4);
  250. Console.ResetColor();
  251. Console.WriteLine();
  252. Console.WriteLine("Press any button to see a full list of your answers");
  253.  
  254. Console.ReadKey();
  255. Console.Clear();
  256.  
  257. if (correctanswer == 1)
  258. {
  259. Console.WriteLine("Question number 1 was right = 1 point");
  260. }
  261. else
  262. {
  263. Console.WriteLine("Det är fel");
  264. }
  265. if (correctanswer2 == 1)
  266. {
  267. Console.WriteLine("Question number 1 was right = 1 point");
  268. }
  269. else
  270. {
  271. Console.WriteLine("Question number 1 was wrong = 0 points");
  272. }
  273. if (correctanswer2 == 1)
  274. {
  275. Console.WriteLine("Question number 2 was right = 1 point");
  276. }
  277. else
  278. {
  279. Console.WriteLine("Question number 2 was wrong = 0 points");
  280. }
  281. if (correctanswer3 == 1)
  282. {
  283. Console.WriteLine("Question number 3 was right = 1 point");
  284. }
  285. else
  286. {
  287. Console.WriteLine("Question number 3 was wrong = 0 points");
  288. }
  289. if (correctanswer4 == 1)
  290. {
  291. Console.WriteLine("Question number 4 was right = 1 point");
  292. }
  293. else
  294. {
  295. Console.WriteLine("Question number 4 was wrong = 0 points");
  296. }
  297.  
  298. Console.WriteLine();
  299. Console.BackgroundColor = ConsoleColor.Red;
  300. Console.ForegroundColor = ConsoleColor.White;
  301. Console.Write("Your final score is: ");
  302. Console.Write(correctanswer + correctanswer1 + correctanswer2 + correctanswer3 + correctanswer4 + correctanswer5);
  303. Console.WriteLine();
  304. Console.WriteLine();
  305. Console.WriteLine("Thanks for the playing the game");
  306. Console.ResetColor();
  307. Console.WriteLine();
  308. Console.WriteLine("Press any button to exit the game...");
  309. System.Environment.Exit(0);
  310.  
  311. }
  312.  
  313. Console.ReadKey();
  314. Console.Clear();
  315.  
  316. Console.WriteLine("Which weapon is the Russians favorite weapon in cs");
  317. Console.WriteLine("1 Ak 47");
  318. Console.WriteLine("2 AWP");
  319. Console.WriteLine("3 Knife");
  320. Console.WriteLine();
  321. string weapon = Console.ReadLine();
  322. if (weapon == "3")
  323. {
  324. correctanswer5 = 3;
  325. Console.WriteLine();
  326. Console.WriteLine("The Right Answer is 3 Knife");
  327. Console.Write("Your Points: ");
  328. Console.ForegroundColor = ConsoleColor.Magenta;
  329. Console.WriteLine(correctanswer + correctanswer1 + correctanswer2 + correctanswer3 + correctanswer4 + correctanswer5);
  330. Console.ResetColor();
  331. Console.WriteLine();
  332. Console.WriteLine("Press any button to continue");
  333. }
  334.  
  335. else
  336.  
  337. {
  338.  
  339. correctanswer5 = 0;
  340. Console.WriteLine();
  341. Console.WriteLine("The Right Answer is 3 Knife");
  342. Console.Write("Your Points: ");
  343. Console.ForegroundColor = ConsoleColor.Magenta;
  344. Console.WriteLine(correctanswer + correctanswer1 + correctanswer2 + correctanswer3 + correctanswer4 + correctanswer5);
  345. Console.ResetColor();
  346. Console.WriteLine();
  347. Console.WriteLine("Press any button to see a full list of your answers");
  348.  
  349. }
  350.  
  351. Console.ReadKey();
  352. Console.Clear();
  353.  
  354. if (correctanswer == 1)
  355. {
  356. Console.WriteLine("Question number 1 was right = 1 point");
  357. }
  358. else
  359. {
  360. Console.WriteLine("Det är fel");
  361. }
  362. if (correctanswer2 == 1)
  363. {
  364. Console.WriteLine("Question number 1 was right = 1 point");
  365. }
  366. else
  367. {
  368. Console.WriteLine("Question number 1 was wrong = 0 points");
  369. }
  370. if (correctanswer2 == 1)
  371. {
  372. Console.WriteLine("Question number 2 was right = 1 point");
  373. }
  374. else
  375. {
  376. Console.WriteLine("Question number 2 was wrong = 0 points");
  377. }
  378. if (correctanswer3 == 1)
  379. {
  380. Console.WriteLine("Question number 3 was right = 1 point");
  381. }
  382. else
  383. {
  384. Console.WriteLine("Question number 3 was wrong = 0 points");
  385. }
  386. if (correctanswer4 == 1)
  387. {
  388. Console.WriteLine("Question number 4 was right = 1 point");
  389. }
  390. else
  391. {
  392. Console.WriteLine("Question number 4 was wrong = 0 points");
  393. }
  394. if (correctanswer5 == 3)
  395. {
  396. Console.WriteLine("Question number 5 was right = 3 points");
  397. }
  398. else
  399. {
  400. Console.WriteLine("Question number 5 was wrong = 0 points");
  401. }
  402.  
  403. Console.WriteLine();
  404. Console.BackgroundColor = ConsoleColor.Red;
  405. Console.ForegroundColor = ConsoleColor.White;
  406. Console.Write("Your final score is: ");
  407. Console.Write(correctanswer + correctanswer1 + correctanswer2 + correctanswer3 + correctanswer4 + correctanswer5);
  408. Console.WriteLine();
  409. Console.WriteLine();
  410. Console.WriteLine("Thanks for the playing the game");
  411. Console.ResetColor();
  412. Console.WriteLine();
  413. Console.WriteLine("Press any button twice to exit the game...");
  414.  
  415.  
  416.  
  417. Console.ReadKey();
  418. Console.WriteLine();
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437. }
  438. }
  439. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement