Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.24 KB | None | 0 0
  1. Public Class Front
  2.  
  3. Dim PS As Integer 'Player Score
  4. Dim QN As Integer 'Question Number
  5.  
  6. Private Sub Front_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  7.  
  8. 'Load Application
  9.  
  10. NG.Enabled = True 'New Game
  11. LB.Enabled = True 'Leaderboard
  12. SB.Enabled = False 'Submit
  13. QI.Enabled = False 'Question Indicator
  14. QB.Enabled = False 'Question Box
  15. SI.Enabled = False 'Score Indicator
  16. RS.Enabled = False 'Restart
  17.  
  18. A1.Enabled = False 'Answer 1
  19. A2.Enabled = False 'Answer 2
  20. A3.Enabled = False 'Answer 3
  21. A4.Enabled = False 'Answer 4
  22.  
  23. NG.Text = "New Game"
  24. SB.Text = "Submit"
  25. RS.Text = "Reload Quiz"
  26. LB.Text = "Leaderboard"
  27. QI.Text = ""
  28. QB.Text = ""
  29. SI.Text = ""
  30.  
  31. A1.Text = ""
  32. A2.Text = ""
  33. A3.Text = ""
  34. A4.Text = ""
  35.  
  36. End Sub
  37.  
  38. Private Sub NG_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles NG.Click
  39.  
  40. QN = 0 'Question Number
  41. PS = 0 'Player Score
  42.  
  43. QI.Text = "Question No. " & QN & "."
  44. SI.Text = "Your score is " & PS & "."
  45.  
  46. NG.Enabled = False 'New Game
  47. LB.Enabled = False 'Leaderboard
  48. SB.Enabled = True 'Submit
  49. QI.Enabled = False 'Question Indicator
  50. QB.Enabled = False 'Question Box
  51. SI.Enabled = False 'Score Indicator
  52. RS.Enabled = True 'Restart
  53.  
  54. A1.Enabled = True 'Answer 1
  55. A2.Enabled = True 'Answer 2
  56. A3.Enabled = True 'Answer 3
  57. A4.Enabled = True 'Answer 4
  58.  
  59. A1.Checked = False 'Answer 1
  60. A2.Checked = False 'Answer 2
  61. A3.Checked = False 'Answer 3
  62. A4.Checked = False 'Answer 4
  63.  
  64. QB.Text = "Paracetamol falls into what classification of pharmaceutical?"
  65. A1.Text = "Muscle relaxant"
  66. A2.Text = "NSAID"
  67. A3.Text = "Hypnotic"
  68. A4.Text = "Analgesic"
  69.  
  70. End Sub
  71.  
  72. Private Sub RS_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RS.Click
  73.  
  74. 'Restart
  75.  
  76. NG.Enabled = True 'New Game
  77. LB.Enabled = True 'Leaderboard
  78. SB.Enabled = False 'Submit
  79. QI.Enabled = False 'Question Indicator
  80. QB.Enabled = False 'Question Box
  81. SI.Enabled = False 'Score Indicator
  82. RS.Enabled = False 'Restart
  83.  
  84. A1.Enabled = False 'Answer 1
  85. A2.Enabled = False 'Answer 2
  86. A3.Enabled = False 'Answer 3
  87. A4.Enabled = False 'Answer 4
  88.  
  89. NG.Text = "New Game"
  90. SB.Text = "Submit"
  91. RS.Text = "Reload Quiz"
  92. LB.Text = "Leaderboard"
  93. QI.Text = ""
  94. QB.Text = ""
  95. SI.Text = ""
  96.  
  97. A1.Text = ""
  98. A2.Text = ""
  99. A3.Text = ""
  100. A4.Text = ""
  101.  
  102. End Sub
  103.  
  104. Private Sub SB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SB.Click
  105.  
  106. 'Submit
  107.  
  108. If QN = 0 Then
  109. QN = 1
  110. End If
  111.  
  112. QI.Text = "Question No. " & QN & "."
  113. SI.Text = "Your score is " & PS & "."
  114.  
  115. A1.Enabled = True
  116. A2.Enabled = True
  117. A3.Enabled = True
  118. A4.Enabled = True
  119.  
  120. If QN = 1 Then
  121. If A4.Checked = True Then
  122. PS = (PS + 1)
  123. MsgBox("Correct")
  124. QN = (QN + 1)
  125. Else
  126. MsgBox("Incorrect")
  127. QN = (QN + 1)
  128. End If
  129. ElseIf QN = 2 Then
  130. If A1.Checked = True Then
  131. PS = (PS + 1)
  132. MsgBox("Correct")
  133. QN = (QN + 1)
  134. Else
  135. MsgBox("Incorrect")
  136. QN = (QN + 1)
  137. End If
  138. ElseIf QN = 3 Then
  139. If A3.Checked = True Then
  140. PS = (PS + 1)
  141. MsgBox("Correct")
  142. QN = (QN + 1)
  143. Else
  144. MsgBox("Incorrect")
  145. QN = (QN + 1)
  146. End If
  147. ElseIf QN = 4 Then
  148. If A3.Checked = True Then
  149. PS = (PS + 1)
  150. MsgBox("Correct")
  151. QN = (QN + 1)
  152. Else
  153. MsgBox("Incorrect")
  154. QN = (QN + 1)
  155. End If
  156. ElseIf QN = 5 Then
  157. If A1.Checked = True Then
  158. PS = (PS + 1)
  159. MsgBox("Correct")
  160. QN = (QN + 1)
  161. Else
  162. MsgBox("Incorrect")
  163. QN = (QN + 1)
  164. End If
  165. ElseIf QN = 6 Then
  166. If A2.Checked = True Then
  167. PS = (PS + 1)
  168. MsgBox("Correct")
  169. QN = (QN + 1)
  170. Else
  171. MsgBox("Incorrect")
  172. QN = (QN + 1)
  173. End If
  174. ElseIf QN = 7 Then
  175. If A4.Checked = True Then
  176. PS = (PS + 1)
  177. MsgBox("Correct")
  178. QN = (QN + 1)
  179. Else
  180. MsgBox("Incorrect")
  181. QN = (QN + 1)
  182. End If
  183. ElseIf QN = 8 Then
  184. If A3.Checked = True Then
  185. PS = (PS + 1)
  186. MsgBox("Correct")
  187. QN = (QN + 1)
  188. Else
  189. MsgBox("Incorrect")
  190. QN = (QN + 1)
  191. End If
  192. ElseIf QN = 9 Then
  193. If A1.Checked = True Then
  194. PS = (PS + 1)
  195. MsgBox("Correct")
  196. QN = (QN + 1)
  197. Else
  198. MsgBox("Incorrect")
  199. QN = (QN + 1)
  200. End If
  201. ElseIf QN = 10 Then
  202. If A3.Checked = True Then
  203. PS = (PS + 1)
  204. MsgBox("Correct")
  205. QN = (QN + 1)
  206. Else
  207. MsgBox("Incorrect")
  208. QN = (QN + 1)
  209. End If
  210. ElseIf QN = 11 Then
  211. If A1.Checked = True Then
  212. PS = (PS + 1)
  213. MsgBox("Correct")
  214. QN = (QN + 1)
  215. Else
  216. MsgBox("Incorrect")
  217. QN = (QN + 1)
  218. End If
  219. ElseIf QN = 12 Then
  220. If A2.Checked = True Then
  221. PS = (PS + 1)
  222. MsgBox("Correct")
  223. QN = (QN + 1)
  224. Else
  225. MsgBox("Incorrect")
  226. QN = (QN + 1)
  227. End If
  228. ElseIf QN = 13 Then
  229. If A4.Checked = True Then
  230. PS = (PS + 1)
  231. MsgBox("Correct")
  232. QN = (QN + 1)
  233. Else
  234. MsgBox("Incorrect")
  235. QN = (QN + 1)
  236. End If
  237. ElseIf QN = 14 Then
  238. If A2.Checked = True Then
  239. PS = (PS + 1)
  240. MsgBox("Correct")
  241. QN = (QN + 1)
  242. Else
  243. MsgBox("Incorrect")
  244. QN = (QN + 1)
  245. End If
  246. ElseIf QN = 15 Then
  247. If A3.Checked = True Then
  248. PS = (PS + 1)
  249. MsgBox("Correct")
  250. QN = (QN + 1)
  251. Else
  252. MsgBox("Incorrect")
  253. QN = (QN + 1)
  254. End If
  255. End If
  256.  
  257. If QN = 2 Then
  258. QB.Text = "Paracetamol can both heal and harm the human body. When taken in excess which organ will become its primary target?"
  259. A1.Text = "Liver" 'Correct'
  260. A2.Text = "Kidney" 'Incorrect'
  261. A3.Text = "Heart" 'Incorrect'
  262. A4.Text = "Stomach" 'Incorrect'
  263. ElseIf QN = 3 Then
  264. QB.Text = "Robotripping refers to taking what legal substance to achieve a high?"
  265. A1.Text = "Guaifenesin" 'Incorrect'
  266. A2.Text = "Echinacea" 'Incorrect'
  267. A3.Text = "Dextromethorphan" 'Correct'
  268. A4.Text = "Benzonatate" 'Incorrect'
  269. ElseIf QN = 4 Then
  270. QB.Text = "Which of the four following pharmaceuticals is a non-steroidal anti-inflammatory disguised as a analgesic?"
  271. A1.Text = "Tramadol" 'Incorrect'
  272. A2.Text = "Codeine" 'Inorrect'
  273. A3.Text = "Voltarol." 'Correct'
  274. A4.Text = "Pethidine." 'Incorrect'
  275. ElseIf QN = 5 Then
  276. QB.Text = "A vaccination is the administration of what kind of material into the body?"
  277. A1.Text = "Antigenic." 'Correct'
  278. A2.Text = "Pathogenic" 'Incorrect'
  279. A3.Text = "Steroidal" 'Incorrect'
  280. A4.Text = "Hormonal" 'Incorrect'
  281. ElseIf QN = 6 Then
  282. QB.Text = "The primary medical use for Alkyl Nitrates (Poppers) is as an antidote for what illness?"
  283. A1.Text = "Trigeminal Neuralgia" 'Incorrect'
  284. A2.Text = "Cyanide Poisoning" 'Correct
  285. A3.Text = "Fungal Infection" 'Incorrect'
  286. A4.Text = "HIV" 'Incorrect'
  287. ElseIf QN = 7 Then
  288. QB.Text = "Selective Serotonin Reputake Inhibitors (SSRIs) are commonly used to treat depression. Which of the following pharmaceuticals is not an SSRI?"
  289. A1.Text = "Fluoxetine" 'Incorrect'
  290. A2.Text = "Citalopram" 'Incorrect'
  291. A3.Text = "Sertraline" 'Incorrect'
  292. A4.Text = "Amitriptyline" 'Correct'
  293. ElseIf QN = 8 Then
  294. QB.Text = "Freezing of the larnyx is a danger assioassicated with what drug?"
  295. A1.Text = "Pethidine" 'Incorrect'
  296. A2.Text = "Tobacco" 'Incorrect'
  297. A3.Text = "Solvent" 'Correct'
  298. A4.Text = "Alcohol" 'Incorrect'
  299. ElseIf QN = 9 Then
  300. QB.Text = "The difference between coated and uncoated tablets is there absorption site. Coated tablets are absorbed in what section of the digestive tract"
  301. A1.Text = "Duodenum" 'Correct'
  302. A2.Text = "Stomach" 'Incorrect'
  303. A3.Text = "Ileum" 'Incorrect'
  304. A4.Text = "Rectum" 'Incorrect
  305. ElseIf QN = 10 Then
  306. QB.Text = "Diabetes is a degenerative disease that affects a bodies ability to maintain an equilibrium within its blood sugar. Those who suffer from this disease have to inject what pharmaceutical to help stablize their blood sugar levels?"
  307. A1.Text = "Penicillin" 'Incorrect'
  308. A2.Text = "Methadone" 'Incorrect'
  309. A3.Text = "Insulin" 'Correct'
  310. A4.Text = "Warfarin" 'Incorrect'
  311. ElseIf QN = 11 Then
  312. QB.Text = "A ten bag is commonly used to refer to how much of what drug?"
  313. A1.Text = " Approx. £10 worth of Marijuana." 'Correct'
  314. A2.Text = " Approx. £10 worth of Cocaine." 'Incorrect'
  315. A3.Text = " Approx. £10 worth of LSD." 'Incorrect'
  316. A4.Text = " Approx. £10 worth of M-CAT." 'Incorrect'
  317. ElseIf QN = 12 Then
  318. QB.Text = "A person tells you he/she is 'amped.' This means they have taken what class of drug?"
  319. A1.Text = " Depressant." 'Incorrect'
  320. A2.Text = " Stimulant." 'Correct'
  321. A3.Text = " Psychedelic." 'Incorrect'
  322. A4.Text = " Analgesic." 'Incorrect'
  323. ElseIf QN = 13 Then
  324. QB.Text = "What is the slang term for Marijuana laced with Cocaine?"
  325. A1.Text = " Crystal Stick." 'Incorrect'
  326. A2.Text = " Marrowcane." 'Incorrect'
  327. A3.Text = " Snap Dragon." 'Incorrect'
  328. A4.Text = " Banano." 'Correct'
  329. ElseIf QN = 14 Then
  330. QB.Text = "If an individual was to ‘flip candy’ what two drugs would they be taking to achieve this?"
  331. A1.Text = " Marijuana and Magic Mushrooms." 'Incorrect'
  332. A2.Text = " LSD and MDMA." 'Correct'
  333. A3.Text = " Heroin and DMT." 'Incorrect'
  334. A4.Text = " Cocaine and Speed." 'Incorrect'
  335. ElseIf QN = 15 Then
  336. QB.Text = "All street drugs have slang names that are frequently used and passed around, which of these slang names refers to Ecstasy?"
  337. A1.Text = " Mushies." 'Incorrect'
  338. A2.Text = " Bob Hope." 'Incorrect'
  339. A3.Text = " Dolphins." 'Correct'
  340. A4.Text = " Jellies." 'Incorrect'
  341. End If
  342.  
  343. End Sub
  344.  
  345. Private Sub LB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LB.Click
  346.  
  347. 'Leaderboard
  348.  
  349. End Sub
  350. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement