Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.66 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 = 1 '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. QI.Text = "Question No. " & QN & "."
  109. SI.Text = "Your score is " & PS & "."
  110.  
  111. A1.Enabled = True
  112. A2.Enabled = True
  113. A3.Enabled = True
  114. A4.Enabled = True
  115.  
  116. If QN = 0 Then
  117. QN = 1
  118. End If
  119.  
  120. If QN = 1 Then
  121. If A4.Checked = True Then
  122. PS = (PS + 1)
  123. MsgBox("Correct")
  124. Else
  125. MsgBox("Incorrect")
  126. End If
  127. ElseIf QN = 2 Then
  128. If A1.Checked = True Then
  129. PS = (PS + 1)
  130. MsgBox("Correct")
  131. Else
  132. MsgBox("Incorrect")
  133. End If
  134. ElseIf QN = 3 Then
  135. If A3.Checked = True Then
  136. PS = (PS + 1)
  137. MsgBox("Correct")
  138. Else
  139. MsgBox("Incorrect")
  140. End If
  141. ElseIf QN = 4 Then
  142. If A3.Checked = True Then
  143. PS = (PS + 1)
  144. MsgBox("Correct")
  145. Else
  146. MsgBox("Incorrect")
  147. End If
  148. ElseIf QN = 5 Then
  149. If A1.Checked = True Then
  150. PS = (PS + 1)
  151. MsgBox("Correct")
  152. Else
  153. MsgBox("Incorrect")
  154. End If
  155. ElseIf QN = 6 Then
  156. If A2.Checked = True Then
  157. PS = (PS + 1)
  158. MsgBox("Correct")
  159. Else
  160. MsgBox("Incorrect")
  161. End If
  162. ElseIf QN = 7 Then
  163. If A4.Checked = True Then
  164. PS = (PS + 1)
  165. MsgBox("Correct")
  166. Else
  167. MsgBox("Incorrect")
  168. End If
  169. ElseIf QN = 8 Then
  170. If A3.Checked = True Then
  171. PS = (PS + 1)
  172. MsgBox("Correct")
  173. Else
  174. MsgBox("Incorrect")
  175. End If
  176. ElseIf QN = 9 Then
  177. If A1.Checked = True Then
  178. PS = (PS + 1)
  179. MsgBox("Correct")
  180. Else
  181. MsgBox("Incorrect")
  182. End If
  183. ElseIf QN = 10 Then
  184. If A3.Checked = True Then
  185. PS = (PS + 1)
  186. MsgBox("Correct")
  187. Else
  188. MsgBox("Incorrect")
  189. End If
  190. ElseIf QN = 11 Then
  191. If A1.Checked = True Then
  192. PS = (PS + 1)
  193. MsgBox("Correct")
  194. Else
  195. MsgBox("Incorrect")
  196. End If
  197. ElseIf QN = 12 Then
  198. If A2.Checked = True Then
  199. PS = (PS + 1)
  200. MsgBox("Correct")
  201. Else
  202. MsgBox("Incorrect")
  203. End If
  204. ElseIf QN = 13 Then
  205. If A4.Checked = True Then
  206. PS = (PS + 1)
  207. MsgBox("Correct")
  208. Else
  209. MsgBox("Incorrect")
  210. End If
  211. ElseIf QN = 14 Then
  212. If A2.Checked = True Then
  213. PS = (PS + 1)
  214. MsgBox("Correct")
  215. Else
  216. MsgBox("Incorrect")
  217. End If
  218. ElseIf QN = 15 Then
  219. If A3.Checked = True Then
  220. PS = (PS + 1)
  221. MsgBox("Correct")
  222. Else
  223. MsgBox("Incorrect")
  224. End If
  225.  
  226. End If
  227.  
  228. If QN = 1 Then
  229. QB.Text = "Paracetamol falls into what classification of pharmaceutical?"
  230. A1.Text = "Muscle relaxant" 'Incorrect'
  231. A2.Text = "NSAID" 'Incorrect'
  232. A3.Text = "Hypnotic" 'Incorrect'
  233. A4.Text = "Analgesic" 'Correct'
  234. ElseIf QN = 2 Then
  235. QB.Text = "Paracetamol can both heal and harm the human body. When taken in excess which organ will become its primary target?"
  236. A1.Text = "Liver" 'Correct'
  237. A2.Text = "Kidney" 'Incorrect'
  238. A3.Text = "Heart" 'Incorrect'
  239. A4.Text = "Stomach" 'Incorrect'
  240. ElseIf QN = 3 Then
  241. QB.Text = "Robotripping refers to taking what legal substance to achieve a high?"
  242. A1.Text = "Guaifenesin" 'Incorrect'
  243. A2.Text = "Echinacea" 'Incorrect'
  244. A3.Text = "Dextromethorphan" 'Correct'
  245. A4.Text = "Benzonatate" 'Incorrect'
  246. ElseIf QN = 4 Then
  247. QB.Text = "Which of the four following pharmaceuticals is a non-steroidal anti-inflammatory disguised as a analgesic?"
  248. A1.Text = "Tramadol" 'Incorrect'
  249. A2.Text = "Codeine" 'Inorrect'
  250. A3.Text = "Voltarol." 'Correct'
  251. A4.Text = "Pethidine." 'Incorrect'
  252. ElseIf QN = 5 Then
  253. QB.Text = "A vaccination is the administration of what kind of material into the body?"
  254. A1.Text = "Antigenic." 'Correct'
  255. A2.Text = "Pathogenic" 'Incorrect'
  256. A3.Text = "Steroidal" 'Incorrect'
  257. A4.Text = "Hormonal" 'Incorrect'
  258. ElseIf QN = 6 Then
  259. QB.Text = "The primary medical use for Alkyl Nitrates (Poppers) is as an antidote for what illness?"
  260. A1.Text = "Trigeminal Neuralgia" 'Incorrect'
  261. A2.Text = "Cyanide Poisoning" 'Correct
  262. A3.Text = "Fungal Infection" 'Incorrect'
  263. A4.Text = "HIV" 'Incorrect'
  264. ElseIf QN = 7 Then
  265. QB.Text = "Selective Serotonin Reputake Inhibitors (SSRIs) are commonly used to treat depression. Which of the following pharmaceuticals is not an SSRI?"
  266. A1.Text = "Fluoxetine" 'Incorrect'
  267. A2.Text = "Citalopram" 'Incorrect'
  268. A3.Text = "Sertraline" 'Incorrect'
  269. A4.Text = "Amitriptyline" 'Correct'
  270. ElseIf QN = 8 Then
  271. QB.Text = "Freezing of the larnyx is a danger assioassicated with what drug?"
  272. A1.Text = "Pethidine" 'Incorrect'
  273. A2.Text = "Tobacco" 'Incorrect'
  274. A3.Text = "Solvent" 'Correct'
  275. A4.Text = "Alcohol" 'Incorrect'
  276. ElseIf QN = 9 Then
  277. QB.Text = "The difference between coated and uncoated tablets is there absorption site. Coated tablets are absorbed in what section of the digestive tract"
  278. A1.Text = "Duodenum" 'Correct'
  279. A2.Text = "Stomach" 'Incorrect'
  280. A3.Text = "Ileum" 'Incorrect'
  281. A4.Text = "Rectum" 'Incorrect
  282. ElseIf QN = 10 Then
  283. 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?"
  284. A1.Text = "Penicillin" 'Incorrect'
  285. A2.Text = "Methadone" 'Incorrect'
  286. A3.Text = "Insulin" 'Correct'
  287. A4.Text = "Warfarin" 'Incorrect'
  288. ElseIf QN = 11 Then
  289. QB.Text = "A ten bag is commonly used to refer to how much of what drug?"
  290. A1.Text = " Approx. £10 worth of Marijuana." 'Correct'
  291. A2.Text = " Approx. £10 worth of Cocaine." 'Incorrect'
  292. A3.Text = " Approx. £10 worth of LSD." 'Incorrect'
  293. A4.Text = " Approx. £10 worth of M-CAT." 'Incorrect'
  294. ElseIf QN = 12 Then
  295. QB.Text = "A person tells you he/she is 'amped.' This means they have taken what class of drug?"
  296. A1.Text = " Depressant." 'Incorrect'
  297. A2.Text = " Stimulant." 'Correct'
  298. A3.Text = " Psychedelic." 'Incorrect'
  299. A4.Text = " Analgesic." 'Incorrect'
  300. ElseIf QN = 13 Then
  301. QB.Text = "What is the slang term for Marijuana laced with Cocaine?"
  302. A1.Text = " Crystal Stick." 'Incorrect'
  303. A2.Text = " Marrowcane." 'Incorrect'
  304. A3.Text = " Snap Dragon." 'Incorrect'
  305. A4.Text = " Banano." 'Correct'
  306. ElseIf QN = 14 Then
  307. QB.Text = "If an individual was to ‘flip candy’ what two drugs would they be taking to achieve this?"
  308. A1.Text = " Marijuana and Magic Mushrooms." 'Incorrect'
  309. A2.Text = " LSD and MDMA." 'Correct'
  310. A3.Text = " Heroin and DMT." 'Incorrect'
  311. A4.Text = " Cocaine and Speed." 'Incorrect'
  312. ElseIf QN = 15 Then
  313. QB.Text = "All street drugs have slang names that are frequently used and passed around, which of these slang names refers to Ecstasy?"
  314. A1.Text = " Mushies." 'Incorrect'
  315. A2.Text = " Bob Hope." 'Incorrect'
  316. A3.Text = " Dolphins." 'Correct'
  317. A4.Text = " Jellies." 'Incorrect'
  318. End If
  319.  
  320. QN = (QN + 1)
  321.  
  322. End Sub
  323.  
  324. Private Sub LB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LB.Click
  325.  
  326. 'Leaderboard
  327.  
  328. End Sub
  329. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement