Quiz Master Program Visual Basic

Sorry for the disturbance but can you help me in my problem? I'm new at visual basic programming and everything was fine until our topic shifted to arrays. I tried to understand it's code using Java. (Example: method are called functions..) My prof has given us an exercise to create a Quiz program that asks the user more than 5 questions (in textbox) with choices (in buttons) and computes the score at the end (All just in one form). If the user click an a button it will tell if it's right or wrong and then proceed to change the question along with the choices. *Required: - After the user finish the quiz the score will be displayed and there should be a restart button and all the question will be asked again randomly no pattern. Software Arc Text Command Autocad.

- Try to make functions. I tried searching the web since yesterday and I still have made no progress at my code.
Public Class Form1 Dim questions(5) As String Dim answers(5) As String Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'Method/Function for loading the Q&A loadQsAndAs() End Sub Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Me.Close() End Sub Private Sub loadQsAndAs() 'Questions questions(0) = 'What is 1 + 1?' Questions(1) = 'Who is the first man to walk on the Moon?' Questions(2) = 'What is the name of the main character in the movie: Yes Man!(2007)' questions(3) = 'If I gave you three apples and you ate two, how many is left?' Questions(4) = 'What do you want in your final grade?' Questions(5) = 'What is the name of the thing(s) that you use whenever you eat?'
Comments are closed.